core.match

Match doesn't work when AOT compiled into a JAR, but manually macroexpanding and JAR'ing works fine.

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Code here:

https://gist.github.com/35fa11df7d7516abff50

Running lein uberjar on source containing the offending function, geo->svg, results in a non-working application.
However, if match is manually macroexpanded in the repl and the results pasted in, then the JAR works just fine.

Activity

Hide
Kevin Lynagh added a comment -

"non-working" meaning that the match always drops directly the :else clause.

Show
Kevin Lynagh added a comment - "non-working" meaning that the match always drops directly the :else clause.
Hide
Kevin Lynagh added a comment -

Updated code to minimal example. Problem persists with both Lein 1.7 and cake 0.6.3

Show
Kevin Lynagh added a comment - Updated code to minimal example. Problem persists with both Lein 1.7 and cake 0.6.3
Hide
David Nolen added a comment -

AOT bugs are a bit tricky to track down. Not sure how soon I'll be able to really dive into this one.

Show
David Nolen added a comment - AOT bugs are a bit tricky to track down. Not sure how soon I'll be able to really dive into this one.
Hide
David Nolen added a comment -

this AOT case at least is resolved on master.

Show
David Nolen added a comment - this AOT case at least is resolved on master.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: