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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

No config file for & No definition found for 馃槩 #1112

Closed
Bernoulli-IT opened this issue Feb 16, 2021 · 8 comments
Closed

No config file for & No definition found for 馃槩 #1112

Bernoulli-IT opened this issue Feb 16, 2021 · 8 comments
Labels

Comments

@Bernoulli-IT
Copy link

Bernoulli-IT commented Feb 16, 2021

Describe the bug

The Angular Language Service stopped working correctly since most recent update (3 days ago). It show these kind of messages:

To Reproduce

  1. Install latest version 11.2.0
  2. Go to any HTML template inside the src folder
  3. Hover over a code reference to the underlying typescript file
  4. Check error in tooltip and see log results which report "No config file"

Expected behavior

The usual super handy Angular Language Service functionality of gettin a tooltip with information, syntax checks & go to definition.

Logs

[Info - 10:15:16] Angular language server process ID: 25044
[Info - 10:15:16] Using typescript/lib/tsserverlibrary v4.1.5 from c:\Users\Bernoulli IT.vscode\extensions\angular.ng-template-11.2.0\node_modules\typescript\lib\tsserverlibrary.js
[Info - 10:15:16] Using @angular/language-service/bundles/ivy v11.2.0 from c:\Users\Bernoulli IT.vscode\extensions\angular.ng-template-11.2.0\node_modules@angular\language-service\bundles\ivy.js
[Info - 10:15:16] Log file: c:\Users\Bernoulli IT\AppData\Roaming\Code\logs\20210216T101512\exthost1\Angular.ng-template\nglangsvc.log
[Error - 10:15:25] No config file for c:/Users/Bernoulli IT/Documents/Applications/Argaleo/Argaleo.Digitwin.Browser.App/src/app/modules/root/app.component.html
[Info - 10:15:26] Enabling Ivy language service for c:/Users/Bernoulli IT/Documents/Applications/Argaleo/Argaleo.Digitwin.Browser.App/tsconfig.json.
[Error - 10:15:27] No config file for c:/Users/Bernoulli IT/Documents/Applications/Argaleo/Argaleo.Digitwin.Browser.App/src/app/modules/root/app.component.html

Screenshots

2021-02-16 10_15_40-app component html - App - Visual Studio Code

Workaround

Downgrade to 11.1.3 (and restart VS Code) and be a happy camper again 馃馃捇

@roycastro
Copy link

I also saw the same behavior from the Angular Language Service and the downgrading to 11.1.3 seems to solve the issue.

  • VSCode 1.54.0-insider
  • Angular 11.1.5
  • Typescript 4.0.3

@ikilinc
Copy link

ikilinc commented Feb 16, 2021

I have the same issue, downgrading to version 11.1.3 helps.

@magnusbakken
Copy link

I have it as well, but downgrading the extension to 11.1.3 does not fix the issue for me, without also downgrading the language service dependency to 11.1. I also already saw problems before upgrading the extension to 11.2.0, so I think there are multiple issues.

@DirkStorck
Copy link

DirkStorck commented Feb 16, 2021

I have created a new project and added
"@angular/language-server": "^11.1.3",
"@angular/language-service": "^11.1.1",
in my package.json

But I still get
Error - 14:27:20] No config file for d:/XYZ/Angular/test/src/app/app.component.html

@roycastro
Copy link

roycastro commented Feb 16, 2021

I have created a new project and added
"@angular/language-server": "^11.1.3",
"@angular/language-service": "^11.1.1",
in my package.json

But I still get
Error - 14:27:20] No config file for d:/REWE/Angular/test/src/app/app.component.html

@DirkStorck Did you also change the VSCode extension to version 11.1.3?

@DirkStorck
Copy link

Additionally I installed this version:
https://github.com/angular/vscode-ng-language-service/tree/11.1.x
using " in Visual Studio code, go to the extensions tab. Click on the "..." menu...."

this didn't work for me
"code --install-extension /path/to/ngls.vsix"

Now it works for me again :)

@atscott
Copy link
Collaborator

atscott commented Feb 16, 2021

Duplicate of #1109

@atscott atscott marked this as a duplicate of #1109 Feb 16, 2021
@atscott atscott closed this as completed Feb 16, 2021
@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
Projects
None yet
Development

No branches or pull requests

6 participants