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

Max call stack size exceeded in StaticSymbolResolver.resolveModule #593

Closed
blubberbo opened this issue Jan 30, 2020 · 8 comments
Closed
Assignees
Labels
bug lib Relates to an issue in the @angular/language-service library

Comments

@blubberbo
Copy link

I am getting the The Angular Language Service server crashed 5 times in the last 3 minutes. The server will not be restarted. message in my vscode.

The output is the following:

[Info  - 5:15:00 PM] Angular language server process ID: 1559
[Info  - 5:15:00 PM] Using typescript v3.7.4 from /Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/node_modules/typescript/lib/tsserverlibrary.js
[Info  - 5:15:00 PM] Using @angular/language-service v9.0.0-rc.11 from /Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js
[Info  - 5:15:00 PM] Log file: /Users/iblubberbo/Library/Application Support/Code/logs/20200129T171048/exthost1/Angular.ng-template/nglangsvc.log
/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22347
                    finally { if (e_2) throw e_2.error; }
                                       ^

RangeError: Maximum call stack size exceeded
    at StaticSymbolResolver.resolveModule (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22552:25)
    at _loop_1 (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22325:53)
    at StaticSymbolResolver._createSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22339:25)
    at StaticSymbolResolver.getSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22281:18)
    at _loop_1 (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22327:56)
    at StaticSymbolResolver._createSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22339:25)
    at StaticSymbolResolver.getSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22281:18)
    at _loop_1 (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22327:56)
    at StaticSymbolResolver._createSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22339:25)
    at StaticSymbolResolver.getSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22281:18)
[Info  - 5:15:05 PM] Connection to server got closed. Server will restart.
[Info  - 5:15:05 PM] Angular language server process ID: 1560
[Info  - 5:15:05 PM] Using typescript v3.7.4 from /Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/node_modules/typescript/lib/tsserverlibrary.js
[Info  - 5:15:05 PM] Using @angular/language-service v9.0.0-rc.11 from /Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js
[Info  - 5:15:05 PM] Log file: /Users/iblubberbo/Library/Application Support/Code/logs/20200129T171048/exthost1/Angular.ng-template/nglangsvc.log
/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22347
                    finally { if (e_2) throw e_2.error; }
                                       ^

RangeError: Maximum call stack size exceeded
    at StaticSymbolResolver.resolveModule (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22552:25)
    at _loop_1 (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22325:53)
    at StaticSymbolResolver._createSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22339:25)
    at StaticSymbolResolver.getSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22281:18)
    at _loop_1 (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22327:56)
    at StaticSymbolResolver._createSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22339:25)
    at StaticSymbolResolver.getSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22281:18)
    at _loop_1 (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22327:56)
    at StaticSymbolResolver._createSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22339:25)
    at StaticSymbolResolver.getSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22281:18)
[Info  - 5:15:09 PM] Connection to server got closed. Server will restart.
[Info  - 5:15:10 PM] Angular language server process ID: 1561
[Info  - 5:15:10 PM] Using typescript v3.7.4 from /Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/node_modules/typescript/lib/tsserverlibrary.js
[Info  - 5:15:10 PM] Using @angular/language-service v9.0.0-rc.11 from /Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js
[Info  - 5:15:10 PM] Log file: /Users/iblubberbo/Library/Application Support/Code/logs/20200129T171048/exthost1/Angular.ng-template/nglangsvc.log
/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22347
                    finally { if (e_2) throw e_2.error; }
                                       ^

RangeError: Maximum call stack size exceeded
    at StaticSymbolResolver.resolveModule (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22552:25)
    at _loop_1 (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22325:53)
    at StaticSymbolResolver._createSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22339:25)
    at StaticSymbolResolver.getSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22281:18)
    at _loop_1 (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22327:56)
    at StaticSymbolResolver._createSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22339:25)
    at StaticSymbolResolver.getSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22281:18)
    at _loop_1 (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22327:56)
    at StaticSymbolResolver._createSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22339:25)
    at StaticSymbolResolver.getSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22281:18)
[Info  - 5:15:14 PM] Connection to server got closed. Server will restart.
[Info  - 5:15:15 PM] Angular language server process ID: 1565
[Info  - 5:15:15 PM] Using typescript v3.7.4 from /Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/node_modules/typescript/lib/tsserverlibrary.js
[Info  - 5:15:15 PM] Using @angular/language-service v9.0.0-rc.11 from /Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js
[Info  - 5:15:15 PM] Log file: /Users/iblubberbo/Library/Application Support/Code/logs/20200129T171048/exthost1/Angular.ng-template/nglangsvc.log
/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22347
                    finally { if (e_2) throw e_2.error; }
                                       ^

RangeError: Maximum call stack size exceeded
    at StaticSymbolResolver.resolveModule (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22552:25)
    at _loop_1 (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22325:53)
    at StaticSymbolResolver._createSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22339:25)
    at StaticSymbolResolver.getSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22281:18)
    at _loop_1 (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22327:56)
    at StaticSymbolResolver._createSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22339:25)
    at StaticSymbolResolver.getSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22281:18)
    at _loop_1 (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22327:56)
    at StaticSymbolResolver._createSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22339:25)
    at StaticSymbolResolver.getSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22281:18)
[Info  - 5:15:19 PM] Connection to server got closed. Server will restart.
[Info  - 5:15:19 PM] Angular language server process ID: 1566
[Info  - 5:15:19 PM] Using typescript v3.7.4 from /Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/node_modules/typescript/lib/tsserverlibrary.js
[Info  - 5:15:19 PM] Using @angular/language-service v9.0.0-rc.11 from /Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js
[Info  - 5:15:19 PM] Log file: /Users/iblubberbo/Library/Application Support/Code/logs/20200129T171048/exthost1/Angular.ng-template/nglangsvc.log
/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22347
                    finally { if (e_2) throw e_2.error; }
                                       ^

RangeError: Maximum call stack size exceeded
    at StaticSymbolResolver.resolveModule (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22552:25)
    at _loop_1 (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22325:53)
    at StaticSymbolResolver._createSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22339:25)
    at StaticSymbolResolver.getSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22281:18)
    at _loop_1 (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22327:56)
    at StaticSymbolResolver._createSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22339:25)
    at StaticSymbolResolver.getSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22281:18)
    at _loop_1 (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22327:56)
    at StaticSymbolResolver._createSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22339:25)
    at StaticSymbolResolver.getSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.7/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22281:18)
[Error - 5:15:24 PM] Connection to server got closed. Server will not be restarted.
@blubberbo blubberbo added the bug label Jan 30, 2020
@ayazhafiz
Copy link
Member

Can you provide us with the log file? It’s the fourth line on the console output.

@blubberbo
Copy link
Author

sure, see the following: nglangsvc.log

@ayazhafiz
Copy link
Member

Strange, the log looks okay. Did you ever observe this error before the latest version of the extension? This might be related to #594.

@kyliau
Copy link
Contributor

kyliau commented Jan 30, 2020

@blubberbo Do you mind turning on verbose logging and capture the log file again?
It'd allow us to see all dependencies of your project.
If that's ok with you, it can be activated by going to
File > Preferences > Settings > Search 'angular.log' > Pick verbose
Then restart the Angular language service by searching for the command "Restart Angular language server"
Thank you

@kyliau kyliau changed the title The Angular Language Service server crashed 5 times Max call stack size exceeded in StaticSymbolResolver.resolveModule Jan 30, 2020
@andrius-pra
Copy link
Collaborator

I got similar error:
bug

