Open
Description
Describe the problem
tooltips for functions and variables work only for sketches located in the default folder %User/Documents/...%.
But if in the Preferences the home folder is redefined to another one, then these hints no longer work.
To reproduce
Change Home folder in Preferences.
Create New sketch (even empty) and check working popup hints on "loop" or "setup" functions..
Save sketch to Home folder.
Check for broken popup tooltips.
Expected behavior
Broken tooltips.
Arduino IDE version
2.1.1
Operating system
Windows
Operating system version
Windows11
Additional context
No response
Issue checklist
- I searched for previous reports in the issue trackerI verified the problem still occurs when using the latest nightly buildMy report contains all necessary details
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
per1234 commentedon Jul 4, 2023
Hi @EarlVadim. This sounds like a known bug that has already been fixed:
compile
command fails when sketch on different drive from custom build path arduino-cli#2156Unfortunately we weren't able to include the fix in the Arduino IDE 2.1.1 release but it will definitely be in the next release.
For now, you can only get the fix by using a beta tester version of Arduino IDE. Please give that version a try and then reply here to let me know if the problem still occurs.
I'll provide instructions you can follow to install that version:
(GitHub only allows downloads of the beta tester builds when you are signed in.)
https://github.com/arduino/arduino-ide/actions/runs/5243125693#artifacts
(yes, there are two layers of ZIP files 🙃)
Arduino IDE.exe
file from the unzipped folder.When you install the IDE via this ZIP file, it will not interfere with any other installations of Arduino IDE on your computer so you are welcome to have both beta tester versions as well as the release version of Arduino IDE installed on your computer at the same time.
EarlVadim commentedon Jul 4, 2023
Hello @per1234 .
Thank you for quick answer..
Yes, snapshot d79bc0d is worked.
Thank you again.
UPD: It worked, but not stability. some values are loaded and some are not.
In addition, there were problems with displaying all repetitions of variables or operators in the text of the sketch on the scroll bar.
I hope I made it clear, or attach a screenshot?
per1234 commentedon Jul 8, 2023
Hi @EarlVadim. Please provide detailed instructions I can follow to reproduce the faults you reported.
EarlVadim commentedon Jul 11, 2023
Hi, @per1234
I can't write the instruction, I see these errors on my own projects.
I'll just give two screenshots.
In the first screenshot, popup hints work, but not all repeated selections are displayed. project for ESP32.
on the second screenshot, all repetitions are displayed, but pop-up hints do not work. project for esp8266.
both projects are open at the same time, but their behavior is different.
hope you find the reason.
EarlVadim commentedon Sep 3, 2023
Hello again..
In new version 2.2.1 also has big problems.
The cursor in the picture is on "voltageInput" but highlighted duplicate values are anywhere.
[-]Don't work popup tooltips for functions[/-][+]Intermittent problems with Editor Hover and Occurrences Highlight[/+]per1234 commentedon Nov 3, 2023
Hi @EarlVadim. Please comment to let us know whether you are still experiencing this problem.
If you are, I'm going to ask you to provide some additional information that might allow us to identify the cause (we are not able to reproduce the fault on our own machines, which makes it difficult to investigate):
I'm going to ask you to provide the debug logs that are produced by the "Arduino Language Server" tool.
You can do that by following these instructions:
A. Enable Language Server Logging
The "Preferences" tab will now open in the editor panel.
arduino.language.log
in the "Search Settings" field.B. Gather Logs
The folder containing the sketch will open in your file manager.
A context menu will open.
A Send to" sub-menu will open.
⚠ Don't use an email reply to make the comment. You must make the comment via the web interface here on the GitHub website in order for the attachment to be made:
Intermittent problems with Editor Hover and Occurrences Highlight #2127
You can do this by drag and dropping the file onto the comment field, or by clicking the paper clip icon on the comment composer toolbar.
C. Disable Language Server Logging
When language server logging is enabled, log files are saved to every sketch you open in Arduino IDE and they steadily grow in size whenever you are editing the sketch. So the logging is something you would usually want to disable whenever generation of logs is not needed.
The "Preferences" tab will now open in the editor panel.
arduino.language.log
in the "Search Settings" field.You are now welcome to delete the
.log
files that were added to the sketch folder.1 remaining item