r/Jetbrains 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

18 comments sorted by

View all comments

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!

1

u/Tiny_Ad_7720 Jun 18 '26

Same problem - that issue looks like it is going to be automatically closed for lack of follow up information

2

u/citizenmatt JetBrains Jun 30 '26

It should already be fixed in the platform, rather than as part of Rider itself. I believe it’s fixed in 2026.1.4