positron icon indicating copy to clipboard operation
positron copied to clipboard

"Trigger Parameter Hints" shows argument defaults for Python but not for R

Open juliasilge opened this issue 1 year ago • 1 comments

Discussed in https://github.com/posit-dev/positron-beta/discussions/118

Originally posted by JosiahParry April 15, 2024 Here i was using the hints to fill out required arguments. I found it odd that error_call and error_arg didnt have defaults. Turns out that wasn't the case.

image

juliasilge avatar Apr 16 '24 19:04 juliasilge

If I do "Trigger Parameter Hints" from the command palette in Python, I see this:

Screenshot 2024-04-16 at 1 36 37 PM

From R, I see this:

Screenshot 2024-04-16 at 1 37 18 PM

juliasilge avatar Apr 16 '24 19:04 juliasilge

QA notes:

The verification is something like this video. You accept a completion for a function name, and that automatically calls Trigger Parameter Hints (this is a command you can run manually). The parameter hints should now show the default values for arguments - like values = NULL and error_call = caller_env() here)

https://github.com/user-attachments/assets/bc220352-f6e3-436c-b467-3c86ee44c8ac

DavisVaughan avatar Aug 29 '24 21:08 DavisVaughan

Verified Fixed

Positron Version(s) : 2024.08.0-88
OS Version          : OSX

Test scenario(s)

Tested according to video at end of issue.

Link(s) to TestRail test cases run or created: N/A

testlabauto avatar Aug 30 '24 15:08 testlabauto