microsoft / vs-ng-language-service

Visual Studio extension for the Angular Language Service
MIT License
43 stars 15 forks source link

Angular Language Service for Visual Studio causes an error #22

Closed vsfeedback closed 1 year ago

vsfeedback commented 3 years ago

This issue has been moved from a ticket on Developer Community.


When I open a .ts or .html file I get an error banner with the message "There was an error activating the remote language server, Angular Language Service Extension ... ActivityLog.xml:

<entry>
  <record>1028</record>
  <time>2020/08/25 07:23:16.792</time>
  <type>Error</type>
  <source>Angular Language Service Extension</source>
  <description>System.NullReferenceException: Object reference not set to an instance of an object.&#x000D;&#x000A;   at Microsoft.VisualStudio.LanguageServer.Client.RemoteLanguageClientInstance.&lt;GetAndSendAllRelevantOpenedDocumentsAsync&gt;d__86.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.LanguageServer.Client.RemoteLanguageClientInstance.&lt;InitializeAsync&gt;d__77.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.LanguageServer.Client.RemoteLanguageClientInstance.&lt;OnRpcDisconnected&gt;d__85.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)</description>
</entry>

Output Angular Language Service Extension:

Info: Angular language server process ID: 15768
Info: Using typescript v3.9.7 from C:\USERS\KS\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\16.0_2EC678F0\EXTENSIONS\ZSNQ5FZ2. CLC\node_modules\typescript\lib\tsserverlibrary.js
Info: Using @angular/language-service v10.0.4 from C:\USERS\KS\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\16.0_2EC678F0\EXTENSIONS\ZSNQ5FZ2. CLC\node_modules\@angular\language-service\bundles\language-service.umd.js
Info: Log file: undefined
Warning: Using less efficient polling watcher. Set TSC_NONPOLLING_WATCHER to true.

Original Comments

Feedback Bot on 8/26/2020, 09:47 AM:

This issue is currently being investigated. Our team will get back to you if either more information is needed, a workaround is available, or the issue is resolved.

Michele Bombardi on 10/18/2020, 04:25 AM:

Hi, any updates for this?

Paul Stancer on 11/17/2020, 11:42 AM:

This error has reappeared with either the Angular 11 upgrade and/or the VS 16.8.0/1 version (they were upgraded around the same time).

Tom Gruszowski on 3/18/2021, 07:25 AM:

Still happening in March 2021 (Angular 11.2 and Visual Studio 16.9.2)


Original Solutions

(no solutions)

uniqueiniquity commented 3 years ago

We expect to be releasing a new version of the extension soon that should resolve this issue.

gcrev93 commented 3 years ago

Has this issue gone away with the new update?

MariaSolOs commented 1 year ago

Closing this as we never heard back from the author, and it seems like this was fixed in a previous release.