[Info  - 23:22:41] Angular language server process ID: 88360
[Info  - 23:22:41] Using typescript v3.7.4 from c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\node_modules\typescript\lib\tsserverlibrary.js
[Info  - 23:22:41] Using @angular/language-service v9.0.0-rc.11 from c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\server\node_modules\@angular\language-service\bundles\language-service.umd.js
[Info  - 23:22:41] Log file: c:\Users\Andrius\AppData\Roaming\Code\logs\20200130T232239\exthost1\Angular.ng-template\nglangsvc.log
[Error - 23:23:05] Request textDocument/completion failed.
  Message: Request textDocument/completion failed with message: Maximum call stack size exceeded
  Code: -32603 
c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\server\node_modules\@angular\language-service\bundles\language-service.umd.js:22347
                    finally { if (e_2) throw e_2.error; }
                                       ^

RangeError: Maximum call stack size exceeded
    at StaticSymbolResolver.resolveModule (c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\server\node_modules\@angular\language-service\bundles\language-service.umd.js:22552:25)
    at _loop_1 (c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\server\node_modules\@angular\language-service\bundles\language-service.umd.js:22325:53)
    at StaticSymbolResolver._createSymbolsOf (c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\server\node_modules\@angular\language-service\bundles\language-service.umd.js:22339:25)
    at StaticSymbolResolver.getSymbolsOf (c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\server\node_modules\@angular\language-service\bundles\language-service.umd.js:22281:18)
    at _loop_1 (c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\server\node_modules\@angular\language-service\bundles\language-service.umd.js:22327:56)
    at StaticSymbolResolver._createSymbolsOf (c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\server\node_modules\@angular\language-service\bundles\language-service.umd.js:22339:25)
    at StaticSymbolResolver.getSymbolsOf (c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\server\node_modules\@angular\language-service\bundles\language-service.umd.js:22281:18)
    at _loop_1 (c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\server\node_modules\@angular\language-service\bundles\language-service.umd.js:22327:56)
    at StaticSymbolResolver._createSymbolsOf (c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\server\node_modules\@angular\language-service\bundles\language-service.umd.js:22339:25)
    at StaticSymbolResolver.getSymbolsOf (c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\server\node_modules\@angular\language-service\bundles\language-service.umd.js:22281:18)
[Info  - 23:23:06] Connection to server got closed. Server will restart.
[Info  - 23:23:06] Angular language server process ID: 86380
[Info  - 23:23:06] Using typescript v3.7.4 from c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\node_modules\typescript\lib\tsserverlibrary.js
[Info  - 23:23:06] Using @angular/language-service v9.0.0-rc.11 from c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\server\node_modules\@angular\language-service\bundles\language-service.umd.js
[Info  - 23:23:06] Log file: c:\Users\Andrius\AppData\Roaming\Code\logs\20200130T232239\exthost1\Angular.ng-template\nglangsvc.log
c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\node_modules\typescript\lib\tsserverlibrary.js:2148
            throw e;
            ^

Error: Debug Failure. False expression.
    at checkChangeRange (c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\node_modules\typescript\lib\tsserverlibrary.js:24816:26)
    at Object.updateSourceFile (c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\node_modules\typescript\lib\tsserverlibrary.js:24446:13)
    at Object.updateSourceFile (c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\node_modules\typescript\lib\tsserverlibrary.js:18297:47)
    at Object.updateLanguageServiceSourceFile (c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\node_modules\typescript\lib\tsserverlibrary.js:130949:44)
    at acquireOrUpdateDocument (c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\node_modules\typescript\lib\tsserverlibrary.js:109281:43)
    at Object.updateDocumentWithKey (c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\node_modules\typescript\lib\tsserverlibrary.js:109247:20)
    at Object.getOrCreateSourceFileByPath [as getSourceFileByPath] (c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\node_modules\typescript\lib\tsserverlibrary.js:131229:49)
    at tryReuseStructureFromOldProgram (c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\node_modules\typescript\lib\tsserverlibrary.js:95529:28)
    at Object.createProgram (c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\node_modules\typescript\lib\tsserverlibrary.js:95121:30)
    at synchronizeHostData (c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\node_modules\typescript\lib\tsserverlibrary.js:131151:26)
