Closed loxator closed 2 weeks ago
Worth mentioning it could be a repo specific issue as I have tried it with another one of my repos and the TS server doesn't crash, if you need any logs please point me to it an I will try to update the issue. Thank you for looking into it!
Thanks for the report. logs would be very helpful to investigate this. To collect them from the crashed instance:
"typescript.tsserver.log": "verbose"
TypeScript
section of the output panelAt the very top, find the first line that prints to path to the semantic error log file. It should look something like:
[Info - 19:54:59.247] <semantic> Log file: /Users/matb/Library/Application Support/Code - Insiders/logs/20200213T104930/exthost55/vscode.typescript-language-features/tsserver-log-ZT2zau/tsserver.log
That file contains the typescript logs.
Look through that log file for the first error or stack trace you see. If you can share the log, I can also take a look to see if anything stands out
⚠️Warning: The TypeScript log may include information from your workspace, including file paths and source code. If you have any concerns about posting this publicly on Github, just let me know and we can arrange something else. On our side, we only use these logs to investigate issues like this
@mjbvz Thanks for the instructions. I don't see anything that stands out to me in the log files, but it does have a lot of compiled code in it which I am afraid I can't share here.
On the specific repo that I face the problem on, it goes like:
From the log I can see that it goes in a loop of SigABRT, then starting it again.
2024-09-27 19:12:16.020 [info] <semantic> Log file: /Users/aminlimbada/Library/Application Support/Code/logs/20240920T095108/window1/exthost/vscode.typescript-language-features/tsserver-log-W7gqnd/tsserver.log
2024-09-27 19:12:16.020 [info] <semantic> Forking...
2024-09-27 19:12:16.020 [info] <semantic> Starting...
2024-09-27 19:12:36.984 [error] TSServer exited. Code: null. Signal: SIGABRT
2024-09-27 19:12:36.984 [info] TSServer log file: /Users/aminlimbada/Library/Application Support/Code/logs/20240920T095108/window1/exthost/vscode.typescript-language-features/tsserver-log-W7gqnd/tsserver.log
2024-09-27 19:12:36.985 [info] Starting TS Server
2024-09-27 19:12:36.985 [info] Using tsserver from: /Users/aminlimbada/Desktop/Repositories/Frontend/ctrl/ctrl-extension/node_modules/typescript/lib/tsserver.js
2024-09-27 19:12:36.985 [info] <syntax> Log file: /Users/aminlimbada/Library/Application Support/Code/logs/20240920T095108/window1/exthost/vscode.typescript-language-features/tsserver-log-cZEnhq/tsserver.log
2024-09-27 19:12:36.985 [info] <syntax> Forking...
2024-09-27 19:12:36.985 [info] <syntax> Starting...
2024-09-27 19:12:36.985 [info] <semantic> Log file: /Users/aminlimbada/Library/Application Support/Code/logs/20240920T095108/window1/exthost/vscode.typescript-language-features/tsserver-log-SkFtn0/tsserver.log
2024-09-27 19:12:36.985 [info] <semantic> Forking...
2024-09-27 19:12:36.985 [info] <semantic> Starting...
2024-09-27 19:12:58.425 [error] TSServer exited. Code: null. Signal: SIGABRT
2024-09-27 19:12:58.426 [info] TSServer log file: /Users/aminlimbada/Library/Application Support/Code/logs/20240920T095108/window1/exthost/vscode.typescript-language-features/tsserver-log-SkFtn0/tsserver.log
2024-09-27 19:12:58.426 [info] Starting TS Server
2024-09-27 19:12:58.426 [info] Using tsserver from: /Users/aminlimbada/Desktop/Repositories/Frontend/ctrl/ctrl-extension/node_modules/typescript/lib/tsserver.js
2024-09-27 19:12:58.426 [info] <syntax> Log file: /Users/aminlimbada/Library/Application Support/Code/logs/20240920T095108/window1/exthost/vscode.typescript-language-features/tsserver-log-Qpx1o3/tsserver.log
2024-09-27 19:12:58.426 [info] <syntax> Forking...
2024-09-27 19:12:58.426 [info] <syntax> Starting...
2024-09-27 19:12:58.426 [info] <semantic> Log file: /Users/aminlimbada/Library/Application Support/Code/logs/20240920T095108/window1/exthost/vscode.typescript-language-features/tsserver-log-TfzUwP/tsserver.log
2024-09-27 19:12:58.426 [info] <semantic> Forking...
2024-09-27 19:12:58.426 [info] <semantic> Starting...
2024-09-27 19:13:19.904 [error] TSServer exited. Code: null. Signal: SIGABRT
2024-09-27 19:13:19.904 [info] TSServer log file: /Users/aminlimbada/Library/Application Support/Code/logs/20240920T095108/window1/exthost/vscode.typescript-language-features/tsserver-log-TfzUwP/tsserver.log
2024-09-27 19:13:19.904 [info] Starting TS Server
2024-09-27 19:13:19.904 [info] Using tsserver from: /Users/aminlimbada/Desktop/Repositories/Frontend/ctrl/ctrl-extension/node_modules/typescript/lib/tsserver.js
2024-09-27 19:13:19.904 [info] <syntax> Log file: /Users/aminlimbada/Library/Application Support/Code/logs/20240920T095108/window1/exthost/vscode.typescript-language-features/tsserver-log-Vwgs9H/tsserver.log
2024-09-27 19:13:19.904 [info] <syntax> Forking...
2024-09-27 19:13:19.904 [info] <syntax> Starting...
2024-09-27 19:13:19.904 [info] <semantic> Log file: /Users/aminlimbada/Library/Application Support/Code/logs/20240920T095108/window1/exthost/vscode.typescript-language-features/tsserver-log-ATtN8V/tsserver.log
2024-09-27 19:13:19.904 [info] <semantic> Forking...
2024-09-27 19:13:19.904 [info] <semantic> Starting...
If you want to take a closer look at the logs, I can help with that but cannot post it publicly as it has closed source code. Thanks for your help!
Closing this as issue disappeared after VS Code update Version: 1.94.0 (Universal)
Steps to Reproduce: