最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

crash - Visual Studio 2015 crashes when opening Javascript files - Stack Overflow

programmeradmin3浏览0评论

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?

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?

Share Improve this question asked Jul 31, 2015 at 12:42 dotnetmenschdotnetmensch 6062 gold badges7 silver badges20 bronze badges 0
Add a comment  | 

7 Answers 7

Reset to default 11

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.

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.

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.

try to clean cache of VS C:\Users\[user]\AppData\Local\Microsoft\VisualStudio\[version]\ComponentModelCache or find other cache places

This problem went away for me after creating a new .js file, and then opening the file I actually wanted to use.

I no longer use Visual Studio for TypeScript or JavaScript development. I use Visual Studio Code and it works like a charm.

f you click Debug button in the error pop windows, could you get any error message?

Tools->Options->Text Editor, could you see the JS editor there?

Maybe you could disable the option "Auto list members" under JS Editor, and then test it again.

If not Delete the .suo file and re-open and rebuild the proj file.

See this link.

发布评论

评论列表(0)

  1. 暂无评论