REditorSupport / REditorSupport/languageserver

Autocompletion Bugs in vscode rmd-files

Open
#632 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
675
Forks
118
Avg merge
1d 37m
Merged PRs (30d)
11

Description

Dear Developers <3

Please apologize if this not a languageserver but a vscode-R issue.

when autocompleting is.nume<cursor> in R files it autocompletes nicely to is.numeric(<cursor>)
in rmd files it autocompletes to is.is.numeric(<cursor>) (note the is.is.). This happens with all is.<class> and as.<class> functions.
data.fra<cursor> however, autocompletes correctly to data.frame(<cursor>) in rmd files if written in one go but not if you type data.fra go with the cursor to another word, come back, add the m and autocomplete.

Another annoying behavior is that pri<cursor> () gets autocompleted to print(<cursor>) (). so it adds paranthethesis even though there are already some. This is possibly more a feature than a bug, however I do not see any use case for it.

Best Regards :)

Contributor guide

No contributing guide indexed for this repository

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 reported completions in R files and R Markdown files, including the is., as., data.fra, and existing-parentheses cases. Trace the languageserver completion behavior used by vscode-R and verify that each example produces the expected completion without duplicating prefixes or parentheses.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.