-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Cmd+V not working in QuickInput #110528
Comments
I too came across this issue, Sorry, didn't debug & didn't check the logs either in VS Code. |
I'm not aware of any changes in this area. Have you seen this with other text fields too or only QuickPick? |
I only came across this once, quick pick. |
Hello, as requested I can confirm I can still reproduce this problem but it's apparently random
|
According to the user it still exists. @LeonardoGentile please let us know if you see it on the latest VS code release. |
I can confirm that the problem is still there for the .deb package at least |
Could you run |
Sure:
Nothing happens on Enter pressing (no new lines in the log window) |
/cc @alexdima Please check I'm giving the right instructions to debug the context keys. (Is there documentation for this?) @banderlog Could you also try:
|
@chrmarti What is "QuickInput input field"? I clicked "Jupyter Server -> Input field", but actual input of server address happens at "Jupyter Server -> Existing -> Input field". However, "Developer: Inspect Context Keys" allows to select only "Existing" and do not go further. If I firstly open "Jupyter Server -> Existing -> Input field" and then "Developer: Inspect Context Keys allows", the input field dissappears. object
|
I can confirm this is still happening on:
|
This was found again and entered in the jupyter extension repo: microsoft/vscode-jupyter#5820. |
@chrmarti nope |
Troubleshooting paste involves one more step than just So the easiest way to troubleshoot:
The output will look like e.g.
The interesting part is
|
To clarify, we need a bit more information to track down where the problem is. If you are able to reproduce, then please try:
|
Here you go
|
Thank you @banderlog . It looks to me that @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. |
@alexdima Yes webviews can interfere with keybindings (we have to handle them in the webview and re-broadcast them back back to the editor) @banderlog Do you see the issue with other webviews too? You can easily test by:
|
Ok, same question though: does it happen with a markdown preview open instead of the jupyter notebook If it does work in the markdown preview but no in a notebook, then it's probably an issue with the jupyter/python extension |
You do realise that I do not know much about vscode and never used it, and have launched it just to see how it will manage with my tasks, which he did not, by the way, and I cannot understand or repeat all vscode stuff with its terminology without step-by-step guide as above? |
Hi @mjbvz, I have the same problem as @banderlog: when trying to enter the URI (e.g. My VS Code about:
I'm using the Python, Pylance, and Jupyter extensions (and a bunch of others for linting/formatting, but I'm not sure if they're relevant?) My keyboard trace log doesn't show anything when pressing "Enter", but shows the following when doing
I'm not sure entirely what you meant by the markdown preview. I opened a markdown file, opened the preview, and tried to open a remote Jupyter server from that tab (i.e.
For what it's worth, I started that Jupyter server by SSHing into a remote machine from VS Code using the Remote-SSH extension, then using a remote terminal there to run Please let me know if I can do anything else to help troubleshoot. Thanks! :) |
I was trawling through closed issues on the vscode-jupyter extension repo and found this comment about vscode needing This should be mentioned somewhere prominent so that Linux users using KDE or some other non-GNOME desktop environment know. Ideally, the gnome-keyring dependency should be replaced with something non-specific to the DE, but I have no idea how technically challenging that would be, so whatever. |
I have installed |
:D |
I don't think this should be closed if it's not fixed 😕 |
The bot was a little eager. Apologies. Ok so I'd like to summarize a bit here... it seems like the original reported is the same as this issue #132641 It appears that @alexdima has done some work in the space. @banderlog your issue you talk about here #110528 (comment) I cannot reproduce |
I installed VSCode from snap: Version: 1.60.2 The behavior changed. Now it seems that it actually takes input, UI just does not react to it at all: @TylerLeonhardt no, only one particular input field, I've recorded a video with explanation: https://streamable.com/5ku8vv |
@banderlog Thanks for providing the video here. So in your example in the video I believe that the control is actually functioning correctly, it's just that our workflow is a bit confusing. When you use the Server selection command you first get this quick pick control here: You should be able to get this working by picking Existing and then entering your URI. I'm going to file a bug on the Jupyter extension side to look into this workflow, seems to me like being able to accept a URI input in the first box might be desired as long as the VS Code input API supports that. |
@banderlog I logged this issue on our repo here: microsoft/vscode-jupyter#7775 you can follow that if you want to track a resolution on this. |
@LeonardoGentile commented on Sun Nov 01 2020
Environment data
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.
@LeonardoGentile commented on Mon Nov 02 2020
i would add the the standard
cmd-v
command 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 hitcmd+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.
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
The text was updated successfully, but these errors were encountered: