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

rm(list = ls()) on top of files correlates with objects being automatically deleted #1558

Open
courtiol opened this issue Sep 3, 2024 · 1 comment

Comments

@courtiol
Copy link

courtiol commented Sep 3, 2024

While working with VScode, I noticed that when working with specific files I keep loosing the objects in my global environment.
The patterns seems that those files start with a remove call (rm(list = ls())), that is before I create my objects.
I do not run source() or anything of the kind, so I am wondering what may actually run this line in the background.
I suspect, but have no proof, nor reprex, that languageserver may be the culprit but I failed to find anything on the topic.
Of course, that could also come from various other VScode extensions and I did not experiment to dissect the issue.

Has anyone else ever encountered this issue?

@randy3k randy3k transferred this issue from REditorSupport/languageserver Sep 6, 2024
@randy3k
Copy link
Member

randy3k commented Sep 6, 2024

I moved it to VScode-R, languageserver only performs static analysis, and it doesn't alter your R runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants