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 suggestions show when writing comments in R notebook chunks when this behaviour is disabled in settings #1331

Closed
ntentes opened this issue Sep 18, 2023 · 1 comment
Labels
area: quarto Issues related to Quarto category.

Comments

@ntentes
Copy link

ntentes commented Sep 18, 2023

Positron Version:

Positron Version: 2023.09.0 (Universal) build 151
Code - OSS Version: 1.79.0
Commit: b107652
Date: 2023-09-18T02:47:09.360Z
Electron: 22.3.10
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Darwin arm64 22.6.0

When writing comments in R chunks in Quarto notebooks, autocomplete suggestions pop up for user-defined functions from other .R files in same project, even when this setting is disabled in Positron.

Steps to reproduce the issue:

  1. Make sure "Quick Suggestions" in settings has the value "off" for the "comments" item (this is default).
Screenshot 2023-09-18 at 3 19 00 PM
  1. Create mean_test_function.R file with the following content:
mean_test_function <- function(arg) {
    return(mean(arg))
}
  1. In the same directory, open a Quarto document, insert a R chunk, start writing a comment that would trigger the mean_test_function() autocomplete:
Screenshot 2023-09-18 at 4 00 32 PM

Non-user-defined functions like mean() aren't suggested when writing a comment, but if you are writing code, they are suggested (including user-defined functions), which is expected:
Screenshot 2023-09-18 at 3 55 13 PM

Autocomplete does not make any suggestions when writing comments in a .R file. When replicating the same situation in Python, autocomplete does not seem to suggest anything when writing comments in Python chunks in Quarto, cells in Jupyter notebooks, or standalone .py files.

What did you expect to happen?

I expected autocomplete to follow the selected settings and not make suggestions when writing comments.

Were there any error messages in the output or Developer Tools console?
No.

@juliasilge
Copy link
Contributor

In build 1334 I see no completion suggestions when writing a comment, even if I have something starting with the name I am typing:

Screenshot 2023-11-27 at 2 16 21 PM

@wesm wesm added the area: quarto Issues related to Quarto category. label Feb 29, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: quarto Issues related to Quarto category.
Projects
None yet
Development

No branches or pull requests

3 participants