wrathematics / getPass

Password function for R with masking (where supported)
Other
47 stars 5 forks source link

Pasting credentials inside radian console only receives first character #18

Open martin-raisely opened 11 months ago

martin-raisely commented 11 months ago

If you are having issues using the package, please provide some platform information which you can determine with the following R code:

# Interface
.Platform$GUI
"X11"

# OS
Sys.info()["sysname"]
 sysname 
"Darwin" 

Hi there, I am using getPass::getPass inside a radian terminal/console

radian -v
radian version: 0.6.4
r executable: /Library/Frameworks/R.framework/Resources/bin/R
r version: 4.2.2
python executable: /Users/raisely/opt/miniconda3/bin/python3.9
python version: 3.9.15

on VS Code:

Version: 1.83.1 (Universal)
Commit: f1b07bd25dfad64b0167beb15359ae573aecd2cc
Date: 2023-10-10T23:46:55.789Z
Electron: 25.8.4
ElectronBuildId: 24154031
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 23.0.0

When I run getPass:getPass and then paste a password (from a password manager) (cmd + v), only the first character is received:

r$> library(getPass)

r$> getPass::getPass()
PASSWORD: *
[1] "h"

This is not what happens when I run getPass:getPass in a standard R console (on VS code):

> library(getPass)
> getPass::getPass()
PASSWORD: ************
[1] "http_version"

Don't worry, http_version is NOT my password, just junk text.

Any thoughts on what the issue might be? Many thanks. I haven't run into other issues pasting into a radian console.