Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to open sketches from UNC path #1797

Open
3 tasks done
119311 opened this issue Jan 4, 2023 · 10 comments
Open
3 tasks done

Unable to open sketches from UNC path #1797

119311 opened this issue Jan 4, 2023 · 10 comments
Labels
topic: infrastructure Related to project infrastructure topic: theia Related to the Theia IDE framework type: imperfection Perceived defect in any part of project

Comments

@119311
Copy link

119311 commented Jan 4, 2023

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/windows/map-a-network-drive-in-windows-29ce55d1-34e3-a7e2-4801-131475f9557d

Additional reports

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
@119311 119311 added the type: imperfection Perceived defect in any part of project label Jan 4, 2023
@per1234 per1234 self-assigned this Jan 4, 2023
@per1234
Copy link
Contributor

per1234 commented Jan 4, 2023

Hi @119311 please tell us the full path of one of the sketches that won't open.

@per1234 per1234 added the status: waiting for information More information must be provided before work can proceed label Jan 4, 2023
@119311
Copy link
Author

119311 commented Jan 4, 2023

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

@per1234

This comment was marked as resolved.

@119311

This comment was marked as resolved.

@per1234
Copy link
Contributor

per1234 commented Jan 5, 2023

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:

eclipse-theia/theia#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.

@per1234 per1234 added topic: infrastructure Related to project infrastructure topic: theia Related to the Theia IDE framework and removed status: waiting for information More information must be provided before work can proceed labels Jan 5, 2023
@per1234 per1234 removed their assignment Jan 5, 2023
@119311

This comment was marked as outdated.

@per1234 per1234 changed the title I can't open files in WSL Unable to open sketches from UNC path Feb 10, 2023
@giano2002

This comment was marked as duplicate.

@119311

This comment was marked as duplicate.

@Ebola-Chan-bot
Copy link

Isn't VSCode also based on Theia? Why doesn't it have this problem? Can you refer to VSCode's solution for Arduino IDE?

x57x added a commit to x57x/TonUINO-TNG that referenced this issue Oct 30, 2024
Add a remark that opening the project from an UNC location is not possible with arduino IDE due to a persisting and long unsolved bug (see arduino/arduino-ide#1797)
@Dynteq
Copy link

Dynteq commented Feb 4, 2025

I can confirm this still exists in 2.3.4
Trying to open the .ino by navigating to the file location through windows "quick access" will not work and result in a new default file opening.
Workaround; navigating to the file through the mapped drive and manually drilling down to the right directory and then opening with IDE does work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure topic: theia Related to the Theia IDE framework type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

5 participants