Open 119311 opened 1 year ago
Hi @119311 please tell us the full path of one of the sketches that won't open.
Hi @per1234 .
It looks like you didn't have enough information sorry.
sketch's path is like:
\\wsl$\Ubuntu\home\adobe\report\HCI\w1\src\ReadPushSwitch\ReadPushSwitch.ino
Is it \wsl$\
... or \\wsl$\
...? (note the first starts with a single \
, while the second starts with two \
)
I ask because there is a known bug that produces this fault when attempting to open sketches from any UNC path like \\wsl$\
... (regardless of whether WSL is involved).
Unfortunately I don't have any experience with WSL (I use a standard Linux machine when I want Linux and Git Bash to get a sufficiently Linux-ish experience from my Windows machine), so I apologize if I am a bit slow to understand the details of the report.
The path started with "//". Oh, my point was that I could not open the UNC path.
I see, so there is a known bug. If so, would I close this issue?
Thanks for the clarification.
would I close this issue?
The bug is actually in the Eclipse Theia IDE framework Arduino IDE is built on. I submitted a report to that project's repository:
https://github.com/eclipse-theia/theia/issues/11997
But I think it is reasonable for us to document the bug in this project's issue tracker as well so I think we should leave this issue open until the bug is resolved by updating the Theia version used by Arduino IDE to one that does not have the bug (we have to wait for a fix and a release before that will be possible). Even though the bug is not in the codebase hosted in this repository, that fact is not at all obvious so affected users will come here to look for an existing report rather than the Theia repository.
Ah, so the arduino IDE was based on theia, not codium! I was wondering why I could open it with the codium. Thank you for your response.
Hi, I'm also having trouble opening .ino files that are saved on the NAS. Using IDE 2.0.4, when I try to open an .ino file (example: "basics.ino"), saved in a folder on the NAS, the empty file "_sketchapr5a.ino" opens, not the one I have chosen. If I use, instead , IDE 1.8.19.0, the file opens normally. I am using Windows 11 Home, and the network path is as follows: "\\NAS_1\home\IL MIO DRIVE\ARDUINO_SKETCH\basics\basics.ino". Following some suggestions, I solved the problem after mapping the network folder (\NAS_1\home\MY DRIVE) (Z:). But I think this is a temporary solution, waiting for the programmers to finally fix the problem.
I attach my system information: System Info.txt Thanks
I don't know all the details... The problem of not being able to read files on this network seems to depend on theia. https://github.com/eclipse-theia/theia/issues/11997
Describe the problem
I cannot open files in WSL
I can't open sketches either from explorer or from arduino IDE.
To reproduce
Open Arduino IDE and select Open... then choose sketch in WSL.
Expected behavior
Sketch in WSL will not be opened, but a new sketch will be opened.
Arduino IDE version
Original report
2.0.4-nightly-20230104
Last verified with
2.3.2
Operating system
Windows
Operating system version
10.0.19045.2364
Additional context
I also tried with Arduino IDE 2.0.3
My environment is as follows:
Click here to see info
Windows and WSL WSL Version: 1.0.3.0 Kernel Version: 5.15.79.1 WSLg Version: 1.0.47 MSRDC Version: 1.2.3575 Direct3D Version: 1.606.4 DXCore Version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows Version 10.0.19045.2364 WSL distro OS: Ubuntu 22.04.1 LTS on Windows 10 x86_64 Kernel: 5.15.79.1-microsoft-standard-WSL2 Packages: 1748 (dpkg), 4 (snap) Shell: zsh 5.8.1 Theme: Adwaita [GTK3] Icons: Adwaita [GTK3] Terminal: Windows Terminal CPU: AMD Ryzen 5 4500U with Radeon Graphics (6) @ 2.370GHz GPU: e775:00:00.0 Microsoft Corporation Device 008e Memory: 1747MiB / 7946MiB
Workaround
Move the sketch to a different location that is not under a UNC path.
Alternatively, if you would like to continue to open sketches from the network share, you can map it to a drive on your computer. Then make sure to open the sketches from that drive instead of from the network location:
https://support.microsoft.com/en-gb/windows/map-a-network-drive-in-windows-29ce55d1-34e3-a7e2-4801-131475f9557d
Additional reports
Issue checklist