question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ngcc process fails with vscode versions 1.62.1 and above

See original GitHub issue

🐞 bug report

Is this a regression?

Yes, I am currently on v13.0.0, I don't remember when it started throwing this error.

Description

A clear and concise description of the problem...

I’m getting a popup everytime tsconfig.json changes and angular language service starts. Happening in multiple Angular v12 repos

Bug Type

What does this bug affect

  • Angular Language Service VSCode extension
  • Angular Language Service server

Reproduction

Steps to reproduce the behavior:

  1. Go to β€˜β€¦β€™
  2. Click on β€˜β€¦β€™
  3. Scroll down to β€˜β€¦β€™
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Logs

Log file gives us deep insight into the behavior and performance of the extension. If the issue is a performance problem or an error occured, please provide the output of the log file below.

Set Angular Log level to verbose.


[Trace - 9:44:04 AM] Sending notification 'workspace/didChangeWatchedFiles'.
[Trace - 9:44:04 AM] Received notification 'angular/projectLoadingFinish'.
[Trace - 9:44:04 AM] Received notification '$/progress'.
[Trace - 9:44:05 AM] Received notification 'window/logMessage'.
[Error - 9:44:05 AM] Failed to run ngcc for /Users/joey/Repos/battleface-v2/tsconfig.json, language service may not operate correctly:
    ngcc for /Users/joey/Repos/battleface-v2/tsconfig.json returned exit code null, stderr: 
[Trace - 9:44:05 AM] Received notification '$/progress'.
[Trace - 9:44:05 AM] Received notification 'window/logMessage'.
[Info  - 9:44:05 AM] Enabling Ivy language service for /Users/joey/Repos/battleface-v2/tsconfig.json.


Screenshots

Screen Shot 2021-11-11 at 9 44 11 AM

🌍 Your Environment

Angular Version:



 12.2.7

Extension Version:



 v13.0.0

VSCode Version:



 Version: 1.62.1 (Universal)

Operating System:



 macOS 11.6

Anything else relevant?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:15
  • Comments:10

github_iconTop GitHub Comments

10reactions
atscottcommented, Nov 11, 2021

Okay, I have been able to isolate this to the vscode 1.62.1 release. The error does not occur in the 1.62.0 release. When updating to 1.62.1 with no other changes, the ngcc process fails.

6reactions
atscottcommented, Nov 12, 2021

We are still actively investigating this issue and are tracking https://github.com/microsoft/vscode/issues/136988 as the likely resolution.

In the meantime, the error we show does give the appropriate information. ngcc failed to run, which might cause the language service to not work correctly but can be resolved by npm/yarn run ngcc. Or if you are already running a dev server, ngcc likely already ran and you don’t have to do anything.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 9 - NGCC fails with an unhandled exception
This error may be because two or more entry-points overlap and ngcc has been asked to process some files more than once. You...
Read more >
Troubleshoot Terminal launch failures - Visual Studio Code
Below are specific troubleshooting steps, if the user guide hasn't helped you diagnose the launch failure. The troubleshooting steps, such as checking yourΒ ......
Read more >
error: failed to initialize angular compilation - ngcc failed.
This appears to be an issue with Typescript version >4.9.0. I haven't worked out what that is yet, but a possible workaround is...
Read more >
Angular Language Service is not Working? | by Georgi Parlakov
We need to make sure VS Code does not auto β€” update the extension version as it does, so we put β€œextensions.autoUpdate”: false...
Read more >
Visual Studio Code 1.74.2 - Chocolatey Software
install" directly, since this is the package that is consistently failing. Running this by itself still fails with the same details as above,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found