打开 Javascript 文件时 Visual Studio 2015 崩溃

Visual Studio 2015 crashes when opening Javascript files(打开 Javascript 文件时 Visual Studio 2015 崩溃)
本文介绍了打开 Javascript 文件时 Visual Studio 2015 崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我使用 Visual Studio 2015 Pro RTM 打开 Javascript 文件时,它都会崩溃并重新启动.没有错误信息.

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?

推荐答案

好吧,我终于想通了.它确实与 _references.js 文件有关.

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

我必须清除我的 _references.js 文件.在我清除该文件的内容后,Visual Studio 在打开 javascript 文件时将不再崩溃.

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.

这确实有效,但您可能会在 javascript 中丢失一些智能感知.当我打开一个未包含在 _references.js 文件中的 js 文件(如果其中有条目)时,就会出现此问题.我所要做的就是右键单击 _references.js 文件并单击更新 Javascript 引用",它工作正常.

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.

感谢大家的帮助.

这篇关于打开 Javascript 文件时 Visual Studio 2015 崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Update another component when Formik form changes(当Formik表单更改时更新另一个组件)
Formik validation isSubmitting / isValidating not getting set to true(Formik验证正在提交/isValiating未设置为True)
React Validation Max Range Using Formik(使用Formik的Reaction验证最大范围)
Validation using Yup to check string or number length(使用YUP检查字符串或数字长度的验证)
Updating initialValues prop on Formik Form does not update input value(更新Formik表单上的初始值属性不会更新输入值)
password validation with yup and formik(使用YUP和Formick进行密码验证)