Skip to content

Compilation exceptions are not thread-safe #11

@algoterranean

Description

@algoterranean

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions