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

Angular Language Service Crashed #1114

Closed
Stas1967 opened this issue Feb 16, 2021 · 2 comments · Fixed by #1111
Closed

Angular Language Service Crashed #1114

Stas1967 opened this issue Feb 16, 2021 · 2 comments · Fixed by #1111

Comments

@Stas1967
Copy link

Stas1967 commented Feb 16, 2021

Issue Type: Bug

Angular Language Service
On update to v 11.2.0 this service not work

Extension version: 11.2.0
VS Code version: Code 1.53.2 (622cb03f7e070a9670c94bae1a45d78d7181fbd4, 2021-02-11T11:48:04.245Z)
OS version: Windows_NT x64 10.0.18363

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz (8 x 2594)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 11.91GB (7.03GB free)
Process Argv --crash-reporter-id 294ee2be-ebc8-4d39-8114-467944f74f95
Screen Reader no
VM 0%
@Stas1967 Stas1967 changed the title ALS Crashed Angular Language Service Crashed Feb 16, 2021
@vaindil
Copy link

vaindil commented Feb 16, 2021

I am having presumably the same issue. I was prompted to update to using the Ivy-based language service, I did, and VS Code is now informing me that it's crashing so much that it won't restart anymore. The console shows this error:

var sourceFile = program.getSourceFile(fileName);
                                     ^

TypeError: Cannot read property 'getSourceFile' of undefined
    at getValidSourceFile (c:\Repos\<snip>\node_modules\typescript\lib\tsserverlibrary.js:147054:38)
    at Object.getSemanticDiagnostics (c:\Repos\<snip>\node_modules\typescript\lib\tsserverlibrary.js:147265:36)
    at Session.sendPendingDiagnostics (c:\Users\<snip>\.vscode-insiders\extensions\angular.ng-template-11.2.0\server\index.js:1359:57)
    at Timeout._onTimeout (c:\Users\<snip>\.vscode-insiders\extensions\angular.ng-template-11.2.0\server\index.js:1344:19)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7)

I also have a ton of errors saying "No config file for <whatever .html template file I have open at the time>". Note that this is the same repo, it's not across multiple repos. All of the lines related to enabling the Ivy language service are pointing to the same tsconfig.json file.

[Info  - 10:58:32 AM] Angular language server process ID: 10100
[Info  - 10:58:32 AM] Using typescript/lib/tsserverlibrary v4.1.5 from c:\Repos\<snip>\node_modules\typescript\lib\tsserverlibrary.js
[Info  - 10:58:32 AM] Using @angular/language-service/bundles/ivy v11.2.0 from c:\Users\<snip>\.vscode-insiders\extensions\angular.ng-template-11.2.0\node_modules\@angular\language-service\bundles\ivy.js
[Info  - 10:58:32 AM] Log file: c:\Users\<snip>\AppData\Roaming\Code - Insiders\logs\20210216T093757\exthost1\Angular.ng-template\nglangsvc.log
[Info  - 10:58:39 AM] Enabling Ivy language service for c:/Repos/<snip>/tsconfig.json.
[Error - 10:58:42 AM] No config file for c:/Repos/<snip>/<snip>.component.html
[Error - 10:58:42 AM] No config file for c:/Repos/<snip>/<snip>.component.html
[Info  - 10:58:49 AM] Enabling Ivy language service for c:/Repos/<snip>/tsconfig.json.
[Error - 10:58:50 AM] No config file for c:/Repos/<snip>/<snip>.component.html
[Error - 10:58:50 AM] No config file for c:/Repos/<snip>/<snip>.component.html
[Info  - 10:58:54 AM] Enabling Ivy language service for c:/Repos/<snip>/tsconfig.json.
[Error - 10:58:55 AM] No config file for c:/Repos/<snip>/<snip>.component.html
[Error - 10:58:55 AM] No config file for c:/Repos/<snip>/<snip>.component.html
[Info  - 10:59:07 AM] Enabling Ivy language service for c:/Repos/<snip>/tsconfig.json.
[Info  - 10:59:08 AM] Enabling Ivy language service for c:/Repos/<snip>/tsconfig.json.
[Error - 10:59:09 AM] No config file for c:/Repos/<snip>/<snip>.component.html

@atscott atscott linked a pull request Feb 16, 2021 that will close this issue
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants