Closed heriberto-delgado closed 7 months ago
Just FYI, this was reported in February to the Arduino IDE project and they just ignored it.. "Not my bug, not my problem" mentality. Terrible. If you use a project's code in your project and someone finds a bug in your project as a result, you report the bug upstream. No? Should we suggest upstream reporting via downstream projects to Github or is that something that already exists but everyone is too lazy to use? How they can expect anyone to report bugs when they refuse to do so is beyond me. At least have pride in your own project, right?
Just FYI, this was reported in February to the Arduino IDE project
Now ... with that out of the way @JustTryingToGetSomeWorkDone ...
_
If you use a project's code in your project and someone finds a bug in your project as a result, you report the bug upstream. [they] should feel responsible for reporting bugs in the projects whose source they're using [...]
Out of respect/honor for Lasse Collin and others like him I want to say this very clearly:
For Arduino specifically, they are (maybe) funded through Arduino sales, so you can tell them it makes you not want to buy/use Arduinos. But they still have no obligation to even have a place to report issues.
At least have pride in your own project, right?
I understand why you might be thinking this, at one time I also didn't know. So I'll give you a pass. But, let me explain why telling maintainers to have a sense of pride is insulting and demotivating.
My repo, this one you're commenting on, is a dumpster fire. I WISH it was less popular. Not to say I'm not proud of any of my projects, but rather to say: everything runs on FOSS, which people maintain either just to keep the world spinning, or for one person's usecase (that they then donate so everyone can benefit). Not many projects are for bragging-rights.
With that explained, the only reason to talk about a lack of pride for FOSS projects is if you're trying to be malicious.
Should we suggest upstream reporting via downstream projects to Github?
That would be great! Not only would I love that, but I know there are full time employees at Microsoft who just handle issues for VS Code -- mostly reporting them to upstream sources (like this repo). I'm sure they would also love that feature, and maybe they can convince Microsoft to add it to Github.
How they can expect anyone to report bugs [...] it is beyond me.
Should we suggest upstream reporting via downstream projects to Github [...]?
I'm happy to answer this.
The part where they said "You are welcome to report the bug to the upstream project: https://github.com/jeff-hykin/better-cpp-syntax" roughly translates to "We expect (either) you will report it (or it never gets reported)".
Said differently; they don't expect anyone to report bugs. They are just happy when someone does.
[the Arduino IDE project] just ignored it..
So no, they did not ignore it, even if they could've handled it better with less effort/time.
@per1234 I will have to thank you for your comment here since the arduino thread is locked.
- Verify the fault still occurs when using the development version of that project
- Verify that there isn't an existing report in their issue tracker
Make sure to include the following in your report:
- A minimal, reproducible, verifiable example (MCVE) of the fault (the sketch you shared here contains a huge amount of irrelevant code)
- A reference to the section of the C++ specification that supports this odd omission of a space after the case statement as specification compliant
With all that outa the way.
@heriberto-delgado this should be "fixed" on v1.22.0 and by "fixed" I mean I had to entirely pull out the SQL highlighting because, thanks to Textmate, there isn't a real way to fix that. The C++ will at least be highlighted correctly by default now. I'm going to mark this as done until the engine allows for a fix.
But, for anyone who wants SQL keyword highlighting; I added the string.quoted.double.raw.sql
scope, which means its possible to make a VS Code extensions that adds SQL highlighting to that scope. Make one of those extensions, and you should be good to go.
I appreciate the effort, @jeff-hykin . Thanks!
Checklist
"C_Cpp.enhancedColorization": "Disabled"
If Disabling that^ makes the problem go away, then follow this to make an issue on the C++ extension: https://github.com/microsoft/vscode-cpptools/issues/new/choose
The code with a problem is:
It looks like:
It should look like:
(Well, not like that :D - after finding the first quote character in the raw C++ string, somehow, the process's interpretation of what is a token and what is the inside of a string, gets reversed. It is as if raw strings are not correctly interpreted here.