Skip to content
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

Compilation exceptions are not thread-safe #11

Open
algoterranean opened this issue Dec 29, 2014 · 1 comment
Open

Compilation exceptions are not thread-safe #11

algoterranean opened this issue Dec 29, 2014 · 1 comment

Comments

@algoterranean
Copy link

A lot of the time, when running lein clr compile :all (for example), and I get a compilation exception, the initial part of the error output is interwoven, as though the error output is not thread-safe. Perhaps this has to do with using apply over str or print on a lazy list?

For example:

/tmp/foo $ lein clr compile :all

MUisnshianngd fielledd OEuxtcVeaprt iion:
nS yclsastse cml.oIjOu.rFei.lleaNngo.tRFTo u(ntdyEpxec etpokteino n1:6 7C7o7u2l3d5)
not load file or assembly 'Clojure, Version=1.7.0.0, Culture=neutral, PublicKeyToken=cf3caecd327a2fa9' or one of its dependencies.
File name: 'Clojure, Version=1.7.0.0, Culture=neutral, PublicKeyToken=cf3caecd327a2fa9'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'Clojure, Version=1.7.0.0, Culture=neutral, PublicKeyToken=cf3caecd327a2fa9' or one of its dependencies.
File name: 'Clojure, Version=1.7.0.0, Culture=neutral, PublicKeyToken=cf3caecd327a2fa9'
1

When the expected output would be:

/tmp/foo $ lein clr compile :all
Missing field OutVar in class clojure.lang.RT (type token 16777235)

Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'Clojure, Version=1.7.0.0, Culture=neutral, PublicKeyToken=cf3caecd327a2fa9' or one of its dependencies.
File name: 'Clojure, Version=1.7.0.0, Culture=neutral, PublicKeyToken=cf3caecd327a2fa9'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'Clojure, Version=1.7.0.0, Culture=neutral, PublicKeyToken=cf3caecd327a2fa9' or one of its dependencies.
File name: 'Clojure, Version=1.7.0.0, Culture=neutral, PublicKeyToken=cf3caecd327a2fa9'
1

/edit P.S. This is on OSX, Mono 3.10.0 and on both lein-clr 0.2.1 and 0.2.2, looks like.

@kumarshantanu
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants