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

R auto complete not suggesting dplyr functions in vscode #658

Open
RafaelUL opened this issue Feb 10, 2025 · 5 comments
Open

R auto complete not suggesting dplyr functions in vscode #658

RafaelUL opened this issue Feb 10, 2025 · 5 comments
Labels
bug Something isn't working vscode

Comments

@RafaelUL
Copy link

RafaelUL commented Feb 10, 2025

Whenever I try to type out a dplyr function in a .qmd file, auto complete never suggests them. However, it works as normal in .rmd and .r files. Auto complete in a .qmd file feels not very smart. Sometimes it also doesn't suggest variable or column names, but this happens inconsistently enough that I haven't been able to replicate it for a screenshot.

I'm on:
VS Code 1.97
R 4.4.2
Quarto 1.6.40
Windows 11

Example .qmd:
Image

Example .rmd:
Image

@cderv cderv transferred this issue from quarto-dev/quarto-r Feb 11, 2025
@cderv
Copy link
Contributor

cderv commented Feb 11, 2025

I moved the issue in the repo for the Quarto VSCODE extension as it could be related to it but surely not to the R package.

Does it make a difference if you run the first cell to execute all the libary calls ?

Thanks

@RafaelUL
Copy link
Author

The cells with the library calls were run before both screenshots

@cderv
Copy link
Contributor

cderv commented Feb 11, 2025

Ok great. thanks

Rmd support is brought by an external extension that must behave differently regarding language server stuff and autocompletion.

I don't know exactly how this works here, and if this could be improved or not from the Quarto extension itself. I'll mark as a bug.

In the meantime, you could give a try to Positron (https://positron.posit.co/) - they have context awarenesss for R and Python console and environment, so they may have enhanced support in addition to the Quarto extension.

@cderv cderv added vscode bug Something isn't working labels Feb 11, 2025
@mcanouil
Copy link
Contributor

I'm pretty sure I have seen this exact issue few years ago.

Meanwhile, regarding auto-completions issues upstream:

@mcanouil
Copy link
Contributor

mcanouil commented Feb 12, 2025

And within this repository itself:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vscode
Projects
None yet
Development

No branches or pull requests

3 participants