Comments (5)
Which version of reply are you using? This was a bug fixed in 0.4.4 - details in #199
from reply.
Oh! I'm on 0.4.3, thanks!
While I have you here, I've been trying to work reply into my workflow with calva. Right now if I start a standalone nrepl, nrepl automatically chooses a port and exposes a port you can connect to, as well as making an .nrepl-port
file.
nREPL server started on port 60959 on host localhost - nrepl://localhost:60959
I may have missed this but I did not see how to mimic this when using reply, is this supported?
from reply.
Hmm, lein trampoline run
does use nREPL by default, and picks a random port. And then lein trampoline run --attach PORT_NUMBER
will let you attach to the same runtime.
I'm not sure there's currently a way to get that generated port number other than (a) doing the thing I did, where you lsof -nPi | grep java
and find the exposed port, or (b) if you're in the runtime, looking at (:port @reply.eval-modes.nrepl/nrepl-server)
. Details:
reply/src/clj/reply/eval_modes/nrepl.clj
Lines 156 to 169 in 4456223
I don't think I'd want us to write an .nrepl-port
file explicitly, since that naming responsibility seems like it belongs all together wherever it lives (sounds like in the nREPL codebase), but I'm open to having some config where you could tell REPLy something like --write-port-file "path/to/file"
? I'd defer to @bbatsov though.
from reply.
I'm going to go ahead & close this issue - feel free to open another (or a PR!) if the above answer doesn't get you what you need for connecting to a port!
from reply.
Thanks again for the help!
from reply.
Related Issues (20)
- TravisCI builds failing
- Move to compliment HOT 1
- Tests fail under JDK 9 HOT 1
- Bump nrepl version HOT 2
- Migration plans for nREPL 0.4+ HOT 1
- Add deps.edn for clj support? HOT 2
- Ensure integration tests cover nrepl startup HOT 1
- Bump to latest nrepl
- Ctrl-C does not interrupt computation in standalone mode HOT 3
- What's the entry point of REPLy for nREPL HOT 3
- Running reply from clj deps.edn blocks interrupting async calls
- Travis builds failing for openjdk6 and oraclejdk7 HOT 9
- Jline error on blink-matching-paren HOT 6
- --port 12345 causes ClassCastException in nrepl.server/start-server HOT 4
- No support for auto-resolved namepaced maps
- clojuredocs support is broken HOT 1
- Initialization code breaks `incomplete.core/resolve-class` HOT 1
- Is there a way to get an nREPL message log? HOT 6
- Multi-line form oddness in 'lein repl' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reply.