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

clojurescript 0.0-2665 cannot compile austin 0.1.5 #72

Closed
yatesco opened this issue Jan 6, 2015 · 7 comments
Closed

clojurescript 0.0-2665 cannot compile austin 0.1.5 #72

yatesco opened this issue Jan 6, 2015 · 7 comments

Comments

@yatesco
Copy link

yatesco commented Jan 6, 2015

I have no idea at whose door to lay this, so apologies if this is nothing to with austin, but It currently fails with:

java.lang.IllegalArgumentException: Can't define method not in interfaces: _setup, compiling:(cemerick/austin.clj:315:1)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6651)
    at clojure.lang.Compiler.analyze(Compiler.java:6445)
    at clojure.lang.Compiler.analyze(Compiler.java:6406)
    at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5782)
    at clojure.lang.Compiler$LetExpr$Parser.parse(Compiler.java:6100)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6644)
    at clojure.lang.Compiler.analyze(Compiler.java:6445)
    at clojure.lang.Compiler.analyze(Compiler.java:6406)
    at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5782)
    at clojure.lang.Compiler$FnMethod.parse(Compiler.java:5217)
    at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3846)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6642)
    at clojure.lang.Compiler.analyze(Compiler.java:6445)
    at clojure.lang.Compiler.eval(Compiler.java:6700)
    at clojure.lang.Compiler.load(Compiler.java:7130)
    at clojure.lang.RT.loadResourceScript(RT.java:370)
    at clojure.lang.RT.loadResourceScript(RT.java:361)
    at clojure.lang.RT.load(RT.java:440)
    at clojure.lang.RT.load(RT.java:411)
    at clojure.core$load$fn__5066.invoke(core.clj:5641)
    at clojure.core$load.doInvoke(core.clj:5640)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at clojure.core$load_one.invoke(core.clj:5446)
    at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
    at clojure.core$load_lib.doInvoke(core.clj:5485)
    at clojure.lang.RestFn.applyTo(RestFn.java:142)
    at clojure.core$apply.invoke(core.clj:626)
    at clojure.core$load_libs.doInvoke(core.clj:5524)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invoke(core.clj:626)
    at clojure.core$require.doInvoke(core.clj:5607)
    at clojure.lang.RestFn.invoke(RestFn.java:457)
    at cemerick.austin.repls$eval14250$loading__4958__auto____14251.invoke(repls.clj:1)
    at cemerick.austin.repls$eval14250.invoke(repls.clj:1)
    at clojure.lang.Compiler.eval(Compiler.java:6703)
    at clojure.lang.Compiler.eval(Compiler.java:6692)
    at clojure.lang.Compiler.load(Compiler.java:7130)
    at clojure.lang.RT.loadResourceScript(RT.java:370)
    at clojure.lang.RT.loadResourceScript(RT.java:361)
    at clojure.lang.RT.load(RT.java:440)
    at clojure.lang.RT.load(RT.java:411)
    at clojure.core$load$fn__5066.invoke(core.clj:5641)
    at clojure.core$load.doInvoke(core.clj:5640)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at clojure.core$load_one.invoke(core.clj:5446)
    at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
    at clojure.core$load_lib.doInvoke(core.clj:5485)
    at clojure.lang.RestFn.applyTo(RestFn.java:142)
    at clojure.core$apply.invoke(core.clj:626)
    at clojure.core$load_libs.doInvoke(core.clj:5524)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invoke(core.clj:626)
    at clojure.core$require.doInvoke(core.clj:5607)
    at clojure.lang.RestFn.invoke(RestFn.java:805)
    at health.core.handler$eval12490$loading__4958__auto____12491.invoke(handler.clj:1)
    at health.core.handler$eval12490.invoke(handler.clj:1)
    at clojure.lang.Compiler.eval(Compiler.java:6703)
    at clojure.lang.Compiler.eval(Compiler.java:6692)
    at clojure.lang.Compiler.load(Compiler.java:7130)
    at clojure.lang.RT.loadResourceScript(RT.java:370)
    at clojure.lang.RT.loadResourceScript(RT.java:361)
    at clojure.lang.RT.load(RT.java:440)
    at clojure.lang.RT.load(RT.java:411)
    at clojure.core$load$fn__5066.invoke(core.clj:5641)
    at clojure.core$load.doInvoke(core.clj:5640)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at clojure.core$load_one.invoke(core.clj:5446)
    at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
    at clojure.core$load_lib.doInvoke(core.clj:5485)
    at clojure.lang.RestFn.applyTo(RestFn.java:142)
    at clojure.core$apply.invoke(core.clj:626)
    at clojure.core$load_libs.doInvoke(core.clj:5524)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invoke(core.clj:626)
    at clojure.core$require.doInvoke(core.clj:5607)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at figwheel_sidecar.core$resolve_ring_handler.invoke(core.clj:362)
    at figwheel_sidecar.core$start_server.invoke(core.clj:368)
    at figwheel_sidecar.auto_builder$autobuild.invoke(auto_builder.clj:40)
    at user$eval12482.invoke(form-init7327376784435165373.clj:1)
    at clojure.lang.Compiler.eval(Compiler.java:6703)
    at clojure.lang.Compiler.eval(Compiler.java:6693)
    at clojure.lang.Compiler.load(Compiler.java:7130)
    at clojure.lang.Compiler.loadFile(Compiler.java:7086)
    at clojure.main$load_script.invoke(main.clj:274)
    at clojure.main$init_opt.invoke(main.clj:279)
    at clojure.main$initialize.invoke(main.clj:307)
    at clojure.main$null_opt.invoke(main.clj:342)
    at clojure.main$main.doInvoke(main.clj:420)
    at clojure.lang.RestFn.invoke(RestFn.java:421)
    at clojure.lang.Var.invoke(Var.java:383)
    at clojure.lang.AFn.applyToHelper(AFn.java:156)
    at clojure.lang.Var.applyTo(Var.java:700)
    at clojure.main.main(main.java:37)
Caused by: java.lang.IllegalArgumentException: Can't define method not in interfaces: _setup
    at clojure.lang.Compiler$NewInstanceMethod.parse(Compiler.java:7984)
    at clojure.lang.Compiler$NewInstanceExpr.build(Compiler.java:7544)
    at clojure.lang.Compiler$NewInstanceExpr$DeftypeParser.parse(Compiler.java:7425)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6644)
    ... 93 more
@cemerick
Copy link
Owner

cemerick commented Jan 6, 2015

ClojureScript's underlying REPL APIs changed recently, so a lot of tools are going to be breaking for a while…

@yatesco
Copy link
Author

yatesco commented Jan 6, 2015

Hi Chas, I see - thanks for the prompt response. It does work with 0.0-2496
BTW.

On 6 January 2015 at 14:11, Chas Emerick notifications@github.com wrote:

ClojureScript's underlying REPL APIs changed recently, so a lot of tools
are going to be breaking for a while…


Reply to this email directly or view it on GitHub
#72 (comment).

@zarkone
Copy link

zarkone commented Jan 29, 2015

Same with:

[org.clojure/clojurescript "0.0-2727"]
[com.cemerick/austin "0.1.6"]

@cemerick
Copy link
Owner

add a direct dependency on piggieback 0.1.5 to resolve this. Austin will bump its piggieback dependency on the next release.

@zarkone
Copy link

zarkone commented Jan 29, 2015

I have [com.cemerick/piggieback "0.1.5"] in :dependencies, used it with weasel before..

@cemerick
Copy link
Owner

cemerick commented Feb 2, 2015

The piggieback version bump is available in 0.1.7-SNAPSHOT now, FYI.

@zarkone
Copy link

zarkone commented Feb 3, 2015

thanks! when i updated to 0.1.7-SNAPSHOT, nothing happened, i still got error. After some research i've noticed that i have

 [com.cemerick/austin "0.1.5"]
   [com.cemerick/piggieback "0.1.3"]

in root of lein deps :tree. I've tried to change the values of version or assert some things, but it didn't worked. It was because I had [com.cemerick/austin "0.1.6-local2-SNAPSHOT"] in
:profiles :dev :plugins. When i moved it to the root :plugins, i've got all my asserts, version bump and stacktrace about _setup disappeared from my local plugin.clj . all works now.

But I still cannot get

  • why I had old version in root dependency tree, from nowhere?
  • why the plugin does not hook up from :profiles :dev :plugins map, but only from root :plugins? i used to put dev plugins llike lein-figwheel in dev deps...

sorry if this questions are kind of noobish and hope it helps.

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

3 participants