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

Cannot use agent in the REPL #28

Open
ftomassetti opened this issue Jul 18, 2014 · 4 comments
Open

Cannot use agent in the REPL #28

ftomassetti opened this issue Jul 18, 2014 · 4 comments

Comments

@ftomassetti
Copy link

Getting a CompilerException java.lang.ClassNotFoundException: clj-ssh.agent, compiling:(NO_SOURCE_PATH:1:1).

I am running from REPL, started using lein repl. clj-ssh is in my lein profile and ssh is resolved correctly (it fails authentication but I guess that is another issue)

@hugoduncan
Copy link
Collaborator

What is the code you are trying to run?

@ftomassetti
Copy link
Author

(ssh-agent {})

note that ssh works instead

@ftomassetti
Copy link
Author

user=> (clj-ssh.ssh-agent {})

CompilerException java.lang.ClassNotFoundException: clj-ssh.ssh-agent, compiling:(NO_SOURCE_PATH:1:1)
user=> (ssh-agent {})

CompilerException java.lang.RuntimeException: Unable to resolve symbol: ssh-agent in this context, compiling:(NO_SOURCE_PATH:1:1)

@hugoduncan
Copy link
Collaborator

Have you required clj-ssh.ssh or clj-ssh.cli?

(clj-ssh.ssh-agent {}) will give the error you are seeing as you are effectively invoking a class rather than a clojure function. (clj-ssh.ssh/ssh-agent {}) may be what you intended?

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

No branches or pull requests

2 participants