microsoft / vscode-copilot-release

Feedback on GitHub Copilot Chat UX in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat
Creative Commons Attribution 4.0 International
328 stars 31 forks source link

Copilot chat causes JS/TS server to crash #1540

Closed loxator closed 2 weeks ago

loxator commented 1 month ago
Version: 1.92.2 (Universal)
Commit: fee1edb8d6d72a0ddff41e5f71a671c23ed924b9
Date: 2024-08-14T17:29:30.058Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.6.0
Copilot version - 0.18.2

Steps to Reproduce:

  1. Open co-pilot chat and ask a question
  2. TS server starts crashing as soon as answers are generated
loxator commented 1 month 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!

mjbvz commented 4 weeks ago

Thanks for the report. logs would be very helpful to investigate this. To collect them from the crashed instance:

  1. Set "typescript.tsserver.log": "verbose"
  2. Restart VS Code and reproduce the problem
  3. Open the TypeScript section of the output panel
  4. At 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

loxator commented 4 weeks ago

@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!

loxator commented 2 weeks ago

Closing this as issue disappeared after VS Code update Version: 1.94.0 (Universal)