Visual Studio 2017在打开TypeScript文件(.ts)时崩溃 [英] Visual Studio 2017 crashing on opening TypeScript files (.ts)

查看:456
本文介绍了Visual Studio 2017在打开TypeScript文件(.ts)时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Visual Studio 2013,2015和2017年用TypeScript进行Web开发。在过去,我已经为Visual Studio安装了Web Essentials(我忘记了2017年是否这样做了),以及Visual Studio的TypeScript插件。 (从很久以前的
版本1.6开始,最近的2.0或更新版本,我忘记了。)



所有在网络上都做得很好使用Visual Studio 2017进行开发。(运行版本15.2(26430.16)版本。) 
$


最近,当我尝试使用Visual Studio 2017时,它已经开始崩溃打开TypeScript(.ts)文件。它打开了任何其他类型的文件:到目前为止测试的.html,.css,.js和.txt。 (以及.cpp和.h。)但是试图打开.ts总会导致崩溃。



这种情况​​突然发生,没有任何解释。我的猜测是,打开.ts文件时使用的某种文件已损坏。我想删除这个文件。然而,我需要一个指向我可以尝试删除的指针,以及在哪里。

I've been using Visual Studio 2013, 2015, and now 2017 to do web development with TypeScript. In the past I have installed Web Essentials for Visual Studio (I forget if I did this for 2017), as well as the TypeScript plugin for Visual Studio. (Starting with version 1.6 a long time ago, and more recently 2.0 or perhaps newer, I forget.)

All has been going fairly well doing web development with Visual Studio 2017.  (Which is running version 15.2 (26430.16) Release.) 

Recently, Visual Studio 2017 has started crashing when I attempt to open a TypeScript (.ts) file. It opens any other kind of file just fine: .html, .css, .js, and .txt tested so far. (As well as .cpp and .h.) But attempting to open .ts always results in a crash.

This happened rather suddenly and without explanation. My guess is that some sort of file used when opening .ts files has become corrupted. I would like to delete this file. I need however a pointer to what I can try to delete, and where.

崩溃包含以下信息:



The crash contains this information:

推荐答案

欢迎来到MSDN论坛。

Welcome to MSDN forum.

首先,在visual studio安装程序中修复visual studio 2017.您还可以在Visual Studio 2017中更新TypeScript ,从
下载中心
并重新启动Visual Studio。在顶部菜单栏中,打开
工具>选项>文本编辑器> JavaScript / TypeScript>智能感知
,将
使用TypeScript版本更改为最新版本并检查问题是否仍然存在。      

Firstly, repair visual studio 2017 in visual studio installer. You could also updating TypeScript in Visual Studio 2017, downloaded the correct SDK version from the download center and restarted Visual Studio. From the top menu bar, open Tools > Options > Text Editor > JavaScript/TypeScript > IntelliSense, change Use TypeScript version to the latest version and check if the issue persists.      

在safemode中打开visual studio,在管理CMD窗口中运行命令:devenv / safemode并导航到C:\Program Files(x86)\ Microsoft Visual Studio \Common\IDE。   ;   

Open visual studio in safemode, run the command: devenv /safemode in an administrative CMD window and navigate to C:\Program Files (x86)\Microsoft Visual Studio\Common\IDE.     

如果问题仍然存在, 我需要您的帮助来收集日志。请在评估的命令提示符中运行命令:
devenv / log 。并将文件(%APPDATA%\ Microsoft /\\VisualStudio \Version \ ActivityLog.xml )上传到
https://onedrive.live.com/ 并在此处分享链接。

If the issue persists, I need your help to gather the logs. Please run the command: devenv /log in the evaluated command prompt. And upload the file (%APPDATA%\Microsoft\VisualStudio\Version\ActivityLog.xml) to https://onedrive.live.com/ and share the link here.

祝你好运,

Joyce


这篇关于Visual Studio 2017在打开TypeScript文件(.ts)时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