REditorSupport / REditorSupport/languageserver

languageserver features doesn't work on saved files

Open
#595 9 comments 1 reaction 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

Hi all,
I've noticed that lsp featruers as autocompliation, on hover popup etc aren't working when I'm working on a saved R file, but if I start a new file and set it as an R file (without seving) everything works fine.

Describe the bug
autocompliation, and on hover popups aren't working when editing saved files, but do work on an unsaved R file.

To Reproduce

  1. Open a saved .R file
  2. Type a function name or hover over a function ,and expact popup to apear
  3. nothing happens
  4. Open a new file (ctrl+alt+ win +n), choose R document from the dropdown
  5. Start typing a function name or hover over a fucntion: a pop up appears!

User settings.JSON :
image

Workspace settings.JSON:
image

I'm using Win 11, and a fresh install of VScode, R extention and languageserver

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

The report names no source files, tests, or entry points. Start by reproducing the difference between a saved .R file and an unsaved R document in VS Code, then trace why completion and hover behavior differs; done means both features work for saved R files.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.