-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autotest doesn't reload files with reader conditionals #339
Comments
Thanks for reporting this - just ran into exactly the same issue. +1. |
Apologies for slowness, and also apologies for being ignorant of Clojurescript and conditional readers. I tried the following with Clojure 1.7: (ns scratch.core2
(:use midje.sweet)
(:require [scratch.core])
(:require [scratch.core :as generic]))
#?(:cljs (def foo "bar")
:clj (def foo "baz")) When I do
What am I doing wrong? |
Without the
|
@marick I believe reader conditionals are only allowed in files with the Here is a link to more resources |
I'd love to work on this issue. |
I use Midje to test a ClojureScript project, this is made possible with reader conditionals. Testing a .cljc file with pure Clojure content works as it should. But as soon as you involve reader conditionals, i.e. #?(..), with the namespace declaration Midje stops watching that file. Note that using reader conditionals further down the file (that doesn't involve ns) works perfectly fine.
Midje will run the tests successfully at init, the problem is that the source file isn't recompiled when changed. The file isn't listed in the print out "Loading (< namespaces >)" either.
Does anyone know what might be causing this?
The text was updated successfully, but these errors were encountered: