HI,
Windows 11 user, Arduino IDE ver 2.3.2. I have just saved a program file to a server location from my normal sketchbook location on my local hard drive. there is no issue with the local version of the code.
I have not changed my sketchbook, the file is saved in the remote location, ( I edited a comment in to say it is the remote version with notepad) when I come to open it from the ide, I can browse to the code, however the IDE just opens as a new program, not the code I was hoping for.
What have I done wrong?
Thanks Ian
Hi @ianmorris1960_2 . It sounds like you are encountering this bug:
opened 09:03AM - 04 Jan 23 UTC
topic: infrastructure
type: imperfection
topic: theia
### 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
2.0.4-nightly-20230104
### 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:
<details>
<summary><b>Click here to see info</b></summary>
<p>
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
</p>
</details>
<a name="workaround"></a>
#### 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
- https://github.com/arduino/arduino-ide/issues/1475
- https://github.com/arduino/arduino-ide/issues/1872
- https://github.com/arduino/arduino-ide/issues/1797#issuecomment-1497036786
- https://forum.arduino.cc/t/ide-not-working-with-source-in-a-unc-path/1027968/1
- https://forum.arduino.cc/t/ide-not-working-with-source-in-a-unc-path/1027968/9
- https://forum.arduino.cc/t/ide-not-working-with-source-in-a-unc-path/1027968/11
- https://forum.arduino.cc/t/ide-not-working-with-source-in-a-unc-path/1027968/13
- https://forum.arduino.cc/t/ide-2-0-wont-open-ino-files/1032615/1
- https://forum.arduino.cc/t/ide-2-0-wont-open-ino-files/1032615/5
- https://forum.arduino.cc/t/ide-2-0-wont-open-ino-files/1032615/6
- https://forum.arduino.cc/t/ide-2-0-not-loading-old-sketches/1006159
- https://forum.arduino.cc/t/arduino-ide-wont-load-a-sketch-into-the-editor/1109867
- https://forum.arduino.cc/t/ide-wont-load-sketches/1112447
- https://forum.arduino.cc/t/save-as-doesnt-work-in-ide-2-1-0/1124209/7
- https://forum.arduino.cc/t/upgrade-from-ide-1-8-16-to-ide-2-2-1-sketches-from-nas-cannot-be-opened/1184931
### Issue checklist
- [X] I searched for previous reports in [the issue tracker](https://github.com/arduino/arduino-ide/issues?q=)
- [X] I verified the problem still occurs when using the latest [nightly build](https://www.arduino.cc/en/software#nightly-builds)
- [X] My report contains all necessary details
Please only comment on the GitHub issue threads if you have some significant technical information that will assist the developers in the resolution. The forum should be used for all discussion and support.
If so, the workaround is to map the network location to a drive, then open sketches from the path under that drive instead of the UNC path:
system
Closed
October 5, 2024, 4:30pm
3
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.