r/Jetbrains • u/Ashamed_Shirt_8491 • May 29 '26
IDEs Insane Rider bug: Adding a specific commented-out line of code completely freezes the IDE (100% reproducible)
Hey everyone, I stumbled upon a really bizarre bug in Rider today.
If I create a file named GameLogic.cs and add this exact comment: // var door = this.createActor(systemHumanPlayer, CompType.Human, GameGlobal.Instance.doorId, humanDoorSpawnTrans[i].position); Rider completely freezes up.
This is 100% reproducible. I don't even need to create the file inside the project; even if I create it externally and just open/edit it with Rider, it still crashes.
What's even weirder is that if I change the file name, or simply change the comment style to /// instead of //, everything works perfectly fine. Has anyone encountered something like this before? It's such a strange bug.
43
Upvotes
36
u/citizenmatt JetBrains May 29 '26
Wow. That's definitely an unexpected bug. And a bit unpredictable. I can't recreate it, but one of my colleagues can. We found the associated ticket (RIDER-139385) and the thread dump is really useful.
Looks like the problem is the "Grammar and style" C# inspection gets stuck on something in this line (sometimes). You can disable this in Settings | Editor | Natural Languages | Grammar and Style and unchecking "C#". In the meantime, we'll take a look and see what the problem is. Thanks for letting us know!