-
Notifications
You must be signed in to change notification settings - Fork 123
Intellisense for Angular Templates not working in v0.900.0-next.1 #416
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
Comments
Seems need |
I have this log:
It's weird the log |
@iamcco Could you please make sure the project |
@iamcco Do you mind sharing your |
The tsconfig.json {
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"module": "esnext",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowJs": true,
"target": "es2015",
"lib": [
"es2017",
"dom"
],
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"noUnusedLocals": true,
"skipLibCheck": true,
// "strict": true,
"alwaysStrict": true,
"noImplicitAny": false,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true
}
}
|
This PR reverts the change to disable the language service if @angular/core is not detected in a project while angular#416 is being investigated.
Which version of @angular/core do you use? You can find version in package.json file. |
This PR reverts the change to disable the language service if @angular/core is not detected in a project while angular#416 is being investigated.
@iamcco The tsconfig looks fine. Based on the screenshot you shared, it looks like there's another issue that could be the probable cause. It says "No config file for ..." |
@andrius-pra I have @kyliau
if i first open html file it will have the
|
@iamcco Thank you so much for sharing the log file, it's very helpful. In your case, there are files in your project which exceeded the hard-coded limit in tsserver. Specifically, it's this line:
The total size of your project exceeded 22477522 bytes, which causes tsserver to automatically disable the language service. The message about the project not being Angular is just a red herring. |
When making the check to determine if a project is Angular, it could be the case that the language service is already disabled. This happens when there are files in the project that exceeded limit. This PR fixes the issue by first checking if the language service is already disabled. Also added much more information to the logs to help users diagnose the problem. Messages are logged to both remote console (vscode) and file so that the former could inform users in their editor, and the latter makes it much easier to correlate the sequence of events in both TypeScript and Angular. Related: angular#416
When making the check to determine if a project is Angular, it could be the case that the language service is already disabled. This happens when there are files in the project that exceeded limit. This PR fixes the issue by first checking if the language service is already disabled. Also added much more information to the logs to help users diagnose the problem. Messages are logged to both remote console (vscode) and file so that the former could inform users in their editor, and the latter makes it much easier to correlate the sequence of events in both TypeScript and Angular. Related: angular#416
When making the check to determine if a project is Angular, it could be the case that the language service is already disabled. This happens when there are files in the project that exceeded limit. This PR fixes the issue by first checking if the language service is already disabled. Also added much more information to the logs to help users diagnose the problem. Messages are logged to both remote console (vscode) and file so that the former could inform users in their editor, and the latter makes it much easier to correlate the sequence of events in both TypeScript and Angular. Related: angular#416
When making the check to determine if a project is Angular, it could be the case that the language service is already disabled. This happens when there are files in the project that exceeded limit. This PR fixes the issue by first checking if the language service is already disabled. Also added much more information to the logs to help users diagnose the problem. Messages are logged to both remote console (vscode) and file so that the former could inform users in their editor, and the latter makes it much easier to correlate the sequence of events in both TypeScript and Angular. Related: angular#416
When making the check to determine if a project is Angular, it could be the case that the language service is already disabled. This happens when there are files in the project that exceeded limit. This PR fixes the issue by first checking if the language service is already disabled. Also added much more information to the logs to help users diagnose the problem. Messages are logged to both remote console (vscode) and file so that the former could inform users in their editor, and the latter makes it much easier to correlate the sequence of events in both TypeScript and Angular. Related: #416
It's weird, I can also have native tsserver completion items. update plugin to latst version and still get this error. If delete dist directory I get this log now. |
@iamcco It looks like you have an old version of |
I filed an issue with TypeScript: microsoft/TypeScript#34616 |
It works if install the latest version of @angular/language-service |
I'll mark this issue closed for now. Please open another issue if similar problem occurs. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
After the latest upgrade the angular intellisense has ceased to work.
Cli version @angular/cli 7.3.0
Platform Windows
VS Code Version 1.39.1
The text was updated successfully, but these errors were encountered: