positron icon indicating copy to clipboard operation
positron copied to clipboard

R completions: too eager when prefixing function with package name

Open EmilHvitfeldt opened this issue 1 year ago • 3 comments

Positron Version:

Steps to reproduce the issue:

  1. be in console
  2. type function name lm()
  3. then go left and add package name stats::

https://github.com/posit-dev/positron/assets/14034784/134c13fd-0de5-4709-9f42-bd2337ac38a3

What did you expect to happen?

I would love if positron could see what that I'm qualifying the function. I run into this multiple times a day when I get a little too fast

Were there any error messages in the output or Developer Tools console?

EmilHvitfeldt avatar Mar 09 '24 00:03 EmilHvitfeldt

Consider adding to #1603

juliasilge avatar Mar 11 '24 15:03 juliasilge

I just did that

DavisVaughan avatar Mar 11 '24 15:03 DavisVaughan

Very related to #2574. Linking so they'll get closed together.

jennybc avatar Apr 08 '25 22:04 jennybc

Can be verified once .ps.ark.version() in R Console reports that ark is at 0.1.193 or above.

jennybc avatar Jun 24 '25 21:06 jennybc

Verified Fixed

Positron Version(s) : 2025.07.0-187 OS Version(s) : MacOS

Test scenario(s)

Confirmed that R completions no longer trigger prematurely when qualifying a function with a package name (e.g., typing stats::lm). Completions now respect the namespace qualifier and behave as expected when editing around ::

Link(s) to test cases run or created:

n/a

midleman avatar Jun 25 '25 16:06 midleman