datsys
datsys copied to clipboard
lein repl fails with "REPL server launch timed out"
Hi!
I'm diving back into datsys after learning more about reagent and re-frame. The idea of having a data-driven datascript <-> datomic system is very appealing! Unfortunately, the project doesn't build out of the box when following the instructions in the readme.
Summary: Running the command lein repl results in a REPL server launch timed out error.
Steps to Reproduce:
- Download
datomic-free-0.9.5697.zipfromhttps://my.datomic.com/downloads/free - Install and start the datomic-free transactor on port 4334 (datomic starts correctly)
- Clone git repository from
https://github.com/metasoarous/datsys.git - Switch to
devbranch withgit checkout -b dev - update
project.cljto use[com.datomic/datomic-free "0.9.5697" :exclusions [joda-time org.slf4j/slf4j-nop com.google.guava/guava commons-codec]] - Copy env.sh to
datsys/config/local/env.shand update config to match local setting - Copy dev-transactor.properties to
datsys/config/local/dev-transactor.propertiesand update file to match local settings. - do
lein replin thedatsysdirectory - output:
➜ datsys git:(dev) lein repl
Warning: implicit hook found: lein-environ.plugin/hooks
Hooks are deprecated and will be removed in a future version.
WARN ignoring checkouts directory /Users/zand/dev/datsys/checkouts/datview as it does not contain a project.clj file.
WARN ignoring checkouts directory /Users/zand/dev/datsys/checkouts/datreactor as it does not contain a project.clj file.
WARN ignoring checkouts directory /Users/zand/dev/datsys/checkouts/datsync as it does not contain a project.clj file.
WARN ignoring checkouts directory /Users/zand/dev/datsys/checkouts/datspec as it does not contain a project.clj file.
REPL server launch timed out.
Expected Result:
- A clojure repl is started.
Actual Result:
- The repl server launch timed out.
I put something like:
;; (browser-repl) live.
:repl-options {:init-ns user
;should have this auto-gen
+ :timeout 380000
:port 11233}
to solve timeout problem. However, there are other problems.
It's late 2021, booting this on an ubuntu 18 box java 11 clojure 1.8.0 leiningen 2.8.1 Getting the same error; the final moments of the trace reads (WARN ignoring checkouts directory /home/jackpark/Projects/datsys-dev/checkouts/datview as it does not contain a project.clj file.) (WARN ignoring checkouts directory /home/jackpark/Projects/datsys-dev/checkouts/datsync as it does not contain a project.clj file.) (WARN ignoring checkouts directory /home/jackpark/Projects/datsys-dev/checkouts/datspec as it does not contain a project.clj file.) (WARN ignoring checkouts directory /home/jackpark/Projects/datsys-dev/checkouts/datreactor as it does not contain a project.clj file.) REPL server launch timed out.
Hi folks; Thanks for your queries and responses here.
@KnowledgeGarden You may want to try the :repl-options that @humorless pointed out. It's very likely just that the build is taking longer than expected and crapping out, but it sounds like @humorless was at least able to get past this particular issue.
Really, we need to migrate this template repository towards deps.edn and the official clojure/clj CLI. That should solve this issue, since it's really lein at fault here for trying to compile all of the code before launching the repl. The clj tooling launches the repl first, and then evaluates code as needed.
That having been said, there are very likely quite a few other issues here, and I haven't given this project much attention in the last few years, but I'd like to try and do a bit more work here in the coming months. Right now, most of my attention has been on some major new features for Oz, but I'll try to make a bit of bandwidth to help get things moving here again.
Thanks again