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

Lots of orphaned progress notifications after interactive window fails to open #1698

Closed
Tracked by #1122
mjbvz opened this issue Oct 24, 2020 · 4 comments
Closed
Tracked by #1122
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debt Code quality issues notebook-execution Kernels issues (start/restart/switch/execution, install ipykernel) verified Verification succeeded
Milestone

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Oct 24, 2020

Issue Type: Bug

Repro
Same initial steps as microsoft/vscode-python#14509:

  1. Install python extension
  2. Run something in the python terminal
  3. Now open python interactive window using run in interactive window
  4. See alert about installing ipykernel
  5. Click button to install

The install should never complete. Now:

  1. Click the cancel buttons on the install notifications.
  2. See some error notifications
  3. The interactive window closes
  4. Click on VS Code's notifications

Bug
There are still progress tasks running:

Screen Shot 2020-10-24 at 12 11 11 PM

Specifically Connecting to IPython kernel: Fetching Kernels and Executing Cell. I don't seem to be able to cancel or dismiss either of these

Extension version: 2020.9.114305
VS Code version: Code - Insiders 1.51.0-insider (7a3bdf4ee9588755d447aa1c3b5db4a123fc11a9, 2020-10-23T07:32:22.213Z)
OS version: Darwin x64 19.6.0

@mjbvz mjbvz changed the title Lots of orphaned progress notifications after Lots of orphaned progress notifications after interactive window fails to open Oct 24, 2020
@joyceerhl
Copy link
Contributor

joyceerhl commented Oct 27, 2020

Thanks for reporting this @mjbvz. The 'Connecting to IPython kernel' message is created on a progress indicator that isn't cancellable, so at minimum we should pass the cancelToken if any here to createProgressIndicator:

    protected async createNotebookInstance(
        resource: Resource,
        identity: vscode.Uri,
        disableUI?: boolean,
        notebookMetadata?: nbformat.INotebookMetadata,
        cancelToken?: CancellationToken
    ): Promise<INotebook> {
        traceInfo(`Creating raw notebook for ${identity.toString()}`);
        const notebookPromise = createDeferred<INotebook>();
        this.setNotebook(identity, notebookPromise.promise);

        const progressReporter = !disableUI
            ? this.progressReporter.createProgressIndicator(localize.DataScience.connectingIPyKernel())
            : undefined;

@talk2sunil83
Copy link

Same with:

Version: 1.51.0-insider (user setup)
Commit: e5c0007ce0e9a3816679cba674d03376c03726e3
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.20226

Python Extn : v2020.9.114305
Pylance: v2020.10.2

@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 13, 2020
@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug temp-parking and removed temp-parking labels Nov 13, 2020
@greazer greazer added this to the July 2021 Release milestone Jun 8, 2021
@greazer greazer removed this from the July 2021 milestone Jul 30, 2021
@greazer greazer added the notebook-execution Kernels issues (start/restart/switch/execution, install ipykernel) label Aug 2, 2021
@DonJayamanne
Copy link
Contributor

Need to refactor the code and clean up how we start kernels.

@DonJayamanne
Copy link
Contributor

Should not be an issue anymore, we've refactored this code.
Moving to validate.

@IanMatthewHuff IanMatthewHuff added the verified Verification succeeded label Jan 28, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debt Code quality issues notebook-execution Kernels issues (start/restart/switch/execution, install ipykernel) verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

6 participants