integrant

2020-10-29T20:54:14.045Z

@ericihli > Ohhh interesting. But... I thought to stop an http-kit server you just called it. > Yes absolutely, I forgot that Http-kit worked differently than Jetty. I made a repo with your code which works perfectly. Can you test and confirm that it's good for you too? https://github.com/PrestanceDesign/integrant-reloaded-workflow-example

2020-10-29T21:00:03.046600Z

I think it came from the fact that you called the two libraries Intregrant and Integrant-REPL in the same namespace. On the Integrant-REPL documentation, it is mentioned: > Require the integrant.repl namespace in your user.clj file ... Do you use Clojure Deps or Leiningen for your project?

Eric Ihli 2020-10-30T16:00:40.047800Z

Thanks for the help with this. The repo you linked does work for me. How did you come to the conclusion that the problem stems from having both integrant.core and integrant.repl in the same namespace? I don't understand what's going on for that to make the difference.

👍 1
Eric Ihli 2020-10-30T17:47:53.048Z

In trying to debug this, I'm confused as to why this isn't printing anything when I do a cider-ns-refresh.

(ns integrant.repl)
(defn suspend []
  (println state/system)
  (when state/system (ig/suspend! state/system))
  :suspended)

Eric Ihli 2020-10-30T17:59:33.048300Z

Ok... is this maybe related to how cider evaluates things? Because when I evaluate (suspend) from a buffer, it prints the system. But when it's called from cider-ns-refresh, nothing.

2020-10-30T18:19:59.048700Z

> How did you come to the conclusion that the problem stems from having both integrant.core and integrant.repl in the same namespace? As I use the test repo setup for other projects as well and it works so I tested your code in this way and it worked too. And if I went back, ie with "Integrant.REPL" in the same namespace then it didn't work anymore whether it was cider-ns-refresh and a direct call with (suspend) / (resume).

2020-10-30T18:30:28.049400Z

> I don't understand what's going on for that to make the difference. I don't know either. Hi @weavejester, maybe you can enlighten us ? :)