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

Autocomplete in reticulate::repl_python() wraps valid Python names in backticks (`) #14560

Open
t-kalinowski opened this issue Apr 18, 2024 · 3 comments
Labels
autocompletion Issues relating to autocomplete and autocompletion bug python

Comments

@t-kalinowski
Copy link
Member

When in the Python repl reticulalate::repl_python(), typing this

import anndata
anndata.__v<tab>

autocompletes:

anndata.`__version__`
@t-kalinowski t-kalinowski added bug new New incoming issues, ready for initial review. labels Apr 18, 2024
@t-kalinowski t-kalinowski changed the title Autocomplete in reticulate::repl_python() wraps valid Python names in backticks (`` ```) Autocomplete in reticulate::repl_python() wraps valid Python names in backticks (` ``) Apr 18, 2024
@t-kalinowski t-kalinowski changed the title Autocomplete in reticulate::repl_python() wraps valid Python names in backticks (` ``) Autocomplete in reticulate::repl_python() wraps valid Python names in backticks ( `) Apr 18, 2024
@t-kalinowski t-kalinowski changed the title Autocomplete in reticulate::repl_python() wraps valid Python names in backticks ( `) Autocomplete in reticulate::repl_python() wraps valid Python names in backticks (`) Apr 18, 2024
@ronblum
Copy link
Contributor

ronblum commented Apr 19, 2024

I can reproduce this in RStudio Desktop 2024.04.0-daily+712 and as far back as 2023.03.2+454, although it worked correctly in version RStudio-2022.07.2+576 (all on Windows 11).

Note: This only occurs with the objects surrounded by underscores.

@ronblum ronblum added autocompletion Issues relating to autocomplete and autocompletion python and removed new New incoming issues, ready for initial review. labels Apr 19, 2024
@kevinushey
Copy link
Contributor

Presumedly this is because the completion system is confused and thinks we're in R mode, and so treats __foo__ as a non-syntactic identifier. Probably a simple fix.

@ronblum ronblum added this to the Cranberry Hibiscus milestone Apr 22, 2024
@t-kalinowski
Copy link
Member Author

This might be a dup of #4231 ... from 2019?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocompletion Issues relating to autocomplete and autocompletion bug python
Projects
None yet
Development

No branches or pull requests

3 participants