IDE 2.2.3 only opens last sketch

I had several sketches open and was editing one of them when the IDE stopped responding to a verify command. I also could not close this sketch. I found that some of the other sketches would shut down as expected but two would not. I resorted to the Windows task manager to stop the IDE.

Upon restarting the IDE it opens one of the sketches that was active before but only that one. No other sketches will open and the one that does won't even respond to a verify command. It reports this error:

image

I can scroll the text up and down but that's the extent of control over the sketch. Nothing wiring-wise was disturbed, by me, between working and not working.

The IDE opens the last saved sketch. The error isn't something I have seen before but my guess is the arduino isn't connected to a port. If it's windows then some sort of device manager error (it's why I left windows)

It was working, then - not working. I reverted to 2.2.1 for the time being.

Ok, I doubt it's related to version, these types of issues are usually solved by resetting things.

This does not help but I'm quite sure that the message is not related to a connection with your board; instead I think that it relates to the internal processes of the IDE.

After that, did you try IDE 2.3.3 again? The use of 2.2.1 might have fixed a corruption somewhere.

If the IDE 2.x misbehaves again, I would delete the directory C:\Users\yourUsername\AppData\Roaming\arduino-ide. The directory and its contents will be recreated from scratch.

Other things that you can delete are the files (!) in C:\Users\yourUsername.arduinoIDE; not sure about the complete directory; make backups first if needed. I regularly delete e.g. the yaml file if I bugger something up.

Reinstalled 2.3.3 and it's working now. Still, an indication of some sort of problem.

1 Like

I'm still having a small issue here.  The left snip is from a program I'm editing and the library manager search window shows a partial search term.  This instance of the library manager works, that is changing the search term alters the results shown.

The snip on the right is from a sketch which is also capable of being edited.  In fact, it's one mentioned above that I couldn't close during the IDE glitch mode.   As can be seen the library search function for this sketch does not respond to the search term. I can scroll the results window up and down as per normal.  For giggles I opened a third sketch and it behaves like the right snip.

I've closed and reopened this sketch a couple of times with no change.

Is the library manager capable of responding to only one sketch at a time?

I can not reproduce the library manager issue; but I did not have a crash like you had.

Which operating system are you using? There are a number of directories/files that you can safely delete; one of them might hold something.

Is there anything in the IDE logs that might point to an issue?

Wn10

Where would IDE logs be found?

Logs:

C:\Users\yourUsername\AppData\Roaming\Arduino IDE.

Some other stuff (not sure what is exactly in there):

C:\Users\yourUsername\AppData\Roaming\arduino-ide.

You can safely delete this directory, it will be recreated.

Recent sketches, board package URLs and the likes. I think you can safely delete the contents, it will be recreated.

C:\Users\yourUsername\.arduinoIDE

If in doubt, make a backup. I usually rename the directories from xxx to xxx.old

More specifically my OS

image

My directories

I cannot find \Appdata\Roaming\Arduino IDE.

AppData is a hidden directory. You can enable "Show hidden files, folders and drives" under the options in Windows explorer.

Got that done. :+1:

Is this what I'm looking for?

Yes, the last one probably.

You can delete or rename the last one after closing the IDE(s). Next do whatever you were doing that causes the issue, close the IDEs and have a look at them.

Additional info - snip from task manager. Hoping someone who knows what it means will find it useful:

Task manager shows four instances of IDE. In reality only three instances are running and I cannot close any of them using the windows close box. There were several other instances which I was able to close. Before closing the others down I went through and shut off the serial monitor wherever it was active. This had no effect on 'closeability'.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.