Comments (6)
OK, so the main issue here is that you need two separate servers; one for project code and one for lein tasks. What you're doing is trying to re-use the project server as a Leiningen server, which doesn't work because your project doesn't know about Leiningen's namespaces.
The second example should work without setting GRENCH_PORT
if you run grench
from within the project dir.
But yeah, the error messages could probably be clearer here. Open to suggestions as to wording.
from grenchman.
Ok, thanks - that clears it up somewhat.
But the headless repl I started was inside a project dir - so what you explained sounded exactly the other way round.
When I run
lein repl :headless
and in the same dir
~/bin/grench-0.2.0-debian-7 eval '(println 23)'
then I still need GRENCH_PORT=1234
So basically running clojure code is fine, but I can't get lein to work over grench - at all, with any task
from grenchman.
Ok, I see that you're running Leiningen 2.3.0. You need 2.3.3 for Grenchman.
from grenchman.
OK, so I changed nothing and I got it to work somehow.
- Leiningen 2.3.3 was already used, see above, I tried 2.3.0 and 2.3.3
~ $ lein repl :headless
outside a project dir and I can usegrench eval
andgrench lein
anywhere, outside and inside a project dir~/project/ $ lein trampoline repl :headless
inside a project dir, nothing works, not even~/project/ $ grench lein version
from grenchman.
Right; launching a repl inside your project should not allow grench lein
to work, because how would your project know what to do with Leiningen tasks?
from grenchman.
Yeah, now I got it.
I have no clue how, but I totally misunderstood http://leiningen.org/grench.html versus what I had learnt from IRC earlier - maybe my expectations were completely off.
So maybe the only thing is missing is a "why should I use it" paragraph on that page. Basically like the repo README.
Case closed, all is fine.
Thanks for your patience :)
(But it really did misbehave at the start, still confused a little)
from grenchman.
Related Issues (20)
- Implement completion in Repl module HOT 2
- Run code from stdin when no args are given
- Fall back to dumb input when libreadline is missing HOT 1
- Persist history between sessions
- Multiline input HOT 4
- Sort out build issues HOT 1
- interrupts don't seem to work HOT 1
- Installation on OSX HOT 2
- Needed libraries not found from OSX binary HOT 8
- Support for remote hosts HOT 1
- Running leiningen tasks doesn't work in a project-local REPL HOT 3
- Debian Jessie now uses libffi6 instead of 5 HOT 1
- Precompiled binaries cannot be downloaded from S3 HOT 18
- libffi not found on OSX Yosemite
- Grench lein broken? HOT 17
- Port repl to lambda-term HOT 3
- ~/.inputrc setting 'set editing-mode vi' ignored HOT 1
- Exit code on exceptions HOT 4
- Cannot build
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 grenchman.