Highlighting of errors

Although I have tried a few times to move to 2.0 there are still things that annoy me about it such as this, which means that I switch back to the classic IDE

Compiling this sketch with the classic ID moves the display and highlights the error line as well as giving details of the error

void setup()
{
  Serial.prunt("hello");
}

void loop()
{
}

image

However, using 2.0 rc9 although the error is reported and details provided the the error line is not highlighted or indicated as far as I can see

Have I missed a setting somewhere ?

Hi @UKHeliBob. Thanks for your report.

This bug is specific to the "High Contrast (Theia)" theme you have selected in preferences. The error line highlighting feature was added in the Arduino IDE 2.0.0-rc8 release:

You can see here how it looks when the "Light (Arduino)" theme is in use:

image

I'll submit a bug report about the high contrast theme to the developers later today and circle back here with a link to it.

Thanks Per

The reason that I tried the High Contrast theme was that on my PC the highlight bar for errors in other themes is not very distinct compared to the classic IDE

image
Note how much more obvious the highlight bar is in the classic IDE in my original post

Are the Theia options that control the colour of the highlight bar accessible to be changed

Please submit a report about that on GitHub. In this sort of case where the feedback is subjective (vs a completely objective defect), I think it is more appropriate for it to come directly from the user, whose subjective preferences are the most relevant, and who will be the only ones who can judge whether a proposed resolution is an improvement.

I think the way to do something like that would be to customize the theme. Eclipse Theia and the Arduino IDE 2.x support VS Code themes, so the information you find about making custom VS Code themes will also be relevant to Arduino IDE 2.x.

There is some information about installing custom themes in the Arduino IDE 2.x here:

I have now submitted a formal bug report about this on your behalf:

Thanks for bringing this to our attention!

Thank you

A post was split to a new topic: Takes many minutes to open / sometimes never loads

So as a user of Theia Light, I noticed quite a few scenarios where the contrast wasn't enough for me.
The only one I remember right now is the background select color of the autosuggestions, which gladly I think (due to the high resources bug it is not consistently working for me) has been fixed and is a dark blue instead of an almost white grey.

But it is nice to know that there is a need for documentation, I'll start collecting screenshots. I only had crappy old TN screens so I could be a good source for this.

Something I should explain about feedback regarding themes is that the themes with the "(Theia)" prefix are not Arduino's projects. These themes come as part of the free open source Eclipse Theia IDE framework the Arduino IDE is built on.

Arduino won't be able to take direct action regarding feedback about the base level functionality of those themes. The areas of interest for Arduino would be feedback about how those themes are applied to the Arduino IDE. The error line highlight problem might be one of those (or might also turn out to be a problem or intentional design of the "High Contrast (Theia)" theme).

Even there, maintenance of the "Dark (Theia)" and "Light (Theia)" themes is a low priority, since the equivalent Arduino themes are considered effective replacements. Maintenance of the "High Contrast (Theia)" theme is a higher priority because this is considered to provide something functionally unique in addition to the official Arduino themes for improving accessibility.

The base level behavior of the Theia themes can be checked by seeing how the theme behaves in the "Eclipse Theia Blueprint" application.

The themes with the "(Arduino)" prefix are Arduino's own custom themes and maintained by Arduino, so these are the ones where directing feedback to Arduino will be effective.

What the what is Serial.prunt?

I'm a beginner, I bet it has a meaning, especially since a moderator had the question

It was an example of an error that was not clearly highlighted in the code. @UKHeliBob knows that it has to be Serial.print but made a typing mistake and expeced it to be clearly highlighted.

On the subject of making the sketch code lines related to a compilation error more discoverable, check out this new feature in review:

Fairly standard in the more advanced IDEs, but only something Arduino IDE users could dream of until now.

Oh.

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