-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual Studio crashes when opening a TypeScript file #13407
Comments
Is that on a specific file or all files? |
This looks like a known issue that should already be fixed // cc @paulvanbrenk |
As far as I can tell, it happens on any .ts or .tsx file that I open.
…On Wed, Jan 11, 2017, 12:50 AM Vladimir Matveev ***@***.***> wrote:
This looks like a known issue that should already be fixed // cc @pvanbren
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#13407 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB2KwpblpysoBketSUN4KC3_Fvs5K_Fpks5rRG2PgaJpZM4LgLOu>
.
|
Can you give TypeScript 2.1.5 a try? |
@mhegazy Looks like the error still happens on 2.1.5 - and the stack trace appears to be the same. |
does this happen on a specific project? |
I've tested it with a brand new ASP.NET project and a new ASP.NET Core project. It happens very reliably as soon as I create and open any .ts or .tsx file. |
what if you do not have any project, just open VS, and open a TS file? |
@mhegazy Same behavior, VS crashes when the file opens with no project loaded. The exact behavior is that the file loads, syntax highlighting works (although it doesn't seem to be correct TypeScript syntax highlighting, maybe just regular JS highlighting?), VS becomes unresponsive for about a second, then a crash dialog appears ("Microsoft Visual Studio 2015 has stopped working"). |
@ckimes89, to make sure that we've ruled out anything setup related, can you please check:
If MEF cache does not have anything - try to delete |
@vladima Thanks for the reply! The file I have previously attempted to delete the |
interesting. There is an error during initialization of the TypeScript package and it happens prior to the setup of the telemetry session. <entry>
<record>252</record>
<time>2017/01/30 04:06:42.101</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [Microsoft.VisualStudio.Languageervices.TypeScript.TypeScriptPackage, Microsoft.VisualStudio.LanguageServices.TypeScript, Version=14.0.0.0, Culture=neutral]</description>
<guid>{2FFE45C4-5C73-493C-B187-F2E955FF875E}</guid>
</entry>
<entry>
<record>253</record>
<time>2017/01/30 04:06:42.123</time>
<type>Error</type>
<source>VisualStudio</source>
<description>LegacySitePackage failed for package [Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage, Microsoft.VisualStudio.LanguageServices.TypeScript, Version=14.0.0.0, Culture=neutral]Source: 'Microsoft.VisualStudio.LanguageServices.TypeScript' Description: Field not found: 'Microsoft.CodeAnalysis.Shared.Options.ServiceFeatureOnOffOptions.ClosedFileDiagnostic'.
System.MissingFieldException: Field not found: 'Microsoft.CodeAnalysis.Shared.Options.ServiceFeatureOnOffOptions.ClosedFileDiagnostic'.
 at Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage.Initialize()
 at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)</description>
<guid>{2FFE45C4-5C73-493C-B187-F2E955FF875E}</guid>
<hr>80131511</hr>
<errorinfo></errorinfo>
</entry> Error |
What file version are the following assemblies?
|
|
Thanks, can you also check the version for this assembly?
|
|
@ckimes89 can you please set up procdump as a postmortem debugger ( |
Using it as a postmortem debugger never generated a dump file, not sure why. However, I managed to get it working with the |
can you zip it and put on any file share you prefer: (OneDrive, Dropbox, Google Drive) etc? |
The zipped dump file is available here: https://drive.google.com/file/d/0B79PPoNoQ45dVG5HX09wa0o4dDQ/view?usp=sharing |
out of curiosity, have you installed any Roslyn vsix'es on your machine? |
Oh man, I sure have. I installed the vsix for playing around with arbitrary async return types: I can try removing it, but I can't figure out where they are installed to. |
You should be able to uninstall it from |
from the dump I can see that Roslyn dlls were loaded from this location: |
So, I don't think that .vsix I installed was installed anymore. I opened some of the code I was working with that needed it to be installed, but that doesn't compile anymore so I'm pretty sure I uninstalled it. Nonetheless, I went through and tried to remove most of the extensions that were installed to VS. After removing a few of them, VS would start to hang after restarting after showing an error about an extension failing to load correctly. Oddly, it wasn't always the same extension - it was various things related to language services, Azure, code analysis, etc. I decided to abandon that approach and do a full uninstall and reinstall of Visual Studio. Unfortunately, even after that VS still hangs on startup. Short of doing a full re-install of Windows, I don't know what to do here. Thanks everyone for your input on this bug, but it seems that I now have even bigger problems with Visual Studio. |
TypeScript Version: 2.1.4.0
TypeScript tools for Visual Studio
Code
Event Viewer shows the following exception:
About VS Info:
Expected behavior:
Visual Studio does not crash.
Actual behavior:
Visual Studio crashes.
The text was updated successfully, but these errors were encountered: