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

ipykernel never installs (possibly because it tried installing using the python terminal) #14509

Closed
mjbvz opened this issue Oct 24, 2020 · 4 comments
Labels
area-terminal feature-request Request for new features or functionality needs proposal Need to make some design decisions

Comments

@mjbvz
Copy link

mjbvz commented Oct 24, 2020

Issue Type: Bug

Repro

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

Bug
Loading forever.

Screen Shot 2020-10-24 at 12 06 50 PM

If you look more closely at the terminal in the screenshot, it seems it tried to install ipykernel using the python terminal:

>>> /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Users/matb/.vscode-insiders/extensions/ms-python.python-2020.9.114305/pythonFiles/pyvsc-run-isolated.py /Users/matb/.vscode-insiders/extensions/ms-python.python-2020.9.114305/pythonFiles/shell_exec.py /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Users/matb/.vscode-insiders/extensions/ms-python.python-2020.9.114305/pythonFiles/pyvsc-run-isolated.py pip install -U ipykernel --user /var/folders/5d/nlg411_s0570wmycdwkgqrf40000gn/T/tmp-50669KGia1cCmwSTb.log
  File "<stdin>", line 1
    /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Users/matb/.vscode-insiders/extensions/ms-python.python-2020.9.114305/pythonFiles/pyvsc-run-isolated.py /Users/matb/.vscode-insiders/extensions/ms-python.python-2020.9.114305/pythonFiles/shell_exec.py /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Users/matb/.vscode-insiders/extensions/ms-python.python-2020.9.114305/pythonFiles/pyvsc-run-isolated.py pip install -U ipykernel --user /var/folders/5d/nlg411_s0570wmycdwkgqrf40000gn/T/tmp-50669KGia1cCmwSTb.log
    ^
SyntaxError: invalid syntax
>>> 

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

@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Oct 24, 2020
@joyceerhl joyceerhl added data science bug Issue identified by VS Code Team member as probable bug and removed triage-needed Needs assignment to the proper sub-team labels Oct 25, 2020
@joyceerhl
Copy link

Thanks @mjbvz. We'd want to change the behavior of getTerminalService here:

const terminalService = this.serviceContainer
.get<ITerminalServiceFactory>(ITerminalServiceFactory)
.getTerminalService(uri);

Problem here is we're reusing terminals without checking whether they're running some other program. We'd want to either validate the target terminal or always create a new terminal. I'm removing the data science tag here as I think this affects any product install.

@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Oct 26, 2020
@brettcannon brettcannon added feature-request Request for new features or functionality area-terminal needs decision and removed bug Issue identified by VS Code Team member as probable bug labels Oct 27, 2020
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Oct 27, 2020
@brettcannon
Copy link
Member

Solution will be related to #7206.

@brettcannon
Copy link
Member

Should be solved as part of #2997 .

@luabud luabud added needs proposal Need to make some design decisions and removed needs decision labels Dec 16, 2020
@karrtikr
Copy link

Closing as dup of #2997.

@karrtikr karrtikr closed this as not planned Won't fix, can't repro, duplicate, stale Dec 19, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-terminal feature-request Request for new features or functionality needs proposal Need to make some design decisions
Projects
None yet
Development

No branches or pull requests

5 participants