boot-clj / boot

Build tooling for Clojure.
https://boot-clj.github.io/
Eclipse Public License 1.0
1.75k stars 180 forks source link

Client REPL Does Not Get Code Refresh using boot-refresh #646

Open mudgen opened 6 years ago

mudgen commented 6 years ago

Platform details

Platform (macOS, Linux, Windows): Windows 10 Platform version: Windows 10 Home, Version 1703, OS Build 15063.674 JRE/JDK version (java -version): JRE: "1.8.0_141"

Boot details

Boot version (2.7.1): 2.7.1 build.boot present? (yes/no): Yes ~/.boot/profile present? (yes/no): No Task name? (if applicable): watch

build.boot content (if applicable)

(task-options!
  pom {:project     'ignition-project
       :version     "1.0"
       :description "Fix me"
       :license     {"EPL" "http://www.eclipse.org/legal/epl-v10.html"}})

(set-env!
  :dependencies
  '[[org.clojure/clojure "1.8.0" :scope "provided"]  
    [onetom/boot-lein-generate "0.1.3" :scope "test"]
    [samestep/boot-refresh "0.1.0"]]
  :source-paths #{"src"})
(require '[samestep.boot-refresh :refer [refresh]])

(require '[boot.lein])
(boot.lein/generate)

Description

I want to be able to use the repl to test things while I write code. When I write code I want the repl to automatically reload code that changes.

I am trying to figure out how to get a clojure REPL that gets clojure code reloaded each time a source file changes.

I am executing this command on the command line: boot watch refresh repl -n ignition-project.core -p 6000 -s That creates a repl server that gets its code reloaded each time. This works! Yay.

I can make a client repl connection to the repl server. But when the source code changes the client repl does not get the code update. I have to close the client repl connection and make a new client repl connection to see the code changes. Is there anyway to make this work so that my client repl gets the code changes without having to close the client repl and start a new one?

Apparently boot-refresh only works with Emacs but does not work on a command line.

Any help with this is much appreciated.

Same issue here: https://github.com/samestep/boot-refresh/issues/5