REditorSupport / REditorSupport/languageserver

Spurious "No visible global function definition" errors in function definitions

Open
#584 0 comments 4 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

Apologies for the confusing title. The problem is that package functions are somehow not recognized when they are referenced from the body of a function. Here's an example in sublime; I get the same behavior in VS Code.

image

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 diagnostic in Sublime or VS Code using the package-function call inside a function shown in the report. Then trace the language-server path that reports "No visible global function definition"; done means package functions referenced in function bodies are recognized without spurious errors.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.