REditorSupport / REditorSupport/vscode-R

Function autocompletion not working if packages are `source()`ed from a script or loaded from R terminal

Open
#1,462 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
1.2k
Forks
139
Avg merge
2h 46m
Merged PRs (30d)
5

Description

If I source() a script to load packages, or load a package from R terminal, the auto-completion does not work.

image

It only works if I send the code library() from the script to R terminal.

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure by loading a package with source() from a script and by loading it from the R terminal, then compare both with sending library() from the script. Done means function autocompletion works in the first two cases as it does after library(); the issue names no file or test, so the relevant entry point must first be located.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, typescript, vscode
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.