IDE hangs on startup: "Error: reading inventory file: While parsing config: yaml: line 14: found unexpected end of stream"

Hello,
I have the same problem with Arduino IDE hanging on startup with flashing logo on Macbook Air M1 OS Ventura and Arduino 2.0.4
Restart, Deinstallation and Installation of IDE did not change anything.
My log copied below and does not help me as I am an Arduino beginner.
Any help appreciated, thanks!

23-03-27T08:18:47.348Z daemon ERROR Error: Error: reading inventory file: While parsing config: yaml: line 14: found unexpected end of stream
    at Socket.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/arduino-daemon-impl.js:203:42)
    at Socket.emit (node:events:394:28)
    at addChunk (node:internal/streams/readable:312:12)
    at readableAddChunk (node:internal/streams/readable:287:9)
    at Socket.Readable.push (node:internal/streams/readable:226:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2023-03-27T08:18:47.348Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
2023-03-27T08:18:47.348Z daemon INFO Daemon exited with exit code: 7.
2023-03-27T08:18:47.358Z daemon INFO Error: reading inventory file: While parsing config: yaml: line 14: found unexpected end of stream

Hi @jocardu. It looks like one of the configuration files was corrupted. Please close all Arduino IDE windows if the IDE is running, then delete the file at the following path:

~/Library/Arduino15/inventory.yaml

:exclamation: The Library folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.


:warning: Please be very careful when deleting things from your computer. When in doubt, back up!


After that, try starting Arduino IDE again. This will cause it to regenerated a valid inventory.yaml file. Hopefully this time the IDE will start up without any problem.


Please let me know if you have any questions or problems while following those instructions.

Thanks for the fast reply - this solved my problem!

when I leave the program running for some time it freezes quite frequently and I have to kill it with the task manager. This might have been the reason for the corrupted file. I should remember to close it after use

You are welcome. I'm glad it is working now.

Regards,
Per

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