Skip to content

git[hub] credentials do not persist across RStudio/Positron sessions (Windows machine) #73

@math-mcshane

Description

@math-mcshane

When I open a fresh Positron or RStudio session and run gitcreds::gitcreds_get(), I get

Error in `throw()`:
! Could not find any credentials
Hide Traceback1. └─gitcreds::gitcreds_get()
 2.   └─gitcreds::gitcreds_parse_output(out, url)
 3.     └─gitcreds (local) throw(new_error("gitcreds_no_credentials", url = url))

So, I generate a new PAT on github.com, then use gitcreds::gitcreds_set() and then call gitcreds::gitcreds_get() and get

<gitcreds>
  protocol: https
  host    : github.com
  username: math-mcshane
  password: <-- hidden -->

When I start a fresh Positron or RStudio session, I re-run gitcreds::gitcreds_get() and once again get

Error in `throw()`:
! Could not find any credentials
Hide Traceback1. └─gitcreds::gitcreds_get()
 2.   └─gitcreds::gitcreds_parse_output(out, url)
 3.     └─gitcreds (local) throw(new_error("gitcreds_no_credentials", url = url))

I've also tried using Windows credential manager and have set this multiple times:

Image

FWIW,

Sys.info()
       sysname        release        version       nodename        machine          login           user 
     "Windows"       "10 x64"  "build 26100" "MCSHANE-UOFC"       "x86-64"     "rmcshane"     "rmcshane" 
effective_user        udomain 
    "rmcshane"      "ADLOCAL" 

And gitcreds 0.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions