Description
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:
Additional reports
- Library installation fails when sketchbook is under a redirected Windows
Documents
folder #1475 (comment) - Sketches on UNC paths cannot be opened from Windows File Explorer #1872
- Unable to open sketches from UNC path #1797 (comment)
- https://forum.arduino.cc/t/ide-2-0-not-loading-old-sketches/1006159
- 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/opening-file-from-explorer-opens-a-new-sketch/1077099
- https://forum.arduino.cc/t/impossible-to-open-inos-on-my-synology-nas/1106591
- 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
- https://forum.arduino.cc/t/fail-to-open-project-form-network-path/1187512
- https://forum.arduino.cc/t/when-opening-files-on-a-server-file-does-not-open-get-a-blank-instead/1245346
- https://forum.arduino.cc/t/ide-not-working-with-source-in-a-unc-path-revival/1316700
- https://forum.arduino.cc/t/save-programming-to-nas-harddrive/1337990/11
Related
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details