lein REPL server launch timed out

后端 未结 3 1214
生来不讨喜
生来不讨喜 2021-02-18 21:54

in a liberator based clojure project we are using datomic as DB. After migrating our local dev DB to a S3 hosted one and adding the needed dependencies on our project.clj we can

相关标签:
3条回答
  • 2021-02-18 22:17

    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?

    0 讨论(0)
  • 2021-02-18 22:36

    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.

    0 讨论(0)
  • 2021-02-18 22:39

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

    :repl-options{:timeout 120000}
    
    0 讨论(0)
提交回复
热议问题