REditorSupport / REditorSupport/languageserver

Code folding won't work if there is a single grammar error in one of the code trunks

Open
#501 4 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

A minimum RMD to reproduce this:

```{r}
good()
```

**You need to fix the following code trunk for the code folding to work.**

```{r}
bad(
```

Ideally a single error in one of the code trunks should not affect the code folding of the entire document.

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

Start with the minimal R Markdown reproduction in the issue: one valid R code trunk followed by a trunk containing bad(. Trace how code folding handles grammar errors across separate trunks; done when the valid trunk remains foldable even when another trunk has a single grammar error.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.