Coder Social home page Coder Social logo

Comments (8)

aphyr avatar aphyr commented on August 16, 2024

Reducers has been in Clojure for a decade... is it possible this is a lein clean problem?

from elle.

aphyr avatar aphyr commented on August 16, 2024

Oh, gosh, "Clojure 1.2.1"? That's fourteen years old, haha. That probably explains it!

from elle.

ligurio avatar ligurio commented on August 16, 2024

Oh, gosh, "Clojure 1.2.1"? That's fourteen years old, haha. That probably explains it!

It is really strange. JAR file runs Clojure 1.2.1, but version of the system-installed Clojure is 1.11.1.

[0] ~/sources/elle-cli/elle$ java -jar /home/sergeyb/sources/elle-cli/elle/target/elle-0.1.8-standalone.jar
Clojure 1.2.1
user=> 
[0] ~/sources/elle-cli/elle$ java -jar /home/sergeyb/sources/elle-cli/elle/target/elle-0.1.8-standalone.jar ^C
[0] ~/sources/elle-cli/elle$ clojure 
Clojure 1.11.1
user=> 

from elle.

aphyr avatar aphyr commented on August 16, 2024

from elle.

ligurio avatar ligurio commented on August 16, 2024

But Demo section in the README 1 describes a REPL...

Footnotes

  1. https://github.com/jepsen-io/elle#demo ↩

from elle.

ligurio avatar ligurio commented on August 16, 2024

Using elle with a standalone Clojure REPL doesn't work as well:

[0] ~/sources/elle-cli/elle$ clojure 
Clojure 1.11.1
user=> (require '[elle.list-append :as a]
            '[jepsen.history :as h])
Execution error (FileNotFoundException) at elle.list-append/eval142$loading (list_append.clj:1).
Could not locate clojure/tools/logging__init.class, clojure/tools/logging.clj or clojure/tools/logging.cljc on classpath.
user=> 

from elle.

aphyr avatar aphyr commented on August 16, 2024

Yeah, lein repl provides a REPL for any project and sets up the classpath with all the necessary libraries. You'll have to set up the classpath yourself if you don't want to use Leiningen for some reason.

from elle.

ligurio avatar ligurio commented on August 16, 2024

lein repl works fine:

[0] ~/sources/elle-cli/elle$ lein repl 
nREPL server started on port 42839 on host 127.0.0.1 - nrepl://127.0.0.1:42839
REPL-y 0.4.3, nREPL 0.6.0
Clojure 1.11.1
OpenJDK 64-Bit Server VM 11.0.21+9-post-Ubuntu-0ubuntu122.04
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
    Exit: Control+D or (exit) or (quit)
 Results: Stored in vars *1, *2, *3, an exception in *e

elle.core=> (require '[elle.list-append :as a]
       #_=>             '[jepsen.history :as h])
nil
elle.core=> 

I'll close a ticket, because the problem was due to library misuse.
@aphyr, thanks for help!

from elle.

Related Issues (17)

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.