Hello.
If I try to open an ino project located on a network path, for example "\\my-server\Arduino\test_led\test_led.ino", the project is not loaded, and a new empty project is created.
The only solution seems to connect the network path on a drive letter.
I'm running under Windoes 10, IDE 2.2.1.
Is this a bug or normal execution ?
Best regards.
Pascal
Hi @pgagnebin . It is a bug in the free open source Eclipse Theia IDE framework upon which Arduino IDE is built.
The bug is being tracked by the developers here:
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
opened 01:35AM - 15 Dec 22 UTC
filesystem
### Bug Description:
Attempting to open a folder from a [network share](https… ://support.microsoft.com/en-us/windows/file-sharing-over-a-network-in-windows-b58704b2-f53a-4b82-7bc1-80f9994725bf) fails silently.
### Steps to Reproduce:
#### Set up
Create a network share:
1. Create two nested folders in any convenient location:
```text
foo/
└── bar/
```
1. Right click on the `foo` folder.
1. Select "**Properties**" from the context menu.
1. Select the "**Sharing**" tab.
1. Click the "**Share...**" button.
1. Click the "**Share**" button.
1. Confirm the share in the Windows UAC prompt dialog.
1. Click the "**Done**" button on the "**Your folder is shared**" dialog.
1. Click the "**Close**" button on the "**Properties**" dialog.
#### Steps
1. Start the Theia "Electron example": https://github.com/eclipse-theia/theia/blob/master/doc/Developing.md#quick-start
1. Select **File > Open Folder...** from the example application's menus.
1. Select "**Network**" from the file tree in the navigation panel.
1. Open the machine that has the shared folder in the navigation panel.
1. Open the "**foo**" network share in the navigation panel.
1. Select the `bar` folder.
1. Click the "**Select Folder**" button.
🐛 A new window opens which does not have the `bar` folder loaded in the Explorer view.
### Additional Information
- Operating System: Windows 10
- Theia Version: https://github.com/eclipse-theia/theia/commit/4542e033f4cbd4138f3258cde3eb406809b7a615
---
The fault does not occur if I open the folder from the drive instead of from the network share.
---
I can not reproduce the fault using VS Code.
If you have a GitHub account, you can subscribe to those issues to get notifications of any new developments related to this subject:
Until then, use the workaround you already discovered of mapping the network share to a drive letter and opening the sketches from the path under that drive instead of the UNC path.
1 Like
system
Closed
May 8, 2024, 9:45am
3
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.