-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fails with "java.net.Socket cannot be cast to class java.lang.String" #40
Comments
Looking at the stacktrace, it seems to me some conversion is missing. Probably Lein does it somewhere, but we don't do it in the built-in CLI. |
The problem persists:
And the clj-http.client/parse-url line 170 is here https://github.com/dakrone/clj-http/blob/24d195596b6f1ace411f1a3690526338fca9e331/src/clj_http/client.clj#L170 Dear Santa 🎅! The 2020 wasn't that much of a fun. We'll call it quits if you help us make this bug 🐞 go disappear. PS: Just in case... we know where ❄️️ you live! #globalwarming |
Interestingly enough, it doesn't work properly with the latest leiningen. Old leiningen 2.9.0:
Current 2.9.5:
and it doesn't go past this point. |
Don't have much time for Drawbridge these days, so any help with debugging the problem would be appreciated. I'm assuming the problem with the latest lein might be related to the use of a newer version of nREPL, although I can't think of any particular change that might break this. |
Does this work with Lein 2.9.4? |
It works with #!/usr/bin/env bash
versions=(
'2.9.3'
'2.9.4'
# '2.9.5'
)
mkdir ~/bin/
for ver in "${versions[@]}"; do
wget -O ~/bin/lein-$ver https://raw.githubusercontent.com/technomancy/leiningen/$ver/bin/lein
chmod +x ~/bin/lein-$ver
lein-$ver repl :connect http://localhost:5555/repl
# press Ctrl-C for the next iteration
done Sorry that I didn't bisect it straight away it was past 3 a.m. |
Got it. Then it's likely something to do with nREPL 0.7. //cc @shen-tian |
@Bost Did you find a solution to this? I'm seeing it with lein 2.9.5. The client is flooding GET requests, but the repl never fully connects. I've verified 2.9.3 works (thanks so much for finding that). |
Perhaps overriding the default nREPL version will fix the problem? |
I want to connect to a remote nREPL server but the invocation fails:
deps.edn
:command:
output:
Execution error (ClassCastException) at clj-http.client/parse-url (client.clj:175).
class java.net.Socket cannot be cast to class java.lang.String (java.net.Socket and java.lang.String are in module java.base of loader 'bootstrap')
See the full output from clojure in this gist: https://gist.github.com/holyjak/7a644ef57bc17807ac18d22d820bbda7
Environment
It is quite likely I do something wrong but I have no idea what :(
It works with lein
Using leiningen 2.9 and
project.clj
:this works:
The text was updated successfully, but these errors were encountered: