posit-dev / posit-dev/air

Warnings about "can't find common list parent" when selecting only trivia at top level

Open
#124 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
446
Forks
32
Avg merge
16h 48m
Merged PRs (30d)
1

Description

This suggests we are not correctly selecting the root expression list




1 + 1

2 + 2

https://github.com/user-attachments/assets/8e7b36f5-9856-4a73-a09b-cc9ff07dd9b1

Contributor guide

Open the contributing guide

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 warning by selecting only the top-level trivia in the provided R snippet. Trace how the formatter or language server selects the root expression list; done means that selection no longer reports "can't find common list parent" and the example is handled correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.