Skip to content
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

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

Closed
TianCNCA opened this issue Sep 23, 2016 · 26 comments
Closed
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue High Priority

Comments

@TianCNCA
Copy link

TianCNCA commented Sep 23, 2016

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 #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.

@mhegazy
Copy link
Contributor

mhegazy commented Sep 23, 2016

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 mhegazy added the Needs More Info The issue still hasn't been fully clarified label Sep 23, 2016
@GopiAnnan
Copy link

@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 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

@mhegazy
Copy link
Contributor

mhegazy commented Sep 24, 2016

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

@GopiAnnan
Copy link

@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

@mhegazy
Copy link
Contributor

mhegazy commented Sep 24, 2016

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

@GopiAnnan
Copy link

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 notifications@github.com
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
#11110 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATko_CyuCiXPMkUrGF4NimVnWm988x0Uks5qtKDlgaJpZM4KFcKI
.

@mhov
Copy link

mhov commented Sep 25, 2016

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

@mhegazy
Copy link
Contributor

mhegazy commented Sep 25, 2016

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.

@GopiAnnan
Copy link

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 SDKs\TypeScript) 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 notifications@github.com
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
TypeScript\Microsoft.CodeAnalysis.TypeScript.EditorFeatures.dll that you
currently have.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#11110 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATko_Dmd1P6W3VnLBKxid-ZQrX3pc42zks5qtgWkgaJpZM4KFcKI
.

@TianCNCA
Copy link
Author

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.

@mhegazy
Copy link
Contributor

mhegazy commented Sep 26, 2016

@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?

@TianCNCA
Copy link
Author

TianCNCA commented Sep 26, 2016

@mhegazy
Copy link
Contributor

mhegazy commented Sep 26, 2016

@yuit, any thoughts?

@mhov
Copy link

mhov commented Sep 27, 2016

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?

@TianCNCA
Copy link
Author

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

@JasonMcEvoy
Copy link

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

@yuit
Copy link
Contributor

yuit commented Sep 27, 2016

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

@yuit
Copy link
Contributor

yuit commented Sep 27, 2016

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?

@TianCNCA TianCNCA changed the title TypeScript Tools for VS 2015 2.0.2.0 Beta not working TypeScript Tools for VS 2015 2.0.2.0 Beta not working (on Windows Server 2012??) Sep 28, 2016
@yuit yuit added Bug A bug in TypeScript and removed Needs More Info The issue still hasn't been fully clarified labels Sep 28, 2016
@yuit yuit added this to the TypeScript 2.0.5 milestone Sep 28, 2016
@GopiAnnan
Copy link

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

  1. 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.

@brianchance
Copy link

@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

@mhegazy
Copy link
Contributor

mhegazy commented Sep 29, 2016

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

@yuit yuit added the Fixed A PR has been merged for this issue label Sep 30, 2016
@mhegazy
Copy link
Contributor

mhegazy commented Sep 30, 2016

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

@BobbyTable
Copy link

BobbyTable commented Oct 3, 2016

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)

@CrustyJew
Copy link

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.

@mhegazy
Copy link
Contributor

mhegazy commented Oct 25, 2016

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

@ghost
Copy link

ghost commented Nov 29, 2016

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.

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue High Priority
Projects
None yet
Development

No branches or pull requests

9 participants