-
Notifications
You must be signed in to change notification settings - Fork 13
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
Setting :warn-on-reflection to false doesn't work #7
Comments
While at it, I suggest you make separate switches for reflection warnings in repl and compilation if this is feasible. e.g. |
@akaranta The implementation seems to be alright as per this: http://clojureclr.blogspot.in/2012/01/compiling-and-loading-in-clojureclr.html -- do you have a public project where I can see why it's failing? For different behavior during compilation and REPL, Leiningen profiles should be useful, for example: :profiles {:cc {:clr {:warn-on-reflection true}}
:cr {:clr {:warn-on-reflection false}}} alternatively, :profiles {:cc {:warn-on-reflection true}
:cr {:warn-on-reflection false}} C:\work>lein with-profile cc clr compile
C:\work>lein with-profile cr clr repl |
Unfortunately I don't have anything public you could use. But that does not matter - the problem is easily demonstrable by creating a new lein clr project and then compiling / starting repl on that. Do e.g. this in repl (def e (Exception. "foo")) and you will get a reflection warning printed. The only changes I did was to change the clojure clr to be fetched as a dependency and to use the latest version thereof. If you wish I can send you the project file. |
I tried to reproduce this error but am not able to. One pitfall you might want to watch out for is -- when you run If the above does not impact you, please share your |
You were right, I had changed the :warn-on-reflection key under the :clr Unhandled Exception: clojure.lang.Compiler+CompilerException: I attached the project file.
|
@akaranta I did not receive the |
Hi, Ok, here is the project.clj file again. I'll copy paste it inline, too, in (defproject foo "0.1.0-SNAPSHOT" |
Reported here: https://groups.google.com/forum/#!topic/clojure-clr/P98TZFSujb8
Also,
sample.project.clj
has no mention of:warn-on-reflection
and:unchecked-math
.The text was updated successfully, but these errors were encountered: