Skip to content

Extracting Arduino IDE ZIP package fails: "Path too long" #106

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

Open
sjh114961 opened this issue Jul 27, 2020 · 10 comments
Open

Extracting Arduino IDE ZIP package fails: "Path too long" #106

sjh114961 opened this issue Jul 27, 2020 · 10 comments
Labels
criticality: low Of low impact os: windows Specific to Windows operating system topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project

Comments

@sjh114961
Copy link

Describe the bug
Getting a path too long unzipping.

To Reproduce
Steps to reproduce the behavior:
Unzip package in windows 10

Expected behavior
No error

Screenshots

Desktop (please complete the following information):
Windows 10 Pro
version 10.0.18362 build 18362

Additional context
None

@kittaakos
Copy link
Contributor

Getting a path too long unzipping.

There is not much we can do about it, try to extract the app to C:\. Let us know if it still does not work.

@sjh114961
Copy link
Author

sjh114961 commented Jul 28, 2020

I installed it on the "c:" and that work. The answer is to shorten your name to a much more reasonable size.

@alranel
Copy link
Contributor

alranel commented Jul 29, 2020

@sjh114961 what path where you initially trying to unzip in?

@alranel
Copy link
Contributor

alranel commented Jul 29, 2020

I see that the file with the longest name in the Windows package is ./resources/app/plugins/vscode-yaml/extension/node_modules/yaml-language-server/out/server/node_modules/vscode-languageserver-protocol/node_modules/vscode-languageserver-types/tsconfig.esm.json which is 194 characters long. @kittaakos do you think that we can't really do much about this?

By the way, maybe would this be solved when we stop distributing the application as a zip file and we provide a proper installer instead?

@kittaakos
Copy link
Contributor

do you think that we can't really do much about this?

Unfortunately, yes. This path comes from a VS Code extension for the YAML language as-is: https://github.com/redhat-developer/vscode-yaml

We cannot change the paths, as Node.js might require them when it runs the VS Code extensions. I will ask around in the Theia community just to make sure I am not missing something and will update this thread.

If the problem occurs only when unzipping the app and not at runtime:

@kittaakos
Copy link
Contributor

kittaakos commented Jul 31, 2020

As for now, we decided to drop the YAML language support from the application. This means the users will lose all the language features (validation, content assist, hover) in the CLI config editor. This is unfortunate, but we have to replace the CLI config editor with some proper UI anyways.

I have opened an upstream issue: redhat-developer/vscode-yaml#336

CC: @ubidefeo @rsora

@rsora rsora transferred this issue from arduino/arduino-pro-ide Mar 1, 2021
@rsora rsora added the priority: low Resolution is a low priority label Mar 1, 2021
@per1234 per1234 removed the conclusion: declined Will not be worked on label Mar 28, 2021
@cmaglie cmaglie removed the type: bug label Sep 16, 2021
@per1234 per1234 mentioned this issue Sep 21, 2021
@per1234 per1234 added type: imperfection os: windows Specific to Windows operating system labels Sep 21, 2021
@rsora rsora added the type: imperfection Perceived defect in any part of project label Sep 22, 2021
@rsora rsora added criticality: low Of low impact and removed priority: low Resolution is a low priority labels Nov 2, 2021
@aliphys
Copy link

aliphys commented Jun 20, 2023

Reproduced this problem when unzipping the nightly build arduino-ide_nightly-20230620_Windows_64bit to the Downloads folder in Windows 11.
image

@aliphys
Copy link

aliphys commented Jun 20, 2023

I tried to modify the registry to allow for longer path names (modify registry at own risk ☠️ ):

  1. Press 🪟 +R
  2. Type regedit and hit Enter.
    image
  3. In the Registry Editor, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
  4. Change value for LongPathsSenabled DWORD to 1
    image
  5. I still get the same error
    image
  6. The IDE gets stuck on this screen for over 5 minutes
    image

@kittaakos
Copy link
Contributor

kittaakos commented Jun 21, 2023

Reproduced this problem when unzipping the nightly build arduino-ide_nightly-20230620_Windows_64bit to the Downloads folder in Windows 11.

I wonder why there is a serialport_unix.o.d file in the application for Windows.


Update:

It comes from the cortex-debug VSIX.

% find ./ -name serialport_unix.o.d
.//resources/app/plugins/cortex-debug/extension/binary_modules/v12.18.3/darwin/x64/node_modules/@serialport/bindings/build/Release/.deps/Release/obj.target/bindings/src/serialport_unix.o.d
.//resources/app/plugins/cortex-debug/extension/binary_modules/v12.14.1/linux/x64/node_modules/@serialport/bindings/build/Release/.deps/Release/obj.target/bindings/src/serialport_unix.o.d
.//resources/app/plugins/cortex-debug/extension/binary_modules/v12.14.1/linux/arm/node_modules/@serialport/bindings/build/Release/.deps/Release/obj.target/bindings/src/serialport_unix.o.d
.//resources/app/plugins/cortex-debug/extension/binary_modules/v12.14.1/linux/arm64/node_modules/@serialport/bindings/build/Release/.deps/Release/obj.target/bindings/src/serialport_unix.o.d
.//resources/app/plugins/cortex-debug/extension/binary_modules/v12.14.1/darwin/x64/node_modules/@serialport/bindings/build/Release/.deps/Release/obj.target/bindings/src/serialport_unix.o.d

@per1234 per1234 added the topic: infrastructure Related to project infrastructure label Oct 2, 2024
@per1234 per1234 changed the title Path too long Extracting Arduino IDE ZIP package fails: "Path too long" Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
criticality: low Of low impact os: windows Specific to Windows operating system topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

9 participants