Giter Club home page Giter Club logo

Comments (6)

technomancy avatar technomancy commented on June 1, 2024

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.

winks avatar winks commented on June 1, 2024

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.

technomancy avatar technomancy commented on June 1, 2024

Ok, I see that you're running Leiningen 2.3.0. You need 2.3.3 for Grenchman.

from grenchman.

winks avatar winks commented on June 1, 2024

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 use grench eval and grench 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.

technomancy avatar technomancy commented on June 1, 2024

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.

winks avatar winks commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.