Reputation: 5599
I'm facing a strange instant crash of Visual Studio when I type something in the VB.NET source code editor.
C++ or C# source files still can be edited successfully. Also, some keys still work in the VB editor, for example tab, return or even copy and paste text via CTRL+C and CTRL+V.
This problem literally came over the weekend as editing files in VB.NET projects worked well on Friday but failed right away on Monday. I haven't modified any settings or updated anything.
I had a look at similar questions regarding this issue but none of them were able to solve my issue.
The crash happens no matter what I try:
Environment information:
Other installed software that might be relevant as it integrates into Visual Studio:
I doubt that an extension is the reason for the crash as the crash still occurs when extensions are disabled or VS is run in safemode. Right before one crash (in safemode) the following message was displayed:
Please wait for an editor command to finish...
Additionally, breakpoints can't be set anywhere in the (VB) code.
Anybody knows how to fix this issue without doing a complete reinstall of Visual Studio?
Upvotes: 0
Views: 418
Reputation: 5599
The cause of the crash in my case was the Text Editor configuration.
There was an entry in Tools → Options... → File Extension for vb
files. The editor was set to "Microsoft Visual C#". If this entry is removed and Visual Studio is restarted, editing worked again.
Upvotes: 1
Reputation: 310792
You can try doing a "Repair" in the Visual Studio installer.
You can try attaching another instance of Visual Studio as a debugger for the instance that is crashing and configuring it to break on exceptions. This might help narrow down the issue.
You could also try using the "Report a problem" feature of VS, and recording the crash. This will attach diagnostic logs and submit them to Microsoft. You are using quite an old version though.
Is upgrading to a newer version of VS an option?
Upvotes: 0