posit-dev / positron

Positron, a next-generation data science IDE
Other
2.38k stars 70 forks source link

F1 doesn't open help panel in Quarto chunk #4097

Open andrewheiss opened 1 month ago

andrewheiss commented 1 month ago

Positron Version:

Positron Version: 2024.07.0 (Universal) build 41 Code - OSS Version: 1.90.0 Commit: 9f24124be55ef409fb6b6c75ee80232f298cd56b Date: 2024-07-12T04:30:16.648Z Electron: 29.4.0 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Darwin arm64 23.5.0


I'm not sure if this is a Quarto extension issue or a Positron issue, or if it's related to #3753, but the F1 shortcut for help doesn't seem to work in R chunks in Quarto documents on macOS. The documentation does show up when hovering over function names, and running ?whatever in the console works fine too—it's just the F1 shortcut that doesn't do anything (and doesn't emit any console messages either)

Here's a little video:

https://github.com/user-attachments/assets/fbb05547-e0d5-4a3e-b55a-ac441994b788

Steps to reproduce the issue:

  1. Make an R chunk in a Quarto document and type an R function name
  2. Place the cursor in the function name and type F1

What did you expect to happen?

I was hoping the help panel would appear

Were there any error messages in the Output panel or Developer Tools console?

Nope!

juliasilge commented 1 month ago

We had a related problem in #1645 where all language features didn't work and thought we had fixed that, including F1 help.

andrewheiss commented 1 month ago

Huh, weird! All other language features work in both source and visual editor modes, just not F1

https://github.com/user-attachments/assets/8923562c-790d-4336-a26e-3e405f434458

juliasilge commented 1 month ago

This is not an R only problem. For Python as well, F1 help works in a regular .py file but does not work in a Quarto file.