REditorSupport / REditorSupport/languageserver

Hover code suggestion not work in box and R6 package

Open
#543 6 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

Hover suggestion not work in box and R6 package, The example in box package as follows:

'R/run_diff.R' file includes many functions such as calculate_diff, plot_diff and so on. the codes as follows:

box::use(R/run_diff)
run_diff$calculate_diff(object, ...) 

When I hover my mouse on run_diff$calculate_diff(), no function pamameter suggestiong is shown.
When I use source("R/run_diff.R"), it works well that the function pamameter suggestion is shown.

R6 and box bring new OOB framework that isimilar to python into R, it may be a trend in future in R.

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 hover behavior using the issue's example with R/run_diff.R, box::use(R/run_diff), and run_diff$calculate_diff(object, ...), then compare it with source("R/run_diff.R"). Trace the language-server hover entry point for the imported function and verify that parameter suggestions appear for both the box and R6 cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
tooling
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.