Visual Studio 2015 crashes when opening Javascript files

后端 未结 7 1739
隐瞒了意图╮
隐瞒了意图╮ 2021-02-20 08:35

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 rei

相关标签:
7条回答
  • 2021-02-20 08:42

    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.

    0 讨论(0)
  • 2021-02-20 08:44

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

    0 讨论(0)
  • 2021-02-20 08:53

    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.

    0 讨论(0)
  • 2021-02-20 08:54

    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.

    0 讨论(0)
  • 2021-02-20 08:55

    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 讨论(0)
  • 2021-02-20 08:56

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

    0 讨论(0)
提交回复
热议问题