Closed N1ceL closed 3 months ago
@N1ceL
P.S. For me it works as expected in Rider for cpp file.
@clutcher
Yes, it's correct, also I tried to change the color for both themes and choose a "Dark" back, but the problem still remained. This happens only with the typedef words (always), and if ReSharper is enabled it breaks all other keywords too (like return/if/etc instructions). Keyword highlighting work for me only in one case: if it is not typedef and if ReSharper is disabled it can work for basic keywords.
Example with RegExp : It may be problematic to fix this (the only idea is to check the current color and compare it with the color of the comment/undefined if at all possible). But also if possible to fix the keywords fully (typedefs, and instructions with enabled ReSharper), then it will be perfect even without RegExp
@N1ceL so you are using CLion with that "resharper" checkbox not Rider?
@N1ceL
\/\*[\s\S]*?\*\/|(\buint32\b)
. You can use chatgpt to generate regexepes for you and some online regexp tool for testing (for example https://regex101.com/ ).So right now it looks like that I should check if uint32 can work as "keyword" for Clion+Resharper? Am I right or missed something from your request?
@clutcher Thanks for the help with RegExp. Yes, it looks like enabled "Clion -> Advanced Settings -> ReSharper" breaks something in keyword highlighting, however RegExp works with ReSharper. I think my problem is not important, keyword highlighting won't work with ReSharper, but RegExp is now normal
@N1ceL
@N1ceL Are you using Windows? In https://blog.jetbrains.com/clion/2023/11/clion-nova/#notable_differences is written that this is Windows only thing, that could explain, why on my Linux instance there are no issues.
@clutcher Everything works fine through RegExp, I'll just use it instead of Keywords. Yes, this happens on Windows with ReSharper only and only for Keywords, RegExp is fine,
@N1ceL Regexp is much slower compared to keywords. I will keep this bug open and will find a way how to investigate what's going on with Windows+Resharper.
@N1ceL It was a long journey... So Jetbrains did major changes with that "Resharper" checkbox with fully disabled big part of functionality and bugs in fallback scenarious. There are a bunch of tickets relates to this issues:
It took for me some time to rewrite code and return most part of functionality back with CLion Nova engine. I would release it this week.
Should be fixed in 2024.1.26.
Unfortunately, this plugin does not work as it should, and there is no alternative to it. I hope it can be fixed (at least the keywords detection for typdefs and instruction with enabled ReSharper)