Giter VIP home page Giter VIP logo

Comments (14)

bendem avatar bendem commented on May 14, 2024 1

Can confirm, that works perfectly. Thanks for the quick fix.

from git-credential-keepassxc.

Frederick888 avatar Frederick888 commented on May 14, 2024

Could you please share the actual full path of your KPXC pipe? I seldom use Windows but IIRC the last time I tested it out and this path worked just alright.

from git-credential-keepassxc.

bendem avatar bendem commented on May 14, 2024

It's one of those two, no idea which one:

\\.\pipe\keepassxc-BENDEM.socket
\\.\pipe\org.keepassxc.KeePassXC.BrowserServer

from git-credential-keepassxc.

Frederick888 avatar Frederick888 commented on May 14, 2024

Ah, I get it.

It's the second one. But apparently under Windows since KPXC 2.6.0, not only has the name of the pipe been changed, but also the path. It used to be the one in the log that's relative to user's FOLDERID_LocalAppData. (I wonder what happens now when multiple users share the same machine though.)

It should be a minor fix but I haven't got the time to do it atm. You can try --socket for now.

from git-credential-keepassxc.

bendem avatar bendem commented on May 14, 2024

My guess is that \\.\pipe\ is somehow a user path, not sure exactly what it is hiding.

--socket works for configure, but get shows the original error message (file not found) with no more information when passing -vvv.

bendem> 'https://example.org' | git-credential-keepassxc.exe -vvv --socket '\\.\pipe\org.keepassxc.KeePassXC.BrowserServer' get
Jul 15 15:24:03.439 DEBG Subcommand: get
Jul 15 15:24:03.447 ERRO Le fichier spécifié est introuvable. (os error 2), Caused by: N/A, Message: Le fichier spécifié est introuvable. (os error 2)
[117.94 ms]

from git-credential-keepassxc.

Frederick888 avatar Frederick888 commented on May 14, 2024

Welp, guess we've got two bugs then lol. I'll see if I can have some time to figure it out tomorrow or the day after.

from git-credential-keepassxc.

bendem avatar bendem commented on May 14, 2024

No rush, thanks for taking the time to look into it!

from git-credential-keepassxc.

Frederick888 avatar Frederick888 commented on May 14, 2024

Actually I suspect that the get problem is related to configuration file rather than socket/pipe (gosh I need to improve logging). The default configuration path should be {FOLDERID_RoamingAppData}\git-credential-keepassxc under Windows. Can you confirm whether this file exists, and in case you are using something like Cygwin/MSYS/PowerShell/etc, can you also just try cmd instead?

Btw if configuration file path is indeed the reason you can manually specify the path using --config.

from git-credential-keepassxc.

bendem avatar bendem commented on May 14, 2024

I'm testing each time with cmd, powershell and wsl's host mount. Have not tested with WSL as guest since rust is globally broken there.

I have nothing related to git-credential-keepassxc under %APPDATA%.

from git-credential-keepassxc.

Frederick888 avatar Frederick888 commented on May 14, 2024

What about configuring with --config from scratch then?

And FOLDERID_RoamingAppData = %APPDATA%\Roaming not %APPDATA%

from git-credential-keepassxc.

bendem avatar bendem commented on May 14, 2024

%APPDATA%'s value is %USERPROFILE%\AppData\Roaming. Is the config format documented somewhere? What am I supposed to put in it?

from git-credential-keepassxc.

Frederick888 avatar Frederick888 commented on May 14, 2024

@bendem I meant starting from scratch and carrying those 2 arguments all way along.

# bash syntax here, not sure about CMD/PowerShell, and I don't think WSL would work at all
$ git-credential-keepassxc -vvv --config /path/to/wherever/git-credential-keepassxc --socket '\\.\pipe\org.keepassxc.KeePassXC.BrowserServer' configure
$ printf 'url=https://example.com\n' | git-credential-keepassxc -vvv --config /path/to/wherever/git-credential-keepassxc --socket '\\.\pipe\org.keepassxc.KeePassXC.BrowserServer' get

from git-credential-keepassxc.

bendem avatar bendem commented on May 14, 2024

Ah, I see the problem, I had refused to create the git group it asked for, and it's apparently a hard error that happens before saving the config. Really sorry about that, config system is working fine, just the path of the pipe is causing problems.

from git-credential-keepassxc.

Frederick888 avatar Frederick888 commented on May 14, 2024

Thank you very much for all the feedback! Could you please try issue-13 branch out to see if the default named pipe path problem is solved or not? You can either just checkout the branch and then cargo build or use cargo install --git https://github.com/Frederick888/git-credential-keepassxc.git --branch issue-13.

from git-credential-keepassxc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.