emacsclojureciderboot-clj

start boot task after cider-jack-in


After starting a boot project via cider-jack-in, how can I start a specific boot task?

In the repl (dir boot.user) reveals the tasks defined in build.boot. However, invoking one by e.g. (dev) has no effect, at least the ring server defined in that task can not be connected to. when using boot dev from the commandline, it works. The reason why I need to switch to cider-jack-in, is that it looks in the shell/cider-connect approach there is no way to print/log to an emacs buffer instead of to the default shell (which is mixed with all the compilation messages).


Solution

  • You need to execute

    (boot (dev)) 
    

    Calling (dev) will produce your task function which you need to pass to boot function for execution.