Skip to content

Locals-aware completions for R not working in paused browser() #11050

@danielmonsurate

Description

@danielmonsurate

System details:

Positron and OS details:

Session details:

Positron Version: 2025.12.1 (system setup) build 4
Code - OSS Version: 1.106.0
Commit: f70a9bc
Date: 2025-12-05T21:14:02.697Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26100

Describe the issue:

When paused at a browser() prompt in Positron, autocompletion for local variables does not work. The completion list shows “No suggestions” for locals.

Steps to reproduce the issue:

  1. Start an R session in Positron.

  2. Run:

     f <- function() {
       df <- data.frame(a = 1, b = 2, c = 3)
       browser() 
     }
     f()
    
  3. At Browse[n]>, type df$ and press Ctrl+Space.

Result
“No suggestions” in the completion list.

Expected or desired behaviour:

When paused in browser(), typing df$ and pressing Ctrl+Space should show column names from the local data frame in the current debug frame.

Actual behaviour

Completions work for:

Globals (df$ in global env)
Package functions

…but not for locals in the paused frame. The suggestion list says “No suggestions”.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions