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

R6 objects shouldn't offer completions for .__enclos_env__ or initialize #4571

Closed
hadley opened this issue Sep 4, 2024 · 1 comment
Closed
Labels
area: completions Issues related to Completions bug Something isn't working lang: r
Milestone

Comments

@hadley
Copy link

hadley commented Sep 4, 2024

System details:

Positron and OS details:

Positron Version: 2024.08.0 (Universal) build 48
Code - OSS Version: 1.91.0
Commit: ed616b3
Date: 2024-08-19T04:26:51.868Z
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

Interpreter details:

R 4.4.1

Describe the issue:

R6 objects offer completions for elements that you shouldn't generally use, i.e. .__enclos_env__ and initialize.

Steps to reproduce the issue:

x <- R6::R6Class("x", list(initialize = function() {}))$new()
x$

Expected or desired behavior:

This object should only offer to autocomplete $clone

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

No

@juliasilge juliasilge added bug Something isn't working lang: r area: completions Issues related to Completions labels Sep 4, 2024
@juliasilge juliasilge added this to the Future milestone Sep 4, 2024
@hadley
Copy link
Author

hadley commented Sep 4, 2024

Looks like I can fix this in R6: r-lib/R6#289

@hadley hadley closed this as completed Sep 4, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: completions Issues related to Completions bug Something isn't working lang: r
Projects
None yet
Development

No branches or pull requests

2 participants