Skip to content

"Go To Definition" stops working after changing directories.data path #2347

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
3 tasks done
grinchyk opened this issue Feb 4, 2024 · 0 comments
Open
3 tasks done
Labels
topic: language server Related to the Arduino Language Server type: imperfection Perceived defect in any part of project

Comments

@grinchyk
Copy link

grinchyk commented Feb 4, 2024

Describe the problem

Go To Definition option in the context menu stops working after relocating the Arduino15 folder.

To reproduce

I tried to move the Arduino15 folder from the Local folder to my other folder.
In this case, I set the path to my folder in the file arduino-cli.yaml:

directories:
   builtin:
     libraries: workspace\Arduino15\libraries
   data: workspace\Arduino15
   downloads: workspace\Arduino15\staging
   libraries: workspace\Arduino15\libraries
   user: D:\Users\lsd\Documents\Arduino

At the same time, I deleted the original Arduino15 folder from the Local folder
The environment as a whole understands such movement.
The environment continues to work correctly with the folder at the new path I specified.
But the Go To Definition option in the context menu stops working.
When I copy the Arduino15 folder back to the Local folder
then Go To Definition is restore functionality the next time the environment is loaded.
The compiler and other elements of the environment continue working with the folder I specified in the arduino-cli.yaml

Expected behavior

Go To Definition option in the context menu should work in both situations

Arduino IDE version

2.2.1

Operating system

Windows

Operating system version

10

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
@grinchyk grinchyk added the type: imperfection Perceived defect in any part of project label Feb 4, 2024
@per1234 per1234 added the topic: language server Related to the Arduino Language Server label Feb 4, 2024
@per1234 per1234 changed the title Go To Definition (Ctrl+F12) stops working "Go To Definition" stops working after changing directories.data path Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: language server Related to the Arduino Language Server type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants