Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lein repl fails with "REPL server launch timed out" #43

Open
aeberts opened this issue Aug 19, 2019 · 3 comments
Open

lein repl fails with "REPL server launch timed out" #43

aeberts opened this issue Aug 19, 2019 · 3 comments

Comments

@aeberts
Copy link

aeberts commented Aug 19, 2019

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.zip from https://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 dev branch with git checkout -b dev
  • update project.clj to 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.sh and update config to match local setting
  • Copy dev-transactor.properties to datsys/config/local/dev-transactor.properties and update file to match local settings.
  • do lein repl in the datsys directory
  • 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.
@humorless
Copy link

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.

@KnowledgeGarden
Copy link

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.

@metasoarous
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants