TypeScript Tools for VS 2015 2.0.2.0 Beta not working (on Windows Server 2012??)

Created on 24 Sep 2016  Â·  26Comments  Â·  Source: microsoft/TypeScript

TypeScript Version: 2.0.2.0

I was using VS2015 Update 3 with the built-in TypeScript tool, version 1.8.6 succesfully.

Today I tried to upgrade it using TypeScript Tools for VS 2015 2.0.2.0 Beta. After installing the tools successfully, there's no more auto-completion in VS (the syntax highlight is still there). And the Build command exits with error.

I decided to roll back to 1.8.6 so I uninstalled 2.0.2.0 Beta. I checked that the TypeScript folder under C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft and C:\Program Files (x86)\Microsoft SDKs are gone. But executing the TypeScript_Dev14Full.exe (1.8 version) doesn't recreate those folders again.

So I had to switch back to 2.0 again. I installed it once again. Now after opening my TypeScript project there is even no syntax highlighting, not to mention auto completion and Build, and upon open project properties it shows

An error occurred trying to load the page.
No exports were found that match the constraint: 
    ContractName    Microsoft.CodeAnalysis.Editor.TypeScript.ScriptContexts.ITypeScriptProjectProvider
    RequiredTypeIdentity    Microsoft.CodeAnalysis.Editor.TypeScript.ScriptContexts.ITypeScriptProjectProvider

I've been Googling for hours but I haven't found any workable solutions. One of the issues I found at https://github.com/Microsoft/TypeScript/issues/7519 bears the most similar symptoms and it suggests delete the %localappdata%\Microsoft\VisualStudio\14.0\ComponentModelCache folder. I did that and it did not work and it shows a message saying 'An exception has been encountered. This may be caused by an extension.' and it asks me to check the ActivityLog.xml
ActivityLog.txt here is the txt version since github doesn't support xml. Please take a look if it's helpful.

I haven't seen any other posts that describe situations similar to mine.

Please help.

Expected behavior:
TypeScript Tools for VS 2015 2.0.2.0 Beta work properly.

Actual behavior:
It does not. See descriptions above.

Bug Fixed High Priority

Most helpful comment

I had these issues with VS2015 update 3 (as listed by @deadZedd ) and typescript 2.0.6, repairing VS and reinstalling typescript was not enough.

I did the steps suggested by @paulvanbrenk (see issue #7519) and had success.. coloring, intellisense, auto format/indentation and completion works again.

All 26 comments

Sounds like an installer issue. can you try to

If this does not work, please share your install logs for these operations. the install logs should be under %TEMP% and should have the prefix dd_typescript*.

@mhegazy

I have the same issue ,

An error occurred trying to load the page.
No exports were found that match the constraint:
ContractName Microsoft.CodeAnalysis.Editor.TypeScript.ScriptContexts.ITypeScriptProjectProvider
RequiredTypeIdentity Microsoft.CodeAnalysis.Editor.TypeScript.ScriptContexts.ITypeScriptProjectProvider
Using VS 2015 Professional Edtion, With Update 3 from

  • Have installed Update 3 from Location : https://msdn.microsoft.com/en-us/library/mt752379.aspx)
  • Have installed Typescript 2.0.3 for VS 2015.

Have attached Installation Logs.
dd_TypeScript_Dev14_20160923221717.txt
dd_TypeScript_Dev14_20160923221717_001_TypeScript_Dev14.msi.txt
dd_TypeScript_Dev14_20160923221717_000_TypeScript_SDK.msi.txt

Just to make sure I understand the sequence correctelly, did you uninstall TS 2.* before installing update 3 or not?

@mhegazy
I have uninstalled Typescript 2.0.3.
Repaired VS 2015 Update 3,
Installed again Typescript 2.0.3

Still the same issue, Have attached Typescript Logs and Batch Installation Logs.

Note: tried with 2.0.2 Beta as well . I had the same @issue

dd_TypeScript_Dev14_20160923234028_000_TypeScript_SDK.msi.txt
dd_TypeScript_Dev14_20160923234028_001_TypeScript_Dev14.msi.txt
dd_TypeScript_Dev14_20160923234028.txt

Update 3 Installation Log

dd_patch_KB3165756_20160923233130.txt
dd_patch_KB3165756_20160923233130_028_Preparation_patch_KB3165756.txt
dd_patch_KB3165756_20160923233130_028_Preparation_patch_KB3165756_{919C67A9-2DE8-4929-A910-CB85E009B5CB}.txt

Can you try devenv /setup from a vs command prompet.

Cleared AppData\Roaming\VS\14.0 folder and tried devenv /setup . still
have the same issue.

If I try with 1.8.4 typescript is trying to load. but that has conflict
with new version installation files. May be VS 2015 Repair will do for
Typescript 1.8.4.

But for 2.0.2 and 2.0.3 have the same issue.

On Sat, Sep 24, 2016 at 12:02 AM, Mohamed Hegazy [email protected]
wrote:

Can you try devenv /setup from a vs command prompet.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/TypeScript/issues/11110#issuecomment-249343561,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATko_CyuCiXPMkUrGF4NimVnWm988x0Uks5qtKDlgaJpZM4KFcKI
.

I'm in the same boat. I can't even get 1.8.x to work again.

I have not been able to set up a local machine to reproduce this issue. I would appreciate any information you can share about what was installed on the machine, and how you got to the broken state.

Also it would be great if you can tell me what versions of TS are installed using Add or Remove Programs now.

Can you also share the versions of C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TypeScript\Microsoft.CodeAnalysis.TypeScript.EditorFeatures.dll that you currently have.

When I have installed 2.0.3 , Initially there was no issue. But no
features were working. Its not highlighting any syntax, error or nothing.
Just only compile time it throws error.
Otherwise its just behaving like text file. Its no were near Visual studio
code.

Then I thought, this is due to multiple version of Typescript installed .
So.. To clear it I have uninstalled 1.8.4 and Deleted 1.0 from (C:Program
Files (x86)\Microsoft SDKsTypeScript) as there was no uninstall option.

After that I have started getting that error.

To Fix this, I have uninstalled 2.0.3 , UnInstalled VS 2015. Installed VS
2015 with Latest Update 3. Then Typescript 2.0.3. Now I don't see that
Error. But now I came to my old state, No syntax highlighting, not showing
errors. * Is this expected behavior or is there anything I am missing?*

  • Is Visual Studio 2015 has same behavior as Visual Studio Code Or my
    understanding is wrong? *

Now.. For time being till VS 2015 start behaving smoothly with Typescript.
I moved to Visual Studio Code. And have asked my team members to move
Visual Studio Code instead of VS 2015.

_Typescript Editor version is : 14.30921.1.0_

On Sun, Sep 25, 2016 at 1:24 AM, Mohamed Hegazy [email protected]
wrote:

I have not been able to set up a local machine to reproduce this issue. I
would appreciate any information you can share about what was installed on
the machine, and how you got to the broken state.

Also it would be great if you can tell me what versions of TS are
installed using Add or Remove Programs now.

Can you also share the versions of C:Program Files (x86)\Microsoft
Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\
TypeScriptMicrosoft.CodeAnalysis.TypeScript.EditorFeatures.dll that you
currently have.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/TypeScript/issues/11110#issuecomment-249403610,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATko_Dmd1P6W3VnLBKxid-ZQrX3pc42zks5qtgWkgaJpZM4KFcKI
.

It's good to know that I'm not the only person who's having this issue. My situation is exactly the same as @GopiAnnan 's , thanks for giving a better description.

To provide more information,
before it's broken
OS: Windows Server 2012
VS: 2015 with the latest Update 3
TypeScript: 1.8

after it's broken
OS: Windows Server 2012
VS: 2015 with the latest Update 3
TypeScript: 2.0.2.0 Beta

My current Microsoft.CodeAnalysis.TypeScript.EditorFeature version is 14.300828.1.0

I actually tried TypeScript 2.0 the moment it was out but it wasn't successful (with all the same problems described in this post) so I rolled back to 1.8. I tried 2.0.2 last Friday hoping it would be different, but it was the same.

@TianCNCA, can you install TS 2.0.3, https://www.microsoft.com/en-us/download/details.aspx?id=48593 then share the install log %TEMP%\dd_TypeScript*.log?

@yuit, any thoughts?

I fixed mine by completely uninstalling VS2015, wiping out all the relevant VS AppData folders, reinstalling VS2015 U3, then installing TS 2.0.3.

So while that doesn't help anyone not willing to nuke their VS install, I did remember something from my original install that might have help diagnose the issue. When the 2.0.0 beta was released, I started the VS install package, but cancelled it mid-installation (since it suddenly occurred to me not to screw with my TS workflow the night before a big deploy). TS 1.8.10 was working fine after that, but once I tried to install the proper TS 2.0.3 release, I lost all TS functionality in VS. So perhaps something was modified mid-installation that wasn't rolled back when cancelled?

@mhov That was not my case. I let my installations finish completely yet all TS functionalities don't work after that.

Same issue with Visual Studio 2015 enterprise Typescript broken and just white text. and js files now wont open just throw error

I am investigating the issue currently. I will post an update and hopefully a solution to this issue

I am trying to repo the problem locally on my machine. Following steps . From looking into logs file you guys share, it seem that (both VS and SDK install and no errors occur. However, in the AcitvityLog.xml, it seems that some components are not update and when tyring to load TypeScript LS, it can't find necessary stuffs

Update: I tried repo on my local dev machine and it doesn't repo. I have started clean VM with Window Server 2012 to see if it will repo.

Update2: I am successfully repo it in the VM with Window Server 2012. @GopiAnnan and @JasonMcEvoy do you guys happen to use Window Server 2012 as well?

Here we are discussing about 2 issues.

1) Project properties Typescript Section shows this below Message

An error occurred trying to load the page.
No exports were found that match the constraint:
ContractName Microsoft.CodeAnalysis.Editor.TypeScript.ScriptContexts.ITypeScriptProjectProvider
RequiredTypeIdentity Microsoft.CodeAnalysis.Editor.TypeScript.ScriptContexts.ITypeScriptProjectProvider

2) VS 2015 is not having any Syntax Highlighter with Latest Typescript 2.0.3

To Fix First Issue :

Uninstall all version of TypeScript 2.0.3, 18.4, 1.0 what ever.
Uninstall VS 2015
Restart Machine
Install VS 2015
Install Typescript 2.0.3
This will solve the first issue. In Project properties , Typescript section you wont be seeing that error.

But still you may have the second issue. Its not highlighting any syntax or error. Its just behaves like Text editor but at compile time it throws all compilation errors.

To resolve 2nd issue,
If you have installed web extension pack and web essentials uninstall those packages. (This step may not be required, but that's what I have done)
Leave that VS 2015 instance open
Uninstall Typescript 2.0.3 using your Typescript Installer or Control Panel Programs. This time you will get alert to close Visual Studio otherwise you have to reboot. Choose the option to reboot. So that VS 2015 will not get closed . After TS installation you reboot your system.

Now you should be having working environment with TS 2.0.3 with VS 2015 with syntax highlight and error. And on top of this you can install Web Extension Pack if you want.

I have periodically one more error, "NuGet Package instance used by another process, So it not able to upgrade". This may related anything with this?

@yuit I am using Windows 7 Ent.

@GopiAnnan - thank you, the fix for the 2nd issue worked for me. I did not uninstall web extension pack or web essentials.

@yuit I am using windows 10 pro

We have traced this back to Chakra issue on some OS's. we are following up on this and should have an update shortly.

We have a fix for this available. figuring out the release schedule for this. We should have more updates soon.

Had the same issue after upgrading from 1.8 to 2.0 (VS2015 U3, Win10):

  • no intellisense or automatic indentation
  • errors only show on build
  • syntax highligting was present

Solution:

  • Uninstall TS 2.0.3
  • Repair Visual Studio Update 3 (latest patch), reboot
  • Install TS 2.0.3

(and i notice that some have the same problem on the announcement page)

If anyone else is stumbling into this issue, I tried the uninstall, repair, reinstall method and it didn't work for me, but on a whim I just tried a repair of the TS 2.0.3 install and it worked.

I had VS2013 U3 up at the time so the repair prompted me to close it or restart. I told it to close VS and restart it, it closed visual studio, immediately opened it back up, and prompted me the same question. I manually closed VS, then selected OK again and it completed the repair. With the installer still open and saying completed, I opened up VS 2015 and I have intellisense again.

Most of that's probably voodoo and not important, but bottom line, try a repair on TS 2.0.3 , it might fix it.

TypeScript 2.0.6 should be available now; please give it a try and let us know if there are other issues.

I had these issues with VS2015 update 3 (as listed by @deadZedd ) and typescript 2.0.6, repairing VS and reinstalling typescript was not enough.

I did the steps suggested by @paulvanbrenk (see issue #7519) and had success.. coloring, intellisense, auto format/indentation and completion works again.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Roam-Cooper picture Roam-Cooper  Â·  3Comments

blendsdk picture blendsdk  Â·  3Comments

zhuravlikjb picture zhuravlikjb  Â·  3Comments

weswigham picture weswigham  Â·  3Comments

dlaberge picture dlaberge  Â·  3Comments