Files sporadically cannot be edited

I updated my Rider installation to 2024.3 yesterday with the release of .net 9. Everything seemed to work ok, but when I started to use it today to actually edit some files in my solution, I'm running into an issue I haven't seen before. 

I have a solution with multiple projects, several of them containing blazor components. When I am editing .razor files, I am able to make some changes but after a moment it is almost like the file becomes read-only. Not at the file system level - nothing changes there - but as I am typing changes stop happening in the editor. It looks a little like the character briefly appears and is then deleted. Closing and opening the file again does not change this behavior - I have to close Rider and open it again to make more changes to the file. This doesn't seem to happen with .cs files (at least I have not seen it happen with .cs files yet). 

I have tried invalidating the caches but it still happens after that. I've confirmed file system permissions are correct, files are not made read-only, etc (and again, closing and re-opening Rider will give me back the ability to edit the .razor files again briefly)

3
4 comments

I have the same, also updated Rider recently. I am unable to edit ".razor" files by typing characters (nothing happens). I can however duplicate a line with `Ctrl+d` or paste text with `Ctrl+v` or delete with `Ctrl+x`. I was editing files normally end then suddenly it stopped reacting to keyboard. Invalidating all caches didn't help. This is not related to a single project, in another project it's the same. All my projects are .NET 8.

0

Hi! 

This is a known issue: RIDER-119978 CSS/USS files won't open without "JavaScript and TypeScript" plugin (the title might be confusing, but it also applies to razor files. Try the following: go to File | Settings | Plugins and enable JavaScript and TypeScript plugin. 

1

Thank you - I can confirm that enabling the Javascript/Typescript plugin did resolve my issue

0

I'm having this issue in a .cshtml file. It has an error that I caused in a different tool while merging code. Either a div or a brace don't line up. However, I can't edit the file almost at all. If I try to add or delete a brace, the cursor jumps around on me. It does seem to allow some edits but not how and where I want.

I already have the “JavaScript and TypeScript” plugin installed and enabled. This is on MacOS.

I will resolve this by reverting my changes back and redoing them.

Update: closing and reopening that file resolved the issue for me. I'm brand new to Rider so I haven't figured out the quirks yet.

1

Please sign in to leave a comment.