[Info  - 23:23:18] Connection to server got closed. Server will restart.
[Info  - 23:23:19] Angular language server process ID: 110076
[Info  - 23:23:19] Using typescript v3.7.4 from c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\node_modules\typescript\lib\tsserverlibrary.js
[Info  - 23:23:19] Using @angular/language-service v9.0.0-rc.11 from c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\server\node_modules\@angular\language-service\bundles\language-service.umd.js
[Info  - 23:23:19] Log file: c:\Users\Andrius\AppData\Roaming\Code\logs\20200130T232239\exthost1\Angular.ng-template\nglangsvc.log
[Error - 23:23:24] Request textDocument/completion failed.
  Message: Request textDocument/completion failed with message: Debug Failure. False expression.
  Code: -32603 
c:\Users\Andrius\.vscode\extensions\angular.ng-template-0.900.7\node_modules\typescript\lib\tsserverlibrary.js:2148
            throw e;
            ^

@blubberbo
Copy link
Author

@blubberbo Do you mind turning on verbose logging and capture the log file again?
It'd allow us to see all dependencies of your project.
If that's ok with you, it can be activated by going to
File > Preferences > Settings > Search 'angular.log' > Pick verbose
Then restart the Angular language service by searching for the command "Restart Angular language server"
Thank you

[Info - 7:20:22 PM] Angular language server process ID: 787
[Info - 7:20:22 PM] Using typescript v3.7.4 from /Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.8/node_modules/typescript/lib/tsserverlibrary.js
[Info - 7:20:22 PM] Using @angular/language-service v9.0.0-rc.12 from /Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.8/server/node_modules/@angular/language-service/bundles/language-service.umd.js
[Info - 7:20:22 PM] Log file: /Users/iblubberbo/Library/Application Support/Code/logs/20200130T191754/exthost1/Angular.ng-template/nglangsvc.log
[Error - 7:20:26 PM] No config file for /Users/iblubberbo/Documents/GitHub/Lol-Pickem/lol-pickem-app/src/app/team/team.component.html
/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.8/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22342
finally { if (e_2) throw e_2.error; }
^

RangeError: Maximum call stack size exceeded
at StaticSymbolResolver.resolveModule (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.8/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22547:25)
at _loop_1 (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.8/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22320:53)
at StaticSymbolResolver._createSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.8/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22334:25)
at StaticSymbolResolver.getSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.8/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22276:18)
at _loop_1 (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.8/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22322:56)
at StaticSymbolResolver._createSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.8/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22334:25)
at StaticSymbolResolver.getSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.8/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22276:18)
at _loop_1 (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.8/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22322:56)
at StaticSymbolResolver._createSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.8/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22334:25)
at StaticSymbolResolver.getSymbolsOf (/Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.8/server/node_modules/@angular/language-service/bundles/language-service.umd.js:22276:18)
[Info - 7:21:43 PM] Connection to server got closed. Server will restart.
[Info - 7:21:43 PM] Angular language server process ID: 832
[Info - 7:21:43 PM] Using typescript v3.7.4 from /Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.8/node_modules/typescript/lib/tsserverlibrary.js
[Info - 7:21:43 PM] Using @angular/language-service v9.0.0-rc.12 from /Users/iblubberbo/.vscode/extensions/angular.ng-template-0.900.8/server/node_modules/@angular/language-service/bundles/language-service.umd.js
[Info - 7:21:43 PM] Log file: /Users/iblubberbo/Library/Application Support/Code/logs/20200130T191754/exthost1/Angular.ng-template/nglangsvc.log
[Error - 7:21:47 PM] No config file for /Users/iblubberbo/Documents/GitHub/Lol-Pickem/lol-pickem-app/src/app/app.component.html
[Error - 7:21:48 PM] Request textDocument/hover failed.
Message: Request textDocument/hover failed with message: Maximum call stack size exceeded
Code: -32603

