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

Board package installation fails when user profile is stored at a junction folder #2658

Open
3 tasks done
a-nanasov opened this issue Mar 12, 2025 · 0 comments
Open
3 tasks done
Labels
type: imperfection Perceived defect in any part of project

Comments

@a-nanasov
Copy link

a-nanasov commented Mar 12, 2025

Describe the problem

Arduino IDE is storing hardware packages in the folder C:\Users\<username>\AppData\Local\Arduino15\packages\arduino\hardware. If this folder or any of its parents is a symlink (or junction in Windows terminology), then Boards Manager fails to install and load existing board packages.
And Arduino IDE log contains the following entry during startup:

ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: following symlink c:\Users\<username>\AppData\Local\Arduino15\packages: EvalSymlinks: too many links

To reproduce

  • Run cmd.exe with administrator privileges
  • Create a junction for packages folder:
    mklink /J "C:\hardware" "%USERPROFILE%\AppData\Local\Arduino15\packages\arduino\hardware"
  • Run Arduino IDE and install any board package using Board Manager
  • Ensure the installed package wasn't installed and not available

Expected behavior

  • A new board package is installed and available
  • Failed board packages installation should fail explicitly and show an error to the user
  • IDE allows to use a custom directory for storing its settings for cases when a user profile is stored in junction folder and cannot be used for storing board packages

Arduino IDE version

2.3.4

Operating system

Windows

Operating system version

Windows 11

Additional context

No response

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
@a-nanasov a-nanasov added the type: imperfection Perceived defect in any part of project label Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

1 participant