Teensy 4.1.
Yes
I had this problem before where the output was too long for the Forum buffer. I've attached a text file with the output.
EconjackPowershellOutput.txt (351.2 KB)
Some of the expected logs content was missing. I think this is because there is so much content that it exceeded the PowerShell terminal buffer. So I am going to use an alternative technique for obtaining the logs. I am hoping that the full logs might contain some more useful clues about the cause of the startup hang. The huge quantity of strange output in the logs you shared already is certainly suspicious, but I don't have the context about it that would hopefully be provided by the previous log content.
Please do this:
- Open a forum reply here by clicking the Reply button.
- Click the "Upload" icon (
) on the post composer toolbar:

A dialog will open. - In the dialog, select the latest
.logfile from this folder (the files are named according to the date):
(whereC:\Users\<username>\AppData\Roaming\Arduino IDE\<username>is your Windows username)
ⓘ Note that theC:\Users\<username>\AppDatafolder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items". - Click the Open button.
- Click the Reply button to publish the post.
Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .log file onto the post composer field to attach it.
Please let me know if you have any questions or problems while following those instructions.
2021-03-15_log.log (94.3 KB)
I think the date on this was a period when the IDE was working. I know that I had it working early last week, but I sorted by date and this is the newest file. That seems odd to me.
Are there path variables that are changed/used by the IDE?
ptillisch: another individual, Bob08, provided me with a solution. He said:
I ran into the same issue. I deleted this folder:
C:\Users\YOUR_USER_NAME.arduinoIDE
And everything was fine.
I did the same and not only is the "Exit-only" issue solved, it resolved my Hover and F12 issues. Users should know that, for me at least, these features only work after the first compile. My guess is because the Hover/F12 table is built as part of the compile process.
I'm a happy camper again!!
I'm glad you were able to find the solution. Thanks for taking the time to post an update.
Did you have a custom "Sketchbook location" set in your IDE preferences? The preferences are stored under that folder, so deleting it resets the preferences to their default values. It is possible that something under the folder at your custom "Sketchbook location" path could have caused the problems.
The "context-aware" features (e.g., autocomplete, "IntelliSense", suggestions, "Go to Definition") only work for objects from a library after one of these events occurs following the time of the addition of the #include directive for a library's header file in a sketch:
- The sketch is opened in Arduino IDE
- A different board is selected in the Arduino IDE menus
- The sketch is compiled
The reason for the deferred awareness of objects from libraries compared to the awareness of other objects in the sketch (which is updated after every edit to the code) is that the awareness of library objects is dependent on a process known as "library discovery", where Arduino IDE scans all installed libraries for a header files matching the #include directives of the sketch program and picks which libraries to add to the compiler's "search path". That "library discovery" process is somewhat resource intensive. The overhead of that resource usage is insignificant when it is done as part of the occasional manually triggered compile operation, but more significant when it comes to the continuous processing that is done to support the "context-aware" features. The developers decided to change to this "deferred discovery" approach for the "context-aware" feature support in response to user complaints that the previous approach was too heavy for lower spec PCs.
So this is expected specific to code that is dependent on a library, but it is not expected for code internal to your sketch. For example, if you do a "Go To Definition" on the foo call at line 3 of this sketch:
void foo() {}
void setup() {
foo();
}
void loop() {}
It is expected that the cursor will move to the foo definition at line 1 even if you never compiled the sketch.
ptillisch: my F12 does not work by itself. I'm using IDE 2.2.1 on WIn10 with 32G of memory running an i9 processor. The board is Teensy 4.1 on Port 4. F12 does not go to the source definition. However, Ctrl-F12 does! I tried erasing C:\Users\YOUR_USER_NAME.arduinoIDE as before, but no joy. (I can tell that it reverts to the default values.) Is it still supposed to work with just F12? Hover still works.