Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 crashes when opening Javascript files

Every time I open a Javascript file with Visual Studio 2015 Pro RTM it crashes and restarts. No error messages.

I did a repair but I haven't tried uninstalling and reinstalling yet. Is anyone else having this problem?

like image 915
dotnetmensch Avatar asked Jul 31 '15 12:07

dotnetmensch


3 Answers

Ok I finally figured it out. It does have something to do with the _references.js file.

I had to clear out my _references.js file. After I had cleared out the contents of that file, visual studio would no longer crash when opening up javascript files.

This does work but you could lose your some of your intellisense in javascript. The issue occurs when I opened a js file that was not included in the _references.js file if there are entries in there. All I had to do is right click the _references.js file and click "Update Javascript References" and it worked fine.

Thanks everyone for your help.

like image 199
dotnetmensch Avatar answered Oct 13 '22 22:10

dotnetmensch


I had to clear out my _references.js file. After I had cleared out the contents of that file, visual studio would no longer crash when opening up javascript files.

like image 8
user3366672 Avatar answered Oct 13 '22 21:10

user3366672


Try to disable any 3rd party stuff, in an attempt to find the culprit that might be causing the problem. For instance, CodeRush, ReSharper, Web Essentials, etc. You can find all the ones you have installed under TOOLS->Extensions & Updates. Then look at the ones in the INSTALLED list. Disabling them doesn't uninstall them. You can always re-enable them again. You might have to do a few iterations of restarting Visual Studio during this endeavor.

like image 2
Steve Kennedy Avatar answered Oct 13 '22 20:10

Steve Kennedy