-
Notifications
You must be signed in to change notification settings - Fork 236
I cannot upload a code in arduino, every time appears this error message: Unhandled exception when cleaning up build "Uploading": {} #1615
Comments
I also have this problem |
Same here. I also haven't been able to manually select a port for weeks, I've been having to manually edit the |
@Pharap Any additional information that you can provide would be great! |
I also cannot select ports. Nothing happens (no error) when I click on the "select port" button. |
Like @trethaller, I click the
I'm not certain. Some time after the move to CLI. Possibly coincident with that.
I'm currently on Arduino v0.5.0 and Serial Monitor v0.7.0. |
@Pharap Could you update the Serial Monitor to v0.8.0? This is the version that should be installed in order to work with Arduino v0.5.0. @trethaller Same question for you, do you have Serial Monitor v0.8.0 installed? If so, could you confirm what issue is happening? A gif is always helpful if it's hard to explain. |
@gcampbell-msft thanks for catching the issue, that was indeed fixed by upgrading Serial Monitor to 0.8+, which version didn't appear because it depended on a newer VScode build and I had auto-updates disabled. |
I actually primarily use VSCodium to avoid telemetry. The unfortunate trade-off is that it's unable to use Microsoft's extension network, it has to maintain a separate network (to which only some extensions are published) so I tend to put off updating extensions until I really need to. Hence I had to update/reinstall VSCode before I could update Serial Monitor. It took quite a while. In addition to the seven extensions that I actually use, VSCode insisted on installing a load of extensions I didn't really want and then had to uninstall (e.g. Learn Markdown, Python, Pylance, Jupyter - I almost never use Python and already know Markdown). After three or four restarts I was finally up-to-date. Then for good measure I updated VSCodium and copied across the extensions... Only to discover that Serial Monitor thinks VSCodium is VSCode version 1.68 and says it won't work with anything lower than version 1.74. I can at least confirm that it works on VSCode, not even a build flag warning. It's just VSCodium that it won't work with yet, so it seems I'll just have to make do without it for now. (Or perhaps roll back a few versions to see if I can get something working.) Edit: I went into the serial monitor's For some reason it seems to be asking avrdude to be unnecessarily verbose, but that aside it's working. Edit 2: Spoke too soon, now I get "Error during build: unable to read contents of the source item: open I:<redacted>\output\compile_commands.json: The system cannot find the file specified." |
@Pharap Your most recent issue is posted here at arduino/arduino-cli#1646, so please reference that issue to track the progress. For your issue related to VS Codium: VS Codium is not officially supported. Closing this bug in favor of arduino/arduino-cli#1646. |
My code works and uploads perfectly in Arduino IDE but when i use vscode it doesn't work at all
Unhandled exception when cleaning up build "Uploading": {}
The text was updated successfully, but these errors were encountered: