IDE 2 (beta) - problem

Hi @johndg. Thanks for giving the beta phase Arduino IDE 2.x a try and proving your valuable feedback!

There are a lot of known issues with the Arduino Language Server that generates these underlines. You can see the list currently tracked by the IDE developers here:

https://github.com/arduino/arduino-ide/issues?q=is%3Aissue+is%3Aopen+label%3A"topic%3A+language+server"+label%3A"type%3A+imperfection"

The important thing to understand is that this is a different system from the one that compiles your code. As long as you can successfully compile, then the code is valid.

Just today, the developers made a nice improvement to the error messages to make them less cryptic;

Let's start with the full output. There is probably additional valuable information that will help us to identify the problem.

Please do this:

  1. Right click on the black "Output" pane at the bottom of the Arduino IDE 2.x window.
  2. From the context menu, click Copy All.
  3. Open a forum reply here by clicking the Reply button.
  4. Click the </> icon on the post composer toolbar. This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  5. Press Ctrl+V. This will paste the compilation output into the code block.
  6. Move the cursor outside of the code tags before you add any additional text to your reply.
  7. Click the Reply button to post the output.