# Cant read any kind of file exclusively in vscode

**URL:** <https://discourse.julialang.org/t/cant-read-any-kind-of-file-exclusively-in-vscode/87063>\
**Category:** New to Julia\
**Tags:** question, file\
**Created:** [September 11, 2022, 6:06am UTC](https://discourse.julialang.org/t/cant-read-any-kind-of-file-exclusively-in-vscode/87063 "2022-09-11T06:06:43Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Can\_Atasayar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/can_atasayar/32/42578_2.png) [@Can\_Atasayar](https://discourse.julialang.org/u/Can_Atasayar)\
**Post date:** [September 11, 2022, 6:06am UTC](https://discourse.julialang.org/t/cant-read-any-kind-of-file-exclusively-in-vscode/87063/1 "2022-09-11T06:06:43Z")

</div>

hi, my code cant read any kind of file while i am using vscode. i have tried all kinds of files and when i use jupyter notebook, i have no problem like this.

---

<div class="post-metadata">

**Author:** ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Post date:** [September 11, 2022, 6:21am UTC](https://discourse.julialang.org/t/cant-read-any-kind-of-file-exclusively-in-vscode/87063/2 "2022-09-11T06:21:11Z")

</div>

What extension the files you use in the Jupyter Notebook have? `.ipynb`? If yes, this is a extension just for Jupyter Notebook use. Check out about the [Jupytext](https://github.com/mwouts/jupytext) extension to save notebook files as `.jl` files with some comments to separate the cells.

---

<div class="post-metadata">

**Author:** ![digital\_carver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/digital_carver/32/33818_2.png) [@digital\_carver](https://discourse.julialang.org/u/digital_carver)\
**Post date:** [September 11, 2022, 6:58am UTC](https://discourse.julialang.org/t/cant-read-any-kind-of-file-exclusively-in-vscode/87063/3 "2022-09-11T06:58:42Z")

</div>

Can you tell us more about your setup? Do you have the VS Code isolated in some way, where it might need extra permissions to access the filesystem? What OS is this on, and what’s the code you’re using to read the files?

---

<div class="post-metadata">

**Author:** ![Can\_Atasayar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/can_atasayar/32/42578_2.png) [@Can\_Atasayar](https://discourse.julialang.org/u/Can_Atasayar)\
**Post date:** [September 12, 2022, 11:34am UTC](https://discourse.julialang.org/t/cant-read-any-kind-of-file-exclusively-in-vscode/87063/4 "2022-09-12T11:34:16Z")

</div>

hi, im on windows and i think the problem is caused by vscode being isolated as well (but i dont know how i should be looking for this) because the code cant read like most probably any kind of file. the code i am using are like the basic read codes for CSV kind of packages.

---

<div class="post-metadata">

**Author:** ![digital\_carver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/digital_carver/32/33818_2.png) [@digital\_carver](https://discourse.julialang.org/u/digital_carver)\
**Post date:** [September 12, 2022, 12:09pm UTC](https://discourse.julialang.org/t/cant-read-any-kind-of-file-exclusively-in-vscode/87063/5 "2022-09-12T12:09:40Z")

</div>

If you’re on Windows, it’s not very likely that some kind of isolation is the problem, unless you’re running it on Docker or something (I was thinking maybe you were running it as a Linux AppImage or Flatpak type thing, but that doesn’t apply here).

Maybe it’s just a path issue. Can you show the exact code you’re using to read the files, and what error messages you get when you try to run them under VS Code?

---

<div class="post-metadata">

**Author:** ![Can\_Atasayar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/can_atasayar/32/42578_2.png) [@Can\_Atasayar](https://discourse.julialang.org/u/Can_Atasayar)\
**Post date:** [September 12, 2022, 12:39pm UTC](https://discourse.julialang.org/t/cant-read-any-kind-of-file-exclusively-in-vscode/87063/6 "2022-09-12T12:39:29Z")

</div>

ok,  
i have this, d = XLSX.readtable, then this C = CSV.read like i have tried reading 8-9 types of file.  
AssertionError: File zillow\_data\_download\_april2020.xlsx not found. and this is the error i get. and like i said in the main post, i dont get an error like this when i use jupyter notebook.

---

<div class="post-metadata">

**Author:** ![albheim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/albheim/32/34660_2.png) [@albheim](https://discourse.julialang.org/u/albheim)\
**Post date:** [September 12, 2022, 12:43pm UTC](https://discourse.julialang.org/t/cant-read-any-kind-of-file-exclusively-in-vscode/87063/7 "2022-09-12T12:43:19Z")

</div>

Have you made sure you are in the directory you think, e.g. `@show pwd()`, and that the path you use is a path to something that should exist, e.g. `ispath(path)`?

Could it be something with using backslash/forwardslash for paths?

---

<div class="post-metadata">

**Author:** ![Can\_Atasayar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/can_atasayar/32/42578_2.png) [@Can\_Atasayar](https://discourse.julialang.org/u/Can_Atasayar)\
**Post date:** [September 12, 2022, 12:47pm UTC](https://discourse.julialang.org/t/cant-read-any-kind-of-file-exclusively-in-vscode/87063/8 "2022-09-12T12:47:18Z")

</div>

yeah that seems to be the problem but it used to work well a week ago. can it change by itself like that?

---

<div class="post-metadata">

**Author:** ![Can\_Atasayar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/can_atasayar/32/42578_2.png) [@Can\_Atasayar](https://discourse.julialang.org/u/Can_Atasayar)\
**Post date:** [September 12, 2022, 12:51pm UTC](https://discourse.julialang.org/t/cant-read-any-kind-of-file-exclusively-in-vscode/87063/9 "2022-09-12T12:51:09Z")

</div>

thanks to you both btw

---

<div class="post-metadata">

**Author:** ![albheim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/albheim/32/34660_2.png) [@albheim](https://discourse.julialang.org/u/albheim)\
**Post date:** [September 12, 2022, 2:28pm UTC](https://discourse.julialang.org/t/cant-read-any-kind-of-file-exclusively-in-vscode/87063/10 "2022-09-12T14:28:51Z")

</div>

Changed by itself seems strange, but maybe if something was automatically updated. What exactly is it that changed?

---

<div class="post-metadata">

**Author:** ![digital\_carver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/digital_carver/32/33818_2.png) [@digital\_carver](https://discourse.julialang.org/u/digital_carver)\
**Post date:** [September 12, 2022, 2:41pm UTC](https://discourse.julialang.org/t/cant-read-any-kind-of-file-exclusively-in-vscode/87063/11 "2022-09-12T14:41:37Z")

</div>

If you’re sending just the filename `"zillow_data_download_april2020"` to `XLSX.readtable`, try passing in the whole path to the file instead.

---

<div class="post-metadata">

**Author:** ![Can\_Atasayar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/can_atasayar/32/42578_2.png) [@Can\_Atasayar](https://discourse.julialang.org/u/Can_Atasayar)\
**Post date:** [September 12, 2022, 6:22pm UTC](https://discourse.julialang.org/t/cant-read-any-kind-of-file-exclusively-in-vscode/87063/12 "2022-09-12T18:22:44Z")

</div>

i didnt have this kind of problem before so the pathway changed i guess

---

<div class="post-metadata">

**Author:** ![Can\_Atasayar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/can_atasayar/32/42578_2.png) [@Can\_Atasayar](https://discourse.julialang.org/u/Can_Atasayar)\
**Post date:** [September 12, 2022, 6:24pm UTC](https://discourse.julialang.org/t/cant-read-any-kind-of-file-exclusively-in-vscode/87063/13 "2022-09-12T18:24:19Z")

</div>

yep, that works
