vscode: Cmd+V not working in QuickInput

@LeonardoGentile commented on Sun Nov 01 2020

Environment data

  • VS Code version: 1.50.1
  • Extension version (available under the Extensions sidebar): v2020.10.332292344
  • OS and version: OSX 10.14.6
  • Python version (& distribution if applicable, e.g. Anaconda): Anaconda (python 3.7.4)
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
  • Relevant/affected Python packages and their versions: XXX
  • Relevant/affected Python-related VS Code extensions and their versions: XXX
  • Value of the python.languageServer setting: Microsoft

[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]

Expected behaviour

In a jupyter notebook the extension asks me to enter the url of an already running server. The input box should accept the pasted value

Actual behaviour

I can paste this value but nothing happens on Enter. The input box remains open, the pasted url still there and nothing happens. My only option is to hit Esc and close the input.

image


@LeonardoGentile commented on Mon Nov 02 2020

i would add the the standard cmd-vcommand to paste text doesn’t work in this input box. Right click and select ‘paste’ does work. Still Enter does not work so there is no way to confirm this choice


@DavidKutu commented on Tue Nov 03 2020

Thanks for reporting the issue @LeonardoGentile. I was unable to reproduce this on Windows, both ctrl+v worked and the extension asked me to reload after pressing enter, and then successfully connected to the server.

@DonJayamanne, @IanMatthewHuff, could you help me by trying to repro this on a mac?


@DonJayamanne commented on Wed Nov 04 2020

Hitting Enter does work for me & I can hit cmd+v as well.


@LeonardoGentile commented on Wed Nov 04 2020

I’ve tried to restart multiple times and I can still reproduce it. I’m also unable to paste the url using standard cmd-v, I have to right click and select paste.


@greazer commented on Thu Nov 05 2020

@LeonardoGentile, can you try pasting something inside Cmd-shift-p, and see if you can paste a string in that? We’re suspecting a problem out of the control of the Python extension.


@LeonardoGentile commented on Thu Nov 05 2020

@greazer I’m normally able to paste inside the command input.

Not sure if related but this also happens when editing a notebook.

  1. I bring on the command input or the goto input
  2. I close the input
  3. I can’t edit / interact with the notebook using the keyboard unless I click on something on the notebook

The same happen the other way, that is, when I close the command input I can’t reopen it anymore with keyboard shortcut unless I first click on something on the notebook. This behavior never happened with other kind of files.

So probably something similar is happening related to my initial problem, that is, when running a notebook, somehow the focus is stolen by something inside the notebook


@LeonardoGentile commented on Mon Nov 09 2020

Is there anything else I can do to deubg this?


@DavidKutu commented on Tue Nov 10 2020

Hey @LeonardoGentile, we think the cmd+v is either a vscode issue or its somehow related to your computer. To make sure I’d try to test that on vscode insiders, or try reinstalling vscode.

As for the url not entering, I just noticed that what you’re showing on your image is our default url. Could you share the url you’re trying to input? (you can omit part of the token if you want)


@DonJayamanne commented on Wed Nov 11 2020

Issue moved to microsoft/vscode-jupyter microsoft/vscode-python#952 via ZenHub

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 37 (16 by maintainers)

Most upvoted comments

@banderlog I logged this issue on our repo here: https://github.com/microsoft/vscode-jupyter/issues/7775 you can follow that if you want to track a resolution on this.

I don’t think this should be closed if it’s not fixed 😕

The problem is not in pasting some text in some filed, but in entering it as in input. With pressing ENTER key which is not applicable to markdown.

image

Thank you @banderlog . It looks to me that paste did work for you, but that Enter did not work.

@mjbvz I think the old jupyter notebooks were implemented using webviews. Are you aware of keybinding problems in the area of webviews? It looks like sometimes keybindings don’t reach the keybinding service at all.

Hello, as requested I can confirm I can still reproduce this problem but it’s apparently random

Version: 1.53.0
Commit: 8490d3dde47c57ba65ec40dd192d014fd2113496
Date: 2021-02-03T16:01:04.046Z
Electron: 11.2.1
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Darwin x64 18.7.0