I have a problem whit the EDI 2.1.0 that the function of the F12 key stops working.
If I restart the program it works for a small time.
In Visual Studio I don't have that problem.
When F12 stops working in the IDE, do these also stop working:
(1) "Right Mouse Button" >> "Go to definition"
or
(2) "Two-finger-tap Trackpad" >> "Go to definition"
Yes, these are also no longer available
Do you have a valid board selected?
Yes, i have
Where are your sketches located. From memory, this issue shows if your sketches are not (in case of Windows) on the C-drive. I tried to find the topic back but failed So I'm either mistaken or my search skills are not up to scratch. Maybe yours are better
//edit
This is a newer topic than yours (not the one I was looking for)
This was the first (at least that I am aware of) topic reporting the bug:
That bug was my first thought when I saw @jeroen_v_s's post. However, this symptom doesn't match well with the conditions under which the bug reported at Data item properties in IDE 2.1 occur:
The only way that could fit is if the factor isn't actually time, but rather the interval between when a sketch on the C:\
drive is in use and when @jeroen_v_s switches to using a sketch stored on another drive?
the skets is located on the C: drive in de my document arduino folder and than in a sub. the problem is also if it is in the arduino folder.
Thanks for the clarification. This indicates the problem you are experiencing is different from the one reported at Data item properties in IDE 2.1.
Which board do you have selected from the Tools > Board menu when the problem occurs?
currently working in an ESP32 Dev Module project.
But the problem also occurs in other projects. It takes a very long time for a reaction to occur and often there is none. the Hover shows and no further response. The lockup (F12) function, if it works it takes at least 3+ minutes before anything happens. If anything happened. Often the possibility has disappeared (right mouse) popup screen.
F12 on my system works, but only after the first compile. Perhaps there's something in the caching process that reads the function signatures, but that's a small price to pay for F12 and incremental compilation.
I'm going to ask you to provide the debug logs that are produced by the "Arduino Language Server" tool used by Arduino IDE for these "context-aware" features.
NOTE: These instructions will not solve the problem. They are only intended to gather more information which might provide a clue that eventually leads to a solution.
A. Enable Language Server Logging
- Use the Ctrl/⌘+Shift+P keyboard shortcut to open the "Command Palette" in Arduino IDE.
- Select the "Preferences: Open Settings (UI)" command from the "Command Palette".
The "Preferences" tab will now open in the editor panel. - In the "Search Settings" field, type
arduino.language.log
- Under the "Arduino > Language: Log", section, check the box next to "☐ True if the Arduino Language Server should generate log files into the sketch folder. Otherwise, false. It's false by default."
- Close the Preferences tab by clicking its X icon.
B. Gather Logs
- Use Arduino IDE until it gets into that state where the "Error communicating with the language server" notification is shown.
- Select Sketch > Show Sketch Folder from the Arduino IDE menus.
The folder containing the sketch will open in your file browser. - Right click the sketch folder.
- From the context menu that opens, select "Send to".
- Select "Compressed (zipped) folder" from the "Send to" menu.
- Attach the "ZIP" file that was created to a reply here on this forum thread.
You can do this by drag and dropping the file onto a reply, copy/pasting the file, or by clicking the upward pointing arrow icon ("Upload") on the post composer toolbar. - Close the Preferences tab by clicking its X icon.
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.
- Use the Ctrl/⌘+Shift+P keyboard shortcut to open the "Command Palette" in Arduino IDE.
- Select the "Preferences: Open Settings (UI)" command from the "Command Palette".
The "Preferences" tab will now open in the editor panel. - In the "Search Settings" field, type
arduino.language.log
- Under the "Arduino > Language: Log", section, uncheck the box next to "
☑
True if the Arduino Language Server should generate log files into the sketch folder. Otherwise, false. It's false by default." - Close the Preferences tab by clicking its X icon.
You are now welcome to delete the .log
files that were added to the sketch folder.
Error log files where the F12 function stops working.
inols-err.zip (1.1 MB)
Well, I've lost the Hover and F12 features again. I'm running Win 10 Home edition, i9-12900K (3.19GHz) with 32G of memory. My source directory is on drive C. Recall that I'm the user who didn't get the complete File menu on boot (All I got was File --> Exit). I do get the full menu now, but Hover and F12 do nothing. I was on vacation for about 8 days and didn't use my system, but I'm pretty sure I didn't change any settings. Anyone else experience this??
Hi @econjack. Which board do you have selected from the Tools > Board menu in Arduino IDE?
By this, do you mean that the sketch currently open in Arduino IDE is stored on the C:\
drive?
The board is Teensy 4.1 and port is COM 4. I know this works because I can compile/upload my code to the Teensy. Both the source and the compiler are now on drive C.
Please provide the language server logs from attempting to use the language server-based features on a sketch. The instructions are above in post #13:
I came down this morning and loaded the IDE and I'm back to the point where the File submenu is only Exit. As a result, I cannot load a program or activate the server logs. Given that this seems to happen only to me, I'm starting to think I might have a hardware issue somewhere. Not sure where to go from here.
I'm going to ask you to post some additional information that might help us to identify the problem that causes the IDE not to start up fully.
Please do this:
- Close all Arduino IDE windows if the IDE is already running.
- Start Windows "File Explorer".
- Open the Arduino IDE installation folder.
ⓘ The default installation location is at one of the following paths:-
C:\Program Files\Arduino IDE
-
(whereC:\Users\<username>\AppData\Local\Programs\Arduino IDE
<username>
is your Windows username)
-
- In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
- From the context menu, click "Open PowerShell window here".
Windows PowerShell will now open with the current directory set to the Arduino IDE installation folder. - Type the following command:
& ".\Arduino IDE"
- Press the Enter key.
Debug output should now be printed to the PowerShell window as Arduino IDE starts. - Wait until you are sure the IDE startup has gone into the hang state
(as indicated by no additional output being printed to the terminal). - Switch back to the PowerShell window if the Arduino IDE window took the focus.
- Right click on the title bar of the PowerShell window.
This will open a context menu. - Select Edit > Select All from the context menu.
This will select all the text in the PowerShell window. - Press Ctrl+C.
This will copy the contents of the PowerShell window to the clipboard. - Open a forum reply here by clicking the Reply button.
- Click the
<CODE/>
icon on the post composer toolbar.
This will add the forum's code block markup (```
) to your reply to make sure the error messages are correctly formatted.
- Press Ctrl+V.
This will paste the output into the code block. - Move the cursor outside of the code block markup before you add any additional text to your reply.
- Click the Reply button to post the output.
Please let me know if you have any questions or problems while following those instructions.