Besides the upgrade to Arduino IDE 2.0 RC 9-1 failed, for some reason the BOARD and PORT have been removed from my sketch. It was configured before.
To get it a little bit worst, the error message is not helpful:
grpc: error while marshaling: proto: Marshal called with nil
Compilation error: grpc: error while marshaling: proto: Marshal called with nil
I am running on Windows 10 Pro 21H2.
I saw this happen here too. In my case 2.0 version rc9.0 and downloaded as a ZIP archive and running on Linux. The ESP32 disappeared from the list of boards in Boards Manager and I got that error. After some time, the list refreshed itself and the ESP32 re-appeared as an option in Board Manager again and I had to select my board and the port again. It worked fine after that. Was kind of weird and disconcerting when it happened.
1 Like
Hi @CamargoF . Thanks for your report.
Which version of the Arduino IDE were you using before upgrading to Arduino IDE 2.0.0-rc9.1?
Were you able to select a board and port manually? Of course, that should not be expected, but I am only trying to gather additional information that might assist in the investigation.
We are tracking this bug here:
opened 04:36PM - 17 Jul 22 UTC
closed 08:43PM - 24 Aug 22 UTC
conclusion: resolved
topic: code
type: imperfection
topic: gRPC
### Describe the problem
Sorry there is probably something screwy in this code,… that I am hacking up...
I tried to do a verify operation, and the build aborted with an error:
```
grpc: error while marshaling: proto: Marshal called with nil
Compilation error: grpc: error while marshaling: proto: Marshal called with nil
```
That was all of the output, all in orangish color.
I have no idea what that error is supposed to imply.
### To reproduce
Not sure, but I included the code... Note: this code is not done yet, nor may never be used, but just an experiment on Teensy 3.2, to see if I can use FTM timer to capture pulse widths and maybe generate specific pulses...
I simply clicked on verify with this sketch, which includes a header file, which is part of the sketch.
[t3x_test_ftm_pin_capture-220717a.zip](https://github.com/arduino/arduino-ide/files/9128089/t3x_test_ftm_pin_capture-220717a.zip)
### Expected behavior
I am guessing probably lots of error messages.
### Arduino IDE version
20220716
### Operating system
Windows
### Operating system version
Windows 10
### Additional context
I am running with yesterdays IDE did not see any updates for today.
### Issue checklist
- [X] I searched for previous reports in [the issue tracker](https://github.com/arduino/arduino-ide/issues?q=)
- [X] I verified the problem still occurs when using the latest [nightly build](https://github.com/arduino/arduino-ide#nightly-builds)
- [X] My report contains all necessary details
as well as the fact that even the intended error message is only slightly better here:
opened 08:58PM - 10 Feb 21 UTC
closed 09:24AM - 26 Aug 22 UTC
type: enhancement
conclusion: resolved
topic: code
topic: CLI
criticality: medium
## Describe the current behavior
On the first use, no board is selected. A ne… w user may not realize it is necessary to select one. If they attempt to compile a sketch without selecting one, they will receive only this cryptic error message:
```
Compilation error: Missing FQBN (Fully Qualified Board Name)
```
and this notification:
```
Error: Request compile failed with message: Compilation error: Missing FQBN (Fully Qualified Board Name)
```
This doesn't mean anything to even very advanced IDE users, and the user will have difficulty understanding what they need to do to resolve it.
## To reproduce
1. Quit the IDE if it is running.
1. Simulate a fresh install by deleting the configuration folder:
- Windows:
```
C:\Users\<user name>\AppData\Roaming\arduino-ide\
```
- Linux:
```
~/.config/arduino-ide/
```
- macOS:
```
~/Library/Application Support/arduino-ide/
```
This step is done because the IDE currently makes it otherwise difficult for those with internal serial ports to achieve the required state of having no port selected, due to the odd fallback port selection behavior (e.g., https://github.com/arduino/arduino-ide/issues/180).
1. Start the Arduino IDE.
The board/port selector menu should show "**:x: No board selected**".
1. Select **Sketch > Verify/Compile** from the Arduino IDE menus.
## Describe the request
Show a user friendly error message. Something like:
> No board selected. Please select your Arduino board from the **Tools > Board** menu.
## Desktop
- OS: Windows 10
- Version: 2.0.0-rc3-snapshot.1d88263
Date: 2022-01-24T16:22:30.529Z
CLI Version: 0.20.2 [13783819]
## Additional context
Even among Arduino CLI users, I have found that the concept of "FQBN" is not widely known. IDE users are even less likely to be familiar with this acronym, and even less anxious to spend their time learning what it means, since the it is not otherwise a part of the IDE user experience.
---
Note that the error message produced by the reproduction instructions above is currently different than described due to a recent regression in Arduino CLI: https://github.com/arduino/arduino-cli/issues/1812
### Related
- https://github.com/arduino/docs-content/issues/300
If you have a GitHub account, you can subscribe to those issues to get notifications of any new developments related to this subject.
I removed the old Arduino IDE version and installed the new one (2.0.0-rc9) yesterday.
Since them I am trying to report all problem I detected to try to help.
My computer is a Windows 10 Pro 21H2.
Thanks! That is very much appreciated.
system
Closed
January 29, 2023, 11:22pm
6
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.