Testing using nightly build arduino-pro-ide_nightly-20201022_Linux_64bit, on Linux 5.8.15-201.fc32.x86_64 with Xfce4.
Arduino AVR Boards 1.8.3
Compiling sketch for Arduino Micro and Uno proceeds as normal.
Compiling sketch for Mega2560 fails before it starts with the following pop-up tooltip:

Doesn't matter whether actual hardware attached or not. Nothing at all output to _Problems_ or _Output_ areas. Nothing apparently related in the trace level logging.
To reproduce: open IDE with a sketch, select Mega2560 board for build, click _verify_ button.
I tried to just verify against the Arduino Mega or Mega 2560 board with the 1.8.3 avr core, and it worked on macOS. I did not do upload because I do not have such a board. Please help us to narrow down the issue:
Ctrl/Cmd + Alt + I or from the menu:
./path/to/pro/ide/arduino-pro-ide.I don't see any errors appear in the Dev Tools when I press the verify button, but there is a relevant error when I change the board and select the Mega:
boards-data-store.ts:80 Uncaught (in promise) TypeError: Cannot read property 'length' of undefined
at BoardsDataStore.<anonymous> (boards-data-store.ts:80)
at step (52.bundle.js:63)
at Object.next (52.bundle.js:44)
at fulfilled (52.bundle.js:35)
As already stated, I don't see anything obvious in the server log (what I meant by "trace level logging").
It is hard to say why, but somehow, your local storage got corrupted for the Arduino Mega or Mega 2560 board 馃槙
Can you please try to remove the invalid entry?
localStorage.removeItem('theia:.arduinoProIDE-configOptions-1.8.3-arduino:avr:mega') in the console and press Enter,Thanks!
That has indeed fixed the issue, thanks.
With regard to why it has got corrupted, all I can say is that this is the first time I have tried the new IDE, so it was a fresh install only a few minutes old. I do also have the classic Arduino IDE installed on the same system but, since the new IDE doesn't bundle the boards, I had to install the Arduino AVR Boards package fresh as well.
So just playing around a little:
So just playing around a little:
- original issue is back again
Brilliant. Thank you so much for the steps.
I try to do something with this issue, but honestly, I think it's a problem with the core: https://github.com/arduino/arduino-cli/issues/620
This is how it works in the new IDE:
Or maybe, we should unselect the board, so at least with this behavior, we would force users to pick the board instead of corrupting the boards data store.
Do you have any other suggestions on how to handle this, @ubidefeo, @per1234? Thanks!
Do you have any other suggestions on how to handle this
I figured out how to solve this; it requires a bigger change, but it should be doable.
Not sure if it is related but I get the same error when trying to upload to a Nano. Previously there were no issues and both compile and upload were working fine.
The only thing that I think was changed was in the regular Arduino IDE. I updated boards and libraries (it has been some time since I used the 'old' IDE). After updating I was unable to upload a sketch in the Pro IDE. Maybe this is just a coincidence, IIRC the libraries are shared. I thought I would comment in case it is relevant.
Also. Issuing the localStorage.removeItem('theia:.arduinoProIDE-configOptions-1.8.3-arduino:avr:nano') command in the console and reselecting the board clears the issue for me.
@DeeEmm +1. I got the same problem using 0.1.2-nightly.20201112 / CLI Version: 0.13.0 alpha [17d24eb] on Fedora33 and your suggested steps solved the problem.
Most helpful comment
I figured out how to solve this; it requires a bigger change, but it should be doable.