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

--port 12345 causes ClassCastException in nrepl.server/start-server #199

Closed
hoxu opened this issue Mar 6, 2020 · 4 comments
Closed

--port 12345 causes ClassCastException in nrepl.server/start-server #199

hoxu opened this issue Mar 6, 2020 · 4 comments
Labels

Comments

@hoxu
Copy link

hoxu commented Mar 6, 2020

$ ... -m reply.main --port 12345
ClassCastException class java.lang.String cannot be cast to class java.lang.Number (java.lang.String and java.lang.Number are in module java.base of loader 'bootstrap')
        nrepl.server/start-server/addr--53094 (server.clj:120)
        nrepl.server/start-server (server.clj:128)
        nrepl.server/start-server (server.clj:96)
        reply.eval-modes.nrepl/get-connection (nrepl.clj:158)
        reply.eval-modes.nrepl/get-connection (nrepl.clj:156)
        reply.eval-modes.nrepl/main (nrepl.clj:202)
        reply.eval-modes.nrepl/main (nrepl.clj:200)
        reply.main/launch-nrepl/fn--54332 (main.clj:79)
        clojure.core/with-redefs-fn (core.clj:7514)
        clojure.core/with-redefs-fn (core.clj:7498)
        reply.main/launch-nrepl (main.clj:78)
        reply.main/launch-nrepl (main.clj:72)
@bbatsov bbatsov added the bug label Mar 6, 2020
@bbatsov
Copy link
Collaborator

bbatsov commented Mar 6, 2020

Seems we're missing a string conversion somewhere. That should be pretty easy to fix.

@trptcolin
Copy link
Owner

This might just be a README bug - I see the README is specifying an old version for the clojure -Sdeps invocation (https://github.com/trptcolin/reply/blob/bb6bdf468526191819ca9766a10968edb8d37430/README.md#clojure-cli-toolsdeps). I can reproduce w/ that old version (0.4.3), but not with 0.4.4. I think this was fixed by #198

@hoxu can you confirm whether that's the case for you?

Assuming that's right, I think we should probably just be more generic in the clj-deps advice, and remove the version number.

@bbatsov
Copy link
Collaborator

bbatsov commented Mar 6, 2020

@trptcolin Great catch! I had forgotten my own fix! :D

@hoxu
Copy link
Author

hoxu commented Mar 10, 2020

I can confirm --port 12345 works with 0.4.4.

The README should probably be fixed!

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

No branches or pull requests

3 participants