and

nglangsvc.log

@kyliau
Copy link
Contributor

kyliau commented Jan 31, 2020

Thank you @andrius-pra for the repro. I was able to replicate the crash on my machine. It looks like it was trying to recursively resolve the symbols from the same file.

ayazhafiz pushed a commit to ayazhafiz/angular that referenced this issue Feb 9, 2020
To the create symbols of a module, the static symbol resolver first gets
all the symbols loaded in the module by an export statement. For `export
* from './module'`-like statements, all symbols from `./module` must be
loaded. In cases where the exporting module is actually the same module
that the export statement is in, this causes an unbounded recursive
resolution of the same module.

Exports of the same module are not needed, as their symbols will be
resolved when the symbols in the module metadata's `metadata` key is
explored.

This commit resolves the unbounded recursion by loading exporting
modules only if they differ from the module currently being resolved.

Closes angular/vscode-ng-language-service#593
@ayazhafiz ayazhafiz added the lib Relates to an issue in the @angular/language-service library label Feb 21, 2020
ayazhafiz pushed a commit to ayazhafiz/angular that referenced this issue Mar 8, 2020
To create the symbols of a module, the static symbol resolver first gets
all the symbols loaded in the module by an export statement. For `export
* from './module'`-like statements, all symbols from `./module` must be
loaded. In cases where the exporting module is actually the same module
that the export statement is in, this causes an unbounded recursive
resolution of the same module.

Exports of the same module are not needed, as their symbols will be
resolved when the symbols in the module metadata's `metadata` key is
explored.

This commit resolves the unbounded recursion by loading exporting
modules only if they differ from the module currently being resolved.

Closes angular/vscode-ng-language-service#593
ayazhafiz pushed a commit to ayazhafiz/angular that referenced this issue Mar 8, 2020
To create the symbols of a module, the static symbol resolver first gets
all the symbols loaded in the module by an export statement. For `export
* from './module'`-like statements, all symbols from `./module` must be
loaded. In cases where the exporting module is actually the same module
that the export statement is in, this causes an unbounded recursive
resolution of the same module.

Exports of the same module are not needed, as their symbols will be
resolved when the symbols in the module metadata's `metadata` key is
explored.

This commit resolves the unbounded recursion by loading exporting
modules only if they differ from the module currently being resolved.

Closes angular/vscode-ng-language-service#593
ayazhafiz pushed a commit to ayazhafiz/angular that referenced this issue Mar 11, 2020
To create the symbols of a module, the static symbol resolver first gets
all the symbols loaded in the module by an export statement. For `export
* from './module'`-like statements, all symbols from `./module` must be
loaded. In cases where the exporting module is actually the same module
that the export statement is in, this causes an unbounded recursive
resolution of the same module.

Exports of the same module are not needed, as their symbols will be
resolved when the symbols in the module metadata's `metadata` key is
explored.

This commit resolves the unbounded recursion by loading exporting
modules only if they differ from the module currently being resolved.

Closes angular/vscode-ng-language-service#593
@ayazhafiz ayazhafiz self-assigned this Mar 14, 2020
AndrewKushnir pushed a commit to angular/angular that referenced this issue Mar 16, 2020
…35262)

To create the symbols of a module, the static symbol resolver first gets
all the symbols loaded in the module by an export statement. For `export
* from './module'`-like statements, all symbols from `./module` must be
loaded. In cases where the exporting module is actually the same module
that the export statement is in, this causes an unbounded recursive
resolution of the same module.

Exports of the same module are not needed, as their symbols will be
resolved when the symbols in the module metadata's `metadata` key is
explored.

This commit resolves the unbounded recursion by loading exporting
modules only if they differ from the module currently being resolved.

Closes angular/vscode-ng-language-service#593

PR Close #35262
@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 Apr 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug lib Relates to an issue in the @angular/language-service library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants