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

cursor does not respond to arrow keys after plotting #523

Closed
IgorDouven opened this issue Jul 8, 2018 · 9 comments
Closed

cursor does not respond to arrow keys after plotting #523

IgorDouven opened this issue Jul 8, 2018 · 9 comments
Labels

Comments

@IgorDouven
Copy link

Downloaded the latest version of VSCode (1.25) and updated the julia extension. When I create a plot and place the plot pane next to the editor window, I seem unable to get back the control of the cursor in the latter via the arrow keys. That is, when I hold down the cmd or ctrl keys, the cursor does respond to the arrow keys, but only then. Am I overlooking something or is this a bug?

Also, is there a way to keep the plot pane fixed next to the editor? After I have placed it there, creating a new plot puts the pane back where it appeared at first (so not leaving the editor window visible).

@davidanthoff
Copy link
Member

That looks like a bug, most likely in VS Code, hard to imagine how we could be messing that up...

We've reworked how the plot pane works on master and I think that will fix the issue about the placement.

@davidanthoff davidanthoff added this to the Backlog milestone Jul 9, 2018
@IgorDouven
Copy link
Author

Thanks David. I noticed that if I don't reposition (and resize) the plot window and just go back and forth between the plot tab and the editor tab, all is fine. Nevertheless, would be nice to have the two side by side.

@ChristianKurz
Copy link
Contributor

Plotting using the plots pane will shift focus to that plane. The arrow keys will cycle through recent plots and are thus not available in the REPL. You can click on the repl window to switch focus again and use the arrow keys in the REPL.

I also think this is inconvenient, but at least the arrow keys do serve the purpose of cycling through recent plots.

@IgorDouven
Copy link
Author

This is not the problem I'm having. If I'm not repositioning the plots pane, everything is fine -- I can then go back to the tab with the code and the arrow keys work normally. But if I do reposition the plots pane -- so I can see code and plot side by side -- then I can still switch the focus back to the code, but now the arrow keys are no longer responding. What's worse, that remains the case if I close the plots pane, essentially meaning I have to restart VSCode.

@mirek-resq
Copy link

mirek-resq commented Nov 28, 2018

I also have this problem. After I ran my Julia script, suddenly I cannot use arrow keys or Del. I have to restart VS Code to get it working again.

@davidanthoff
Copy link
Member

@atranel Is this with the shipping version of the extension, or the beta? We have reworked the whole plotting pane for the beta, so hopefully this might just be solved there...

@mirek-resq
Copy link

I have problem with new 0.11-beta2 + Julia 1.0.2. I don't have this issue with stable branch 0.10.3 + Julia 0.64. Interestingly, new 0.11-beta2 while using Gadfly will open plot in browser instead of Plot pane of VS Code, but same script in 0.10.3 will plot it in Plot pane.

@davidanthoff
Copy link
Member

Interesting... I'll have to investigate.

The Gadfly issue is because Gadfly now pushes its own display to the stack when you load it, thus giving that preference over the VS Code plot pane. I think that is essentially a bug in Gadfly...

@pfitzseb
Copy link
Member

pfitzseb commented Nov 4, 2021

Fixed nowadays.

@pfitzseb pfitzseb closed this as completed Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants