lein REPL server launch timed out

社会主义新天地 提交于 2019-12-03 22:43:42

It can sometimes take a while for all the ducks to be in order. Specify :repl-options in your project.clj file with a longer time-out like this:

:repl-options {
             ;; If nREPL takes too long to load it may timeout,
             ;; increase this to wait longer before timing out.
             ;; Defaults to 30000 (30 seconds)
             :timeout 120000
             }

Hopefully that should do the trick.

Jaime Agudo

The reason was the multiple redefinition and evaluation of the Datomic connection among several files

(def conn (d/connect DATOMIC_URI))

The solution to this topic has been already discussed at How to deal with a variable in a library that needs to be set outside of it?

set timeout value in field :repl-options in project.clj,the default is 30000(30s). for example :

:repl-options{:timeout 120000}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!