svn-scm: Extension doesnt work with auth

  • VSCode Version: 1.19.0
  • OS Version: Ubuntu 16.04
  • Extension Version: 1.4.6
  • System Language: English (US)

Seeing this every time I launch VSCode:

Using svn 1.9.3 (r1718519) from svn
[.cmaketools.json]$ svn info --xml
[project]$ svn info --xml
[src]$ svn stat
[src]$ svn ls http://<redacted>/trunk --depth empty
[src]$ svn ls http://<redacted>/branches
[src]$ svn ls http://<redacted>/tags
svn: E170013: Unable to connect to a repository at URL 'http://<redacted>/tags'
svn: E215004: No more credentials or we tried too many times.
Authentication failed

svn: E170013: Unable to connect to a repository at URL '<redacted>/branches'
svn: E215004: No more credentials or we tried too many times.
Authentication failed

svn: E170013: Unable to connect to a repository at URL '<redacted>/trunk'
svn: E215004: No more credentials or we tried too many times.
Authentication failed

[project]$ svn info --xml

Please note, the errors disappear after I manually execute svn up in the working copy.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 40 (33 by maintainers)

Commits related to this issue

Most upvoted comments

Try remove files:

  • Windows: %APPDATA%\Subversion\auth\svn.simple\
  • Linux: ~/.subversion/auth/svn.simple/

Working on this now

@JohnstonCode, my idea:

  • For http:// and svn://, use the arguments --username and --password
  • For svn+ssh://, use sshpass -p

Flow: For commands without a remote query, do not use authentication, like, add, info, status (Note: check revion HEAD)

For commands with a remote query:

  • First check remote access: like svn info -r HEAD
  • If success, mark repository.ts authenticated, and run the other commands normally
  • If fail, prompt to user and store in repository.ts and run the other commands normally