-
-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax Highlighting in Editor Stops working partway through file #1857
Comments
Just discovered that if I comment out the whole switch case statement, syntax highlight reappears after |
Hi, thanks for reporting it and attaching the source; I could reproduce the defect. I looked into this mysterious issue, and I can confirm the syntax highlight of your code is also broken with the built-in extension from VS Code. This is what IDE2 uses under the hood: Line 78 in f5621db
The highlighting of the sketch from VS Code with the built-in C++ extension is also broken: But I have good news: formatting your code in IDE2 fixes the syntax highlighting. It works if you insert a space after the 1857.mp4So that you know, we are aware of a few issues regarding the syntax coloring: #380. |
Thanks for the reply. I don't know why this is flagged as "off topic" though. As a general rule, software which doesn't work as expected should be reported. It is clearly a bug. Telling somebody a bug report is "off topic" discourages bug reports. |
@BrianAtDocumentedDesigns it is marked "off topic" because it is not our bug. Arduino IDE 2.x is built on many other software projects. You may experience faults in Arduino IDE that are caused by a bug in one of those other software projects. In that case, the bug must be reported to the issue tracker of the codebase that contains the bug. Of course, we don't expect the casual users will always be able to differentiate a fault originating from a bug in a dependency from a fault originating from a bug in Arduino's own codebase, so it is completely fine to report faults you experience when using Arduino IDE here, but if we determine the bug is not in our codebase, then we will close the issue because it is off topic here. In extreme cases where a bug in a dependency is seriously impacting the usability of Arduino IDE and the upstream fix might take some time, we might try to make a patch here in this codebase. But this is not such a case. The cosmetic defect is specific to your non-standard code formatting (I was quite surprised this is even valid code), so this is not considered a critical defect that requires action on our part. You are welcome to report the bug to the upstream project: https://github.com/jeff-hykin/better-cpp-syntax Please make sure to do the following first:
Make sure to include the following in your report:
|
I think that if it's marked off topic the person marking it off topic should be responsible for, at the very least, reporting it to the upstream project. Users who report bugs here clearly do not know the bug belongs to another project. However the people choosing to use other projects in their own projects (VSCode code in Arduino IDE for example), do know and should feel responsible for reporting bugs in the projects whose source they're using that become apparent to them through bug reporting in their own projects. You have recognized this bug belongs to VSCode, you should report it. If we stop reporting bugs because it's annoying, open source software falls apart. Do you want people to stop reporting bugs to you because it's annoying for them to go through the effort? Imagine how few people would use Arduino if it was a HUGE buggy mess that no one ever reported bugs on. No one would use it and the project would die. Report your bugs Per1234. |
Describe the problem
I made a change to my file and syntax highlighting stopped. I tried closing the IDE, renaming the file, even installing and using a fresh copy of the nightly and nothing seems to work. It looks like the editor treats everything after a particular line (Line 268) as a comment.
The file compiles with no problem, however.
Tacometer_V0.zip
To reproduce
I can't reproduce it - it just happens to the file and stays that way
Expected behavior
I would expect syntax highlighting to not stop working
Arduino IDE version
IDE 2.03 or Feb 2 2023 nightly
Operating system
Windows
Operating system version
11
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: