Giter VIP home page Giter VIP logo

Comments (7)

PavlosMelissinos avatar PavlosMelissinos commented on May 25, 2024 1

Good point, it's:

Cloning: [email protected]:org/private-repo-name.git

Enter passphrase for key '/home/pavlos/.ssh/id_ed25519': 

Like I said it only appears in the REPL nrepl-server buffer (and it's not interactive)
I've added it to the initial description too

from cider.

PavlosMelissinos avatar PavlosMelissinos commented on May 25, 2024 1

is your expected workflow entering the passphrase each time

I believe that depends on how the ssh agent is set up. So it doesn't happen always (I think) but:

  • when ssh-agent needs a passphrase I expect emacs/CIDER to ask for the user input correctly (magit-clone does so, so I assume it's caused by something that happens somewhere between the git and cider abstraction levels)
  • when a passphrase isn't necessary, I expect CIDER to be able to clone the repo and then start the REPL (neither happens in my case, CIDER gets stuck "waiting" for user input that will never come).

from cider.

PavlosMelissinos avatar PavlosMelissinos commented on May 25, 2024

In case anyone else is facing this, here are some workarounds:

  1. Spawn a standalone cider/nrepl server and cider-connect to it, as described in the docs
  2. Download the dependencies with clojure -P and then rerun cider-jack-in

(Many thanks to @vemv and @dpsutton from Clojurians slack for the suggestions)

from cider.

vemv avatar vemv commented on May 25, 2024

Hi!

Thanks much for the report.

I'll try to repro it, anyway could you please provide the exact prompt text?

from cider.

vemv avatar vemv commented on May 25, 2024

Are you able to git-clone the same repo using e.g. Magit?

If not, it could indicate a generalized issue in your Emacs setup, such that ssh-add isn't being correctly invoked.

Example:

[...] You can confirm this by running eval $(ssh-agent); ssh-add ~/.ssh/id_rsa in a terminal, and then in the same terminal emacs &.

That solution isn't exactly ergonomic, but it would be a start.

Please try that specific approach for CIDER and/or Magit, allowing us to discard hypotheses.

Thanks - V

from cider.

PavlosMelissinos avatar PavlosMelissinos commented on May 25, 2024

Are you able to git-clone the same repo using e.g. Magit?

Yes! If I delete the cache from .gitlibs and run magit-clone directly I get the correct prompt (same message but interactive)

from cider.

vemv avatar vemv commented on May 25, 2024

Thanks!

To be clear, is your expected workflow entering the passphrase each time? It would make sense, although perhaps in your terminal emulator you don't have to?

from cider.

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.