I had this question about a year ago and it happened again. I couldn't remember how it was fixed, but found the post that says the project source files must be on drive C. I moved my code from my development drive D over the drive C and all is well with both features.
This post is really a reminder of what the solution was. Is it on the bug list?
However, that bug was fixed in Arduino IDE 2.2.0 and I'm not aware of any such bug in Arduino IDE 2.3.2. I just did a test with a sketch saved on my E: drive and the "Intellisense" features worked fine for me.
I'm not sure what you are referring to by "F12" though. Did you mean Ctrl+F12 (the keyboard shortcut for "Go to Definition")?
Please provide instructions I can follow to reproduce the bug and I'll investigate further.
Looking under File-->Advanced-->Keyboard Shortcuts it says:
editor.action.revealDefinitions F12
I'm using Win 10 Home with an I9-12900K processor using IDE 2.3.2. F12 did not work until I moved the project source code to the C drive. Hover did not work either.
You must have customized the shortcut. By default it is Ctrl+F12.
I'm not sure either because I am not able to reproduce the fault. This is why I requested that you provide instructions I can follow to reproduce the fault.
I think I did change it to just F12 at some time in the past. I'm using a Teensy 4.1 for the T41-EP Software Defined Transceiver project (SoftwareControlledHamRadio@groups.io | Home) and we just started a major software revision which I put on drive D instead of the previous version on drive C.
When a new release of the IDE comes out and is installed, is there a "settings file" somewhere that it uses for the new release. I'm wondering if that's being read and it can't find the indexes for the function defs. I moved the new code back to drive C and it is working now, as is the "hover" feature.
@ptillisch
My bad. I copied the code from drive D to drive C, did an Open and loaded the code and F12 and hover worked fine. I turned off my computer and went to eat dinner. I came back after dinner, loaded the IDE and F12 and hover did not work.
After some head scratching I looked under File --> Preferences and noticed that the Sketchbook Location was still on drive D. I changed that back to the drive C path to the code and both work again.
Still, given that the "drive C only" bug was fixed, I still can't figure out why it doesn't work. Either way, make sure you set the "Preferences" location to the proper path.
I see now. The location of the sketch is irrelevant. There is no problem with having the sketch on a different drive from the temporary folder. The conditions under which the fault occurs is when the library dependency is on a different drive.
This bug has already been fixed:
The fix was made after the time of the Arduino IDE 2.3.2 release, so it is only available when using the latest nightly build. You can download the nightly build from the links here: