Skip to content

shift+enter stops working for me #2479

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

Closed
xzjsliran opened this issue Jan 8, 2020 · 14 comments · Fixed by microsoft/vscode-python#9445
Closed

shift+enter stops working for me #2479

xzjsliran opened this issue Jan 8, 2020 · 14 comments · Fixed by microsoft/vscode-python#9445

Comments

@xzjsliran
Copy link

Bug: Notebook Editor, Interactive Window, Editor cells

Steps to cause the bug to occur

  1. select several lines that want to send to interactive window
  2. press 'shift + enter'

Actual behavior

  1. no reaction
  2. works only when put the cursor at a single line

Expected behavior

  1. selected codes sent to interactive window and start processing

Your Jupyter and/or Python environment

Please provide as much info as you readily know

  • Jupyter server running: Local | Remote | N/A
  • Extension version: 2020.01.57204-xxx
  • VS Code version: 1.41.1
  • Setting python.jediEnabled: true | false
  • Python and/or Anaconda version: 3.7.5
  • OS: Windows | Mac | Linux (distro):
  • Virtual environment: conda | venv | virtualenv | N/A | ...

{ "key": "shift+enter", "command": "python.datascience.runcurrentcelladvance", "when": "editorTextFocus && python.datascience.featureenabled && python.datascience.hascodecells && !editorHasSelection" }

{ "key": "shift+enter", "command": "python.datascience.execSelectionInteractive", "when": "editorTextFocus && python.datascience.featureenabled && python.datascience.ownsSelection && !findInputFocussed && !replaceInputFocussed && editorLangId == 'python'" }

"python.dataScience.sendSelectionToInteractiveWindow": true

"editor.codeLens": true

Also tried methods mentioned in:
https://github.com/microsoft/vscode-python/issues/3397
https://github.com/microsoft/vscode-python/issues/5621
https://github.com/microsoft/vscode-python/issues/6578
and doesn't work at all.

Developer Tools Console Output: nothing

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer

@albimaths
Copy link

Same problem here

@Random-Forest-42
Copy link

I'm having this problem as well. Installing an older version of the extension fixed it.

@ling910520
Copy link

seems to only work on last lines of codes in the editor

@xzjsliran
Copy link
Author

I'm having this problem as well. Installing an older version of the extension fixed it.

Thanks, it seems the only way to solve it.

@ghost
Copy link

ghost commented Jan 8, 2020

I'm also having this issue. Seems like the 1/6/20 update broke 'submit selection' functionality.

@MarekOzana
Copy link

I have the same issue. It worked before 2020.1.57204 update

@rchiodo
Copy link
Contributor

rchiodo commented Jan 8, 2020

Thanks, I'm able to repro here at Microsoft. Hopefully we can fix this soon.

@rchiodo
Copy link
Contributor

rchiodo commented Jan 8, 2020

This looks to be a side effect of the 'conda run' change.

@rchiodo
Copy link
Contributor

rchiodo commented Jan 8, 2020

Any code with a '\n' inside of it isn't getting through because the 'conda run' change added an extra layer of indirection to executing something.

@xzjsliran
Copy link
Author

Any code with a '\n' inside of it isn't getting through because the 'conda run' change added an extra layer of indirection to executing something.

Thank you. Maybe the issue could be closed. Will this problem be fixed soon?

@rchiodo
Copy link
Contributor

rchiodo commented Jan 8, 2020

Should be fixed soon.

@rchiodo
Copy link
Contributor

rchiodo commented Jan 8, 2020

Reopening, hasn't shipped yet.

@rchiodo rchiodo reopened this Jan 8, 2020
@ateffal
Copy link

ateffal commented Jan 11, 2020

I have the same problem !

@MarekOzana
Copy link

Works great in 2020.1.58038 update. Thanks for fixing it.

@rchiodo rchiodo closed this as completed Jan 14, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jan 24, 2020
@microsoft microsoft unlocked this conversation Nov 13, 2020
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 13, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants