Giter VIP home page Giter VIP logo

Comments (6)

ragnard avatar ragnard commented on June 2, 2024

Hi,

I also encountered this issue when trying to deliver kibit as part of a jar with AOT-compiled code. I dug a little deeper and I think I have found the cause, but I can't explain it.

The exception I'm getting is the same as cemerick (slightly different class names):
https://gist.github.com/ragnard/5127767#file-exception

Looking at the disassembled bytecode for the kibit.rules.arithmetic__init class, I think we have the offending code at:
https://gist.github.com/ragnard/5127767#file-kibit-rules-arithmetic__init-L171

It loads the string constant #=(kibit.rules.util$compile_rule$fn__2052. ) and invokes read-string. However, the kibit.rules.util$compile_rule$fn__2052 class doesn't seem to have an empty constructor (as the exception indicates):
https://gist.github.com/ragnard/5127767#file-kibit-rules-util-compile_rule-fn__2052-L16

From what I can understand, either the generated class for compile-rule is wrong, or the generated call to the constructor. Not sure how this can happen.

from kibit.

jonase avatar jonase commented on June 2, 2024

I can reproduce this by running lein do clean, compile :all.

I'm not sure what's going on here. Any and all help is much appreciated.

from kibit.

jonase avatar jonase commented on June 2, 2024

It seems to be caused by these two lines. If the anonymous functions are removed everything compiles without errors. Anything unusual with this that I'm not seeing? Note that compile-rule runs at macro expansion time.

from kibit.

jonase avatar jonase commented on June 2, 2024

@ragnard I think this is fixed in master now. Could you try it?

from kibit.

danielcompton avatar danielcompton commented on June 2, 2024

This was fixed in master but is broken again now. git bisect suggests that 7f32703 reintroduced compilation problems, though they are different to the original issue.

from kibit.

danielcompton avatar danielcompton commented on June 2, 2024

Upgrading to core.logic fixes compilation errors. This will be brought in in #105.

from kibit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.