Language server crashing while streaming online completion
Checklist
-
I'm using the latest version of the extension (see the latest version in the right column of this page)Using this version → &11722 (comment 1701126147)- Extension version: &11722 (comment 1701126147)
-
I'm using the latest VS Code version (find the latest version here) - VS Code version: 1.85.1
-
I'm using a supported version of GitLab (see README for the supported version) - GitLab version: happens on
gitlab.com
- GitLab version: happens on
VSCode:
Version: 1.85.1
Commit: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2
Date: 2023-12-13T09:48:06.308Z (6 days ago)
Electron: 25.9.7
ElectronBuildId: 25551756
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin x64 22.6.0
Summary
Attempted to use AI streaming to program a basic calculator. Server crashed 5 times.
Steps to reproduce
- Opened a Ruby file (calculator.rb)
- Followed steps on Screen Recording
What is the current bug behavior?
Streaming(?) server crashing
What is the expected correct behavior?
Relevant logs and/or screenshots
| Copilot | Duo |
|---|---|
| github_copilot | 2023-12-19_12-48-56 |
TypeError: this.task is not a function
at /Users/ddavison/.vscode/extensions/node_modules/vscode-languageclient/lib/common/utils/async.js:28:35
Stack Trace
[Error - 12:39:18 PM] Server process exited with code 1.
[Info - 12:39:18 PM] Connection to server got closed. Server will restart.
true
[Error - 12:39:18 PM] Delivering pending changes failed
TypeError: this.task is not a function
at /Users/ddavison/.vscode/extensions/node_modules/vscode-languageclient/lib/common/utils/async.js:28:35
2023-12-19T12:39:18:779 [info]: GitLab Language Server is starting
2023-12-19T12:39:18:853 [info]: GitLab Language Server has started
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Token needs to be provided".] {
code: 'ERR_UNHANDLED_REJECTION'
}
Node.js v18.15.0
[Info - 12:39:18 PM] Connection to server got closed. Server will restart.
true
[Error - 12:39:18 PM] Server process exited with code 1.
2023-12-19T12:39:19:375 [info]: GitLab Language Server is starting
[Error - 12:39:19 PM] Delivering pending changes failed
TypeError: this.task is not a function
at /Users/ddavison/.vscode/extensions/node_modules/vscode-languageclient/lib/common/utils/async.js:28:35
2023-12-19T12:39:19:451 [info]: GitLab Language Server has started
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Token needs to be provided".] {
code: 'ERR_UNHANDLED_REJECTION'
}
Node.js v18.15.0
[Info - 12:39:19 PM] Connection to server got closed. Server will restart.
true
[Error - 12:39:19 PM] Server process exited with code 1.
2023-12-19T12:39:20:040 [info]: GitLab Language Server is starting
[Error - 12:39:20 PM] Delivering pending changes failed
TypeError: this.task is not a function
at /Users/ddavison/.vscode/extensions/node_modules/vscode-languageclient/lib/common/utils/async.js:28:35
2023-12-19T12:39:20:139 [info]: GitLab Language Server has started
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Token needs to be provided".] {
code: 'ERR_UNHANDLED_REJECTION'
}
Node.js v18.15.0
[Info - 12:39:20 PM] Connection to server got closed. Server will restart.
true
[Error - 12:39:20 PM] Server process exited with code 1.
2023-12-19T12:39:20:834 [info]: GitLab Language Server is starting
[Error - 12:39:20 PM] Delivering pending changes failed
TypeError: this.task is not a function
at /Users/ddavison/.vscode/extensions/node_modules/vscode-languageclient/lib/common/utils/async.js:28:35
2023-12-19T12:39:20:906 [info]: GitLab Language Server has started
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Token needs to be provided".] {
code: 'ERR_UNHANDLED_REJECTION'
}
Node.js v18.15.0
[Error - 12:39:23 PM] The GitLab Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 12:39:23 PM] Server process exited with code 1.
[Error - 12:39:24 PM] Delivering pending changes failed
TypeError: this.task is not a function
at /Users/ddavison/.vscode/extensions/node_modules/vscode-languageclient/lib/common/utils/async.js:28:35