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

Avoid waiting for completions request #9043

Merged
merged 2 commits into from
Feb 16, 2022
Merged

Conversation

DonJayamanne
Copy link
Contributor

Fixes #9014

@DonJayamanne DonJayamanne requested a review from a team as a code owner February 16, 2022 02:56
@@ -662,17 +662,8 @@ export class Kernel implements IKernel {
// Restart sessions and retries might make this hard to do correctly otherwise.
notebook.session.registerCommTarget(Identifiers.DefaultCommTarget, noop);

// Request completions to warm up the completion engine (first call always takes a lot longer)
const completionPromise = this.requestEmptyCompletions();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THe problem is we can see errors in the console, basically kernel is logging errors, however its an unhandled exception and the kernel is not able to send back a failure response.

Hence we end up waiting indefinitely for the promise to resolve as we don't ever get a response.
Fortunately in other places when we make this request, we have a timeout (to not wait and block VS Code for completions).

@DonJayamanne DonJayamanne merged commit 5711e05 into main Feb 16, 2022
@DonJayamanne DonJayamanne deleted the fixCompletionsAwaiting branch February 16, 2022 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant