Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVN prompts for login constantly #552

Closed
Zevensoft opened this issue Apr 15, 2019 · 16 comments
Closed

SVN prompts for login constantly #552

Zevensoft opened this issue Apr 15, 2019 · 16 comments

Comments

@Zevensoft
Copy link

  • VSCode Version: 1.33.0
  • OS Version: Linux x64 4.15.0-20-generic
  • Extension Version: 1.48.0
  • System Language: English
  • SVN Version: 1.9.7

Issue

vscode will ask for login credentials for every repository every few minutes, even if given correctly. Its very annoying when you're trying to do something and vscode keeps promping for information that has been given 50 times already.

Steps to Reproduce

  1. Open vscode on a folder that exists in the repository.
  2. Wait for SVN plugin to try to do something.

SVN Output

(For each repository)
[repo1]$ svn info --xml /datalocal/[redacted]
[repo1]$ svn: E170013: Unable to connect to a repository at URL 'http://[redacted]/repos/branches/[redacted]'
[repo1]$ svn: E215004: No more credentials or we tried too many times.
[repo1]$ Authentication failed

@MichaelSuen-thePointer
Copy link

Same problem here. VS Code runs on Debain 9 x64 hosted in VMWare virtual machine on Win10 1709

VSCode version: 1.33.1
Electron: 3.1.6
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Linux x64 4.9.0-8-amd64
SVN version: 1.9.5

It seems a svn stat or svn info in the background failed with network issue, then the extension cannot restore to the correct state and keeps asking credentials.

@Zastai
Copy link

Zastai commented Jun 27, 2019

I've had to disable the extension to avoid getting interrupted all the time.
This was on Debian 4.19.37-3, with VSCode 1.35.1 and extension 1.54.1.

(Also: it looks like the auth handling doesn't properly integrate with key stores. When I first run the command-line svn client, it will ask to unlock my Gnome keyring (I connect via SSH and that's not done automatically). The prompts in VSCode never did, suggesting they never tried to use the keyring.)

@DavidA2014
Copy link

If Gnome keyring isn't supported, the extension really isn't usable in our environment, which is a shame.

@edgardmessias
Copy link
Contributor

I am working on this issue to stop prompt login contantly, I will make a vsix to test

@edgardmessias
Copy link
Contributor

About GNOME Keyring, see #188

@edgardmessias
Copy link
Contributor

@DavidA2014
Copy link

@edgardmessias I do have 1.54.1 installed but I see:

[build]$ svn: E200009: Could not display info for all targets because some targets don't exist[<myrepo>]$ svn stat --xml --no-ignore --ignore-externals --show-updates
[<myrepo>]$ svn: E170013: Unable to connect to a repository at URL '<myrepo>'
[<myrepo>]$ svn: E215004: No more credentials or we tried too many times.
[<myrepo>]$ Authentication failed

@edgardmessias
Copy link
Contributor

My VSIX has a modification to test

edgardmessias added a commit to edgardmessias/svn-scm that referenced this issue Jun 27, 2019
@DavidA2014
Copy link

DavidA2014 commented Jun 27, 2019

Thanks, the modified vsix indeed seems to have fixed the issue. I did notice, however, that the extension doesn't seem to ignore ignored files:

$ svn: E200009: Could not display info for all targets because some targets don't exist
$ svn: warning: W155010: The node '<snip>/Release/CMakeFiles' was not found.

JohnstonCode added a commit that referenced this issue Jun 27, 2019
## [1.54.2](v1.54.1...v1.54.2) (2019-06-27)

### Bug Fixes

* Fixed prompts for login constantly (close [#552](#552)) ([#620](#620)) ([7b733ac](7b733ac))
@JohnstonCode
Copy link
Owner

🎉 This issue has been resolved in version 1.54.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@DavidA2014
Copy link

Thank you

@MichaelSuen-thePointer
Copy link

Thank you very much

@KennethScott
Copy link

Am I the only one this issue has reappeared for recently in 2.3.0? VSCode 1.41.1

@MichaelSuen-thePointer
Copy link

Am I the only one this issue has reappeared for recently in 2.3.0? VSCode 1.41.1

You are not alone, this issue still appear in my Linux virtual machine, but not on the host Windows. When the vm is unfocused for a while, this issue appears, a manual 'svn update' will resolve that, so Im not care about it any more.

@filipnis
Copy link

filipnis commented Jun 18, 2021

Am I the only one this issue has reappeared for recently in 2.3.0? VSCode 1.41.1

Same here ! Windows 10, extension version is 2.13.6. It is good extension, it helps a lot, but this is killing me since I have more then 10 projects on SVN and I need to put credentials constantly. Is there any solution ?

My mistake, sorry. One of those SVN projects had bad credentials (projects are from different SVN servers) and this extension was constantly asking me for credentials but for this SVN not for other. If there was some kind of info for which SVN repo extension was asking for credentials I would see this much earlier, maybe that can help.

@CalvinDay
Copy link

In Git, create a Personnel Access Token (PAT) with all access rights and when the Authentication screen pops up, use the PAT as password.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants