posit-dev / posit-dev/positron

R No symbol named '.' in scope.

Open
#8,553 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: diagnostics enhancement lang: r support
Dominant language
TypeScript
Stars
4.3k
Forks
184
Avg merge
1d 11h
Merged PRs (30d)
206

Description

System details:

MacOS Sequoia

Positron and OS details:

Positron Version: 2025.06.0 (Universal) build 167
Code - OSS Version: 1.100.0
Commit: e7e5d5590adc6bf7b760f837051cd2f57ea9e3dc
Date: 2025-05-29T20:44:08.369Z (1 mo ago)
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0

Interpreter details:

R version 4.4.0 (2024-04-24)

Describe the issue:

The editor declares a problem when the magrittr "." is used inside curly braces.

Steps to reproduce the issue:

  1. put the following code in the editor as save as an R file.
library(magrittr)
1 %>%
  {
    . + 1
  }
  1. A problem will pop up declaring "No symbol named '.' in scope."

Expected or desired behavior:

The "." is a valid variable within the scope of the curly braces and should not be lagged as a problem.

Were there any error messages in the UI, Output panel, or Developer Tools console?

Problems: "No symbol named '.' in scope."

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

Start by reproducing the diagnostic in an R file with the provided magrittr pipeline and inspect the editor's Problems output for the reported scope error. Trace the R symbol-resolution or diagnostic entry point that handles symbols inside curly braces; done means the '.' placeholder is no longer flagged while unrelated scope diagnostics still appear.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.