Arduino ide constantly freezes when uploading, exiting, saving

Hi,

it's been like that since like 2 years or something

even disabling the AV or installing a new version of the IDE (v1.8.13)

  • I launch the IDE, it takes ages
  • I save it takes ages
  • I upload or even exit, same thing

I did not notice any performance issue, the CPU does not much while IDE is frozen

this has to be fixed at some point, it's un manageable

thanks

os : win 10

Get a new PC :slight_smile:

Just joking.

I've found that with the 1.8.x series, startup time can be improved by cleaning out the libraries folder.
Moving old sketches out of the way might also help for the startup time.

Cleaning out the temporary directory where the IDE stores temporary stuff can also help in general.

I have 1.8.13 installed; startup takes long but saving, compiling, uploading and exiting are basically instantly.

  • how do I clean the lib folder ? do you mean remove them ?

  • what do you mean by "moving old sketches out of the way" ?

  • where is the temp folder ?

With the IDE closed, navigate to the library folder, right click the folder and change it from read only, and then delete the folder.

Make a folder to hold the old sketches, select the old sketch folder, and copy it to the old sketches folder, then delete the original folder. MoveTo might work but the folder being set to read only might cause issue or nor.

  1. C:\Users\yourUsername\Documents\Arduino\libraries
  2. Remove them from C:\Users\yourUsername\Documents\Arduino\
  3. C:\Users\yourUsername\AppData\Local\Temp; [edit]be careful what you throw away, it's not only arduino stuff in there[/edit].

I have to apologise; I have 1.8.5 installed, not 1.8.13. I'm mostly using 2.0 but if you complain about 1.8.x, you there is a chance that you will also complain about 2.0.

then I would have to reinstall them all

I have a gazillion arduino projects all over my work drive, would be better to unreference the latest ones from the IDE

I'd rather uninstall remove everything and reinstall the IDE

indeed, cleaning the temp folder wont help that much anyway

I'll try 2.0 anyway

  • I renamed libraries to _libraries in Documents/Arduino
  • emptied the temp folder after ide closed

still the same

ok I noticed arduino_debug was not freezing [edit, no it is freezing too]

while the startup seemed to have a problem trying to connect to some url

https://builder.arduino.cc/builder/v1/boards/0x0403/0x6014

Preparing boards...
2022-11-29T17:21:57.393Z INFO c.a.u.n.HttpConnectionManager:153 [cc.arduino.packages.discoverers.serial.SerialDiscovery] Connect to https://builder.arduino.cc/builder/v1/boards/0x0403/0x6014, method=GET, request id=905F152B31C946C0
Starting...
2022-11-29T17:21:58.038Z INFO c.a.u.n.HttpConnectionManager:157 [cc.arduino.packages.discoverers.serial.SerialDiscovery] Request complete URL="https://builder.arduino.cc/builder/v1/boards/0x0403/0x6014", method=GET, response code=404, request id=905F152B31C946C0, headers={null=[HTTP/1.1 404 Not Found], Cache-Control=[no-cache, no-store, must-revalidate], Server=[nginx], Connection=[keep-alive], Vary=[Origin], Pragma=[no-cache], Expires=[0], Content-Length=[0], Date=[Tue, 29 Nov 2022 17:21:57 GMT]}
2022-11-29T17:21:58.038Z WARN p.a.h.BoardCloudResolver:64 [cc.arduino.packages.discoverers.serial.SerialDiscovery] Fail to get the Vid Pid information from the builder response code=404

ok so far
now the search is virtually useless since one cannot search the entire project
and these tabs cannot be closed as usual
at least I dont have to wait a whole minute before it starts compiling

Click the magnifying glass icon on the "activity bar" on the left side of the Arduino IDE 2.x window to open the full project search interface.

Sketch file editor tabs were also not closable in Arduino IDE 1.x, so Arduino IDE 2.x works just the same in this respect.

exactly the opposite of...
any other ide/text editor

not that great of a UX
CTRL+F brings the attention of the user on the right of the screen
also
any other editor uses CTRL+SHIFT+F to search the whole project
I mean why reinvent the wheel...C++ and electronics are already complex enough like that...gee

If other IDEs met the needs of the Arduino community, there would have been no need to create an Arduino IDE.

Are you aware the origin of this UI is the world's most popular programming text editor/IDE VS Code?

It can't be so bad, right?

I'll share instructions for how you can configure that keyboard shortcut to open the Search view in Arduino IDE 2.x:

  1. Select File > Advanced > Keyboard Shortcuts from the Arduino IDE menus.
  2. Type toggle search view in the "Search keybindings" field.
  3. Hover the mouse pointer over the row for the "Toggle Search View" command.
  4. Click the pencil icon that appears at the left side of the row.
  5. An "Edit Keybinding for search-in-workspace.toggle" dialog will now open, in the dialog's field, type ctrl+shift+f
  6. Click the OK button.

Give it a little time. I think you'll warm up to it.