4

Closed

Typescript RC Crashes visual studio 2013.1

description

I have been using Typescript for some time and today I upgraded from 9.0.1 to the RC downloadable from typescriptlang. When craeting a new Typescript project vs crashes.

If I try running tsc from command line i get "Cannot initialize ActiveScript" and wonder if that is why VS crashes also.


Wonder if its a known issue or its just something related to my machine.
Closed Mar 27 at 1:32 AM by danquirk
Please re-open this if you're still seeing issues. As far as I can tell from the descriptions here the symptoms here (crashing on project open) are the result of a known issue in the version of Web Essentials currently on the VS Online Gallery. If anyone is having this issue and does not have Web Essentials installed do re-open this (or file a new issue) and make that clear.

comments

pksorensen wrote Mar 22 at 2:11 PM

The "cannot initialize activescript" was resolved uninstalling the old version. (somehow I had both RC and 9.0.1 installed.

Visual studio still crashes.
I tried uninstalling RC and installed 9.0.1.1 again and then visual studio still crashes also. So somehow I got VS broken by installing the RC in the first place :(

pksorensen wrote Mar 22 at 3:21 PM

I uninstalled typescript and installed update 2 CTP for visual studio and everything works as i wanted. Not sure if the RC do not work with 2013.1.

alexrandall wrote Mar 24 at 3:58 PM

Same thing happened with me.

TypeScript RC also crashes Visual Studio 2013 Ultimate with Update 1 applied.

Here's two ways that I've found to repro:

1) create a new project > Other Languages > TypeScript > HTML Application with TypeScript
       Project creates successfully, however Visual Studio opens TypeScript .ts file and immediately crashes
2) create a new project > Visual C# > Windows > Class Library, then add a new item > TypeScript File
      Immediate crash

Also note: I've tried completely uninstalling and reinstalling TypeScript RC, but no effect.

jonturner wrote Mar 24 at 4:38 PM

@pksorensen - What version of IE are you running? Some releases require IE10 or above.

danquirk wrote Mar 24 at 4:56 PM

Do any of you have any Visual Studio extensions installed (Web Essentials, Resharper, etc)?

GeoffArmstrong wrote Mar 24 at 6:38 PM

I got this too. Basically, if you have a project with TypeScript files from previous versions of TypeScript and you try to open those files with the new version of TypeScript, Visual Studio crashes hard.

Here's how I fixed it.

Open the project.
Add a new TypeScript file. This will cause VS to configure your project for TS files.
Delete the TS file.
Open your "old" TS files. VS shouldn't crash now.

Old versions of TS associated the JS files with the TS files. What I did to update to the new way was to delete both, then add a new TS file with the same name as the old, then go into my source control and revert the delete of the TS file.

pksorensen wrote Mar 24 at 8:24 PM

For my case I could not add new files because it crashed right away. Also, I created a new project so it was not due to old files.

But for now I am running Update 2 of visual studio and dont have any issues.

alexrandall wrote Mar 24 at 10:16 PM

Yes, have latest version of Web Essentials installed as well... I will attempt to uninstall it.
I have IE 11
Tried reverting back to previous version of TypeScript however Visual Studio 2013 (w Update 1) still crashes on new TypeScript project and just adding TypeScript files to an existing project (with no TypeScript there first).

danquirk wrote Mar 25 at 12:32 AM

The latest version of Web Essentials will cause VS to crash when opening/creating TypeScript projects.

danquirk wrote Mar 25 at 2:49 AM

To be clear, by latest I mean what's in the VS Extensions Online Gallery. The latest nightly build of Web Essentials should not have this issue.