IDE frontend problems

Using the IDE these days I found that #elif precompiler directive fails to format the macro text corretly.

It is simple but is an error.

image

Welcome to the forum

Is your screen shot how you think that it should be formatted or how it is actually formatted ?

By the way, please do not post pictures of code. Post code in code tags to make it easy to copy for examination and testing

In my experience the easiest way to tidy up the code and add the code tags is as follows

Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.

Thank you!

I posted the image to make the problem visible. The problem is that the "FLOWSENSOR" name should be in orange as it is in the #if statement. But when #elif statement is used the macro doesen't change to orange and it should change as it happens in the #if statement.

Understood

My advice would be to ignore the colours just as the compiler does. There are more important bugs and missing features to be fixed before any time is devoted to this one

agreed. But, stills a bug, if you have a list should be on it thats the point.

Thank you.

I do not have a list of bugs. Why would I ?

This may be of interest Issues · arduino/arduino-ide · GitHub

1 Like

Hi @macccdias. The bug is being tracked by the Arduino IDE developers here:

If you have a GitHub account, you can subscribe to that thread to get notifications of any new developments related to this subject:

screenshot of Subscribe button


:exclamation: Please only comment on the GitHub issue thread if you have new technical information that will assist with the resolution. General discussion and support requests are always welcome here on the Arduino Forum.


As explained in that issue, this is actually a bug in a separate standard C++ syntax highlighting component used by Arduino IDE 2.x, but not maintained by Arduino. So we are waiting for the bug to be fixed upstream in that project, after which the fix will eventually propagate to Arduino IDE.

1 Like

Sorry, this "you" is not for yourself, is a generic one. But thanks for the github link

Thanks for the update about this problem, I will subscribe to the topic

1 Like

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