Why does some code comments get underlined?
Recently some of my code comment blocks gets an underline for some unknown reason and I can't figure out why. There's no suggestions for actions as far as I can see and I can't find anything that could be wrong. Here is an example:
Has anyone else seen this?
Please sign in to leave a comment.
Hi Jonas Rembratt!
Most likely, you've met a known issue that occurs when there are several assignments to out variable. I cannot say for sure without seeing the entire code block. Please check it and upvote if you have the same case.
Thanks!
I no longer see this issue. Did you fix it in the most recent release?
Hi Jonas Rembratt!
Well, the issue is still there. Which Rider versions do you use? Have you changed your code?
I am on 2023.2.1 and, no, code is the same
Hi Jonas,
not sure what happens. We can check the issue. For this, we need the full file/class for further analysis.
Thanks!
Hello! I've the same problem. It's easy to reproduce. When I uncheck the “Reassigned local variable” effect, the comments looks fine.
Hi Jonas and Dmitry,
Thanks for your interest and efforts in investigating this problem. I'm Tao from the Rider support team.
I can reproduce this issue on Rider 2023.1.4 and 2023.2.1 stable release. However, I realized it's intermittent, which could not be reproduced every time.
If you can see a similar problem in other versions, please don't hesitate to share the version/OS details.
It has been taken as a known issue and we have a corresponding ticket in our issue tracker. I will keep following up the progress until it gets resolved.
RIDER-95976 Documentation block is underlined when there are several assignments to out variable
I confirmed the workaround as Dmitry mentioned, disable
Editor | Color Scheme | Language Defaults -> Reassigned local variable effect
, the annoying underline on code comment will be disappeared.You can follow the ticket on YouTrack. Once we can confirm this issue fixed in the latest stable release, I will post my findings here as well.
Thanks for your understanding and collaboration.
Regards,
Tao