Skip to content Skip to sidebar Skip to footer

The Javascript Language Service Has Encountered An Error And Has Been Shut Down

Suddenly I receive this error message: The JavaScript language service has encountered an error and has been shut down. There is no intellisense in javascript! What to do?

Solution 1:

error window on opening JS-file

In my case I have:

  1. Latest VS 2013 Upd.3
  2. Latest Web Essential 2013
  3. Latest ReSharper 8.2.1

Sometimes I see this errors on opening first JS-file after running the solution. I have spent about 2 days on it. Removing Web Essentials helps (also clean the AppData\Local\Microsoft\VisualStudio\12.0\Extensions folder:

  1. extensions.en-US.cache
  2. extensionSdks.en-US.cache
  3. "WebEssentials" folder - it will contain file WebEssentials2013.pkgdef

Then I have tried reset all VS settings and it helped. For a month) Today I have updated solution from the GIT via VS Git Tools (commit contained a lot of JS and CSS changes) and have seen it AGAIN!!!

New solution steps:

  1. Export VS settings.
  2. Reset VS settings
  3. Restart VS.
  4. Check if now it has no any errors.
  5. Import all VS settings EXCEPT Options => TextEditor.
  6. Turn on line numbers for all languages (and if you have some other custom settings - them too)

I don't know who is to blame but I have the fresh Windows 8.1 + fresh VS 2013.

The newest solution steps:

  1. Open the CurrentSettings.vssettings file.
  2. Remove

C:\Users\USERNAME\JsDocComments.js|C:\Users\USERNAME\Modern.Intellisense.js

string from the file

The latest solution steps:

Since I have the laptop with the new clean system w\o this issue I have done the following:

  1. Backed up the PC level ReSharper settings and reset all of them
  2. Reset VS settings with export current one
  3. Restored the PC level ReSharpe settings
  4. Restored the VS exported settings except Options => TextEditor => JS and JS Specific

I have restarted the VS several times and don't see the error now.

Solution 2:

Try this solution:

"I was able to fix it: Uninstalling Snippet Designer and deleting the Code Snippets folder on C:\Users\USER\Documents\Visual Studio 2012"

Taken from:

http://social.msdn.microsoft.com/Forums/windowsapps/en-US/d62506a1-4f5f-4013-bcaa-0f827325e424/javascript-language-service-has-encountered-an-error-and-has-been-shut-down

Solution 3:

I got this after accidentally copy-pasting a large chunk of HTML into a JavaScript file. Removing said HTML & restarting VS resolved the problem.

Solution 4:

In my case, I have Visual Studio 2013 and a Node.js project which is weirdly set up. I just created an empty one and then copied angular-seed into it. So things are not as expected by VS, I guess. I was getting the same error as in the question.

I did not want to uninstal the snippet designer, so I did two things:

  1. I made sure all the snippets in JavaScript folder had shortcuts defined (manually modified xml files) (it was mentioned on the same page Andrea provided link for) - this alone did not help.
  2. I noticed that JavaScript Language Service output widow had a message in it complaining about missing _references.js file. I added the file manually and added only one line to it:

    /// <autosync enabled="false" />

Visual Studio stopped complaining about the service failing then. I don't know if fix 2 alone does solve the issue.

ps: I decided to add this info here because this question comes first on Google search for the error. I know it is an old one...

Solution 5:

I encountered this issue when I opened a solitary html file.

My workaround is to first open a Solution that contains a web project and then to open a JS file within it. After this, my solitary html file opens without error.

Post a Comment for "The Javascript Language Service Has Encountered An Error And Has Been Shut Down"