TypeScript icon indicating copy to clipboard operation
TypeScript copied to clipboard

Lost JavaScript support in VS2015 RTM after updating to TypeScript 1.5.4

Open mwinkler opened this issue 11 years ago • 33 comments

I completely lost JavaScript support in Visual Studio after updating to TypeScript 1.5.4:

  • Code inside script tags gets no colorization and no IntelliSense at all
  • In the VS options menu > Text Editor > JavaScript is missing
  • In the output console, the "JavaScript Language Service" is missing in the dropdown.

Seems I'm not the only one: http://stackoverflow.com/questions/31888115/visual-studio-2015-rtm-lost-js-support-after-update-typesript-tools

mwinkler avatar Aug 08 '15 12:08 mwinkler

This is still an issue with typescript 1.6.3. I have removing and installing components for an hour now. This needs attention, it's wasting a lot of time.

jimmymain avatar Oct 01 '15 19:10 jimmymain

I'm sorry for your trouble @jimmymain, but I promise you the steps I outlined above will fix the issue. Please follow them exactly.

mbraude avatar Oct 01 '15 19:10 mbraude

I'm having the same trouble with VS 2015 Community Edition with the same error in the ActivityLog.

  1. Running the Modify cycle on VS 2015 doesn't solve the problem.
  2. Running the devenv /updateconfiguration does nothing. At all. It ignores the argument and doesn't start VS. (Note: It will start normally if I drop the argument and just type "devenv", and "devenv /?" produces arguments that only deal with Solution files.)

It may be worth noting that my installation is at C:\Program Files (x86)\Visual Studio Community 2015\Common7\IDE (my Visual Studio 14.0 directory is there, but virtually empty).

I wasn't sure whether one of these two things is causing a unique situation, but it's quite frustrating! I want to push my (small) organization to use .NET 5.0 instead of Java for website building, and these issues are worrying. I don't want the general feel of .NET 5.0 to be "neat idea, but it's a pain to get it working properly".

Edit: On a whim, I tried jonstelly's suggestion of deleting %localappdata%\Microsoft\VisualStudio\14.0\ComponentModelCache folder, and that seems to solve the issue. It's worth noting that the two "approved" fixes didn't fix my issue, and this third one did the trick.

asleight avatar Oct 19 '15 18:10 asleight

@asleight where did you get the VS2015 Community Edition from, I've been running that and it consistently get's installed in the VS 14 folder.

Glad you got the issue re-solved.

paulvanbrenk avatar Oct 19 '15 23:10 paulvanbrenk

Having still the same issue, and it comes up again with every new TS update.

Could not load file or assembly 'Microsoft.VisualStudio.JSLS, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

My problem is that I can only fix it temporary. After a while, it pops up again and I have to go through all provided solutions again.

What doesn't work:

  • devenv /updateconfiguration & devenv /clearcache
  • Steps described here
  • Deleting %localappdata%\Microsoft\VisualStudio\14.0\ComponentModelCache

What does work:

  • Re-installing packages\JavaScript_LanguageService\JavaScript_LanguageService.msi and running devenv /Setup and devenv /ResetSkipPkgs afterwards

Again, those seem to be only temporary fixes. It works, I can create project files and classes and what not within VS, then suddenly the error appears again. One time I managed to completely resolve it, only to have it returned with the next TypeScript update.

artganify avatar Oct 30 '15 15:10 artganify

Hi @artganify. I'm sorry for your trouble. Unfortunately the steps you're following on stack overflow are wrong. They will fix the problem, but only temporality. The next time you do any setup action, such as installing a typescript update, it will revert the fix.

Please follow the steps I outlined above three months ago. They will fix the problem permanently.

mbraude avatar Oct 30 '15 16:10 mbraude

cmd switches for devenv.exe helps with the same problem on VS 2013 update 5 too. Thanks. Nope, actually it helps just partially - Now there is no more warning message about JavaScript, but when I try to run project it crashes with Error like: "Exception raised. Probably caused by Extension". And when I try to close IDE (even if I didn't open any project) it shows me Error like: "Can't load file or assembly VSPerfReader or one of it's dependencies. There is no assembly manifest in module."

Finally the only thing that helped me is uninstalling of Visual Studio 2013 SDK.

MayMih avatar Dec 08 '15 06:12 MayMih

Followed the devenv /updateconfiguration & devenv /clearcache steps and it solved the issue for me. Thanks!

dime2lo avatar Dec 12 '15 20:12 dime2lo

What is the exect problem with VS 2015 at all? Maybe if we can understand the main problem then we can understand how to solve it for all. And describe a problem for VS developer to create a update package that solves this problem.

daviatorstorm avatar Jan 18 '16 10:01 daviatorstorm

@daviatorstorm, the issue was caused by multiple updated overwriting the JS package. it is not related ot the TypeScript update, it just happened around the time the TS update was released. The steps outlined in https://github.com/Microsoft/TypeScript/issues/4238#issuecomment-129226422 should get you back to a working state.

mhegazy avatar Jan 19 '16 18:01 mhegazy

I've discover a thing that if in referenced files in _references.js are errors - intellisense won't work. By looking to (in my case) angular.js file, i found alot of errors. I`ve reinstalled a package and problem is gone. But i have the next issue. Intellisense cannot found local fields from local file. image

daviatorstorm avatar Jan 25 '16 14:01 daviatorstorm

@daviatorstorm this has nothing to do with the OP. your JS intellesises seems to be loaded just fine. please file a different issue for the JS intellisense at https://visualstudio.uservoice.com/forums/121579-visual-studio-2015

mhegazy avatar Jan 25 '16 18:01 mhegazy

@mbraude suggestion worked for me on 1.8.11

lucavgobbi avatar Oct 12 '16 21:10 lucavgobbi