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

The Angular Language Service server crashed 5 times #49

Closed
CodeByKwakes opened this issue Mar 24, 2017 · 13 comments
Closed

The Angular Language Service server crashed 5 times #49

CodeByKwakes opened this issue Mar 24, 2017 · 13 comments

Comments

@CodeByKwakes
Copy link

Hi.

i installed the vscode-ng-language-service 0.0.12 Experimental Release on both my mac and windows computers. i have been getting the same issue with both of them

angular crash

it has been doing this for a while now. the plugin seem not to be working.

how can i resolve this

thank you

@chuckjaz
Copy link
Contributor

Can you try removing the '_' from the indicated line so it reads var staticSymbol = this.reflector.getStaticSymbol(sourceFile.fileName, classDeclaration.name.text);

@chuckjaz
Copy link
Contributor

Tracking in Angular: angular/angular#15466

@CodeByKwakes
Copy link
Author

ive removed the '_' and reloaded vscode but the autocomplete is not working still.

this is what i can see in the output console:-

getTemplateRefrences: 0ms
getTemplateRefrences: 0ms
getTemplateRefrences: 0ms
getTemplateRefrences: 0ms
getTemplateRefrences: 0ms
getTemplateRefrences: 0ms
updated: ng - 107ms
getCompletions: 0ms
getHoverAt: 0ms

@chuckjaz
Copy link
Contributor

That is a separate issue.

Has the language service ever worked for this project?

@CodeByKwakes
Copy link
Author

CodeByKwakes commented Mar 24, 2017 via email

@chuckjaz
Copy link
Contributor

Does restoring the _ make it work again on the other projects?

@CodeByKwakes
Copy link
Author

CodeByKwakes commented Mar 24, 2017 via email

@chuckjaz
Copy link
Contributor

Most likely it is because the tsconfig.json now contains something that 2.1.5 typescript doesn't understand.

@jvbianchi
Copy link

This error happen to me, I'm using version 0.1.0

@CodeByKwakes
Copy link
Author

hi. i just installed the Experimental Release 0.1.0 and everything was working but then it crashed again.

here is the error message:

/Users/Kwakes/.vscode/extensions/Google.ng-template-0.1.0/server/node_modules/@angular/language-service/bundles/language-service.umd.js:47960
        var constructor = type.members['__constructor'];
                                      ^

TypeError: Cannot read property '__constructor' of undefined
    at TypeScriptSymbolQuery.getTemplateRefContextType (/Users/Kwakes/.vscode/extensions/Google.ng-template-0.1.0/server/node_modules/@angular/language-service/bundles/language-service.umd.js:47960:39)
    at TypeScriptSymbolQuery.getTemplateContext (/Users/Kwakes/.vscode/extensions/Google.ng-template-0.1.0/server/node_modules/@angular/language-service/bundles/language-service.umd.js:47935:36)
    at ExpressionDiagnosticsVisitor.visitVariable (/Users/Kwakes/.vscode/extensions/Google.ng-template-0.1.0/server/node_modules/@angular/language-service/bundles/language-service.umd.js:47029:52)
    at VariableAst.visit (/Users/Kwakes/.vscode/extensions/Google.ng-template-0.1.0/server/node_modules/@angular/language-service/bundles/language-service.umd.js:16446:24)
    at visit (/Users/Kwakes/.vscode/extensions/Google.ng-template-0.1.0/server/node_modules/@angular/language-service/bundles/language-service.umd.js:16681:37)
    at /Users/Kwakes/.vscode/extensions/Google.ng-template-0.1.0/server/node_modules/@angular/language-service/bundles/language-service.umd.js:16683:42
    at Array.forEach (native)
    at templateVisitAll (/Users/Kwakes/.vscode/extensions/Google.ng-template-0.1.0/server/node_modules/@angular/language-service/bundles/language-service.umd.js:16682:10)
    at visit (/Users/Kwakes/.vscode/extensions/Google.ng-template-0.1.0/server/node_modules/@angular/language-service/bundles/language-service.umd.js:44866:30)
    at /Users/Kwakes/.vscode/extensions/Google.ng-template-0.1.0/server/node_modules/@angular/language-service/bundles/language-service.umd.js:44827:13
[Error - 2:20:17 PM] Connection to server got closed. Server will not be restarted.

@chuckjaz
Copy link
Contributor

Try replacing that line with var constructor = type.members && type.members['__consturctor'];

@chuckjaz
Copy link
Contributor

Moving this to a new issue (#53) as the original issue was resolved. It is now crashing in a new location.

@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 Feb 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants