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

Build fails with lein check #4

Open
bsdinis opened this issue Aug 26, 2020 · 4 comments
Open

Build fails with lein check #4

bsdinis opened this issue Aug 26, 2020 · 4 comments

Comments

@bsdinis
Copy link

bsdinis commented Aug 26, 2020

Building with lein check fails, with a Reflection warning and a syntax warning on the current master (531ea9a).

The problem seems to be a missing variable txn/int-write-mops

$ lein check
Compiling namespace elle.graph
Reflection warning, elle/graph.clj:683:15 - call to method select can't be resolved (target class is unknown).
Compiling namespace elle.version-graph
Compiling namespace elle.history
Compiling namespace elle.util
Compiling namespace elle.set-add
Syntax error compiling at (elle/recovery.clj:102:10).
No such var: txn/int-write-mops

Full report at:
/tmp/clojure-17876742899113241601.edn
Failed.

Contents of the report:

{:clojure.main/message
 "Syntax error compiling at (elle/recovery.clj:102:10).\nNo such var: txn/int-write-mops\n",
 :clojure.main/triage
 {:clojure.error/phase :compile-syntax-check,
  :clojure.error/line 102,
  :clojure.error/column 10,
  :clojure.error/source "recovery.clj",
  :clojure.error/path "elle/recovery.clj",
  :clojure.error/class java.lang.RuntimeException,
  :clojure.error/cause "No such var: txn/int-write-mops"},
 :clojure.main/trace
 {:via
  [{:type clojure.lang.Compiler$CompilerException,
    :message "Syntax error compiling at (elle/recovery.clj:102:10).",
    :data
    {:clojure.error/phase :compile-syntax-check,
     :clojure.error/line 102,
     :clojure.error/column 10,
     :clojure.error/source "elle/recovery.clj"},
    :at [clojure.lang.Compiler analyze "Compiler.java" 6808]}
   {:type java.lang.RuntimeException,
    :message "No such var: txn/int-write-mops",
    :at [clojure.lang.Util runtimeException "Util.java" 221]}],
  :trace
  [[clojure.lang.Util runtimeException "Util.java" 221]
   [clojure.lang.Compiler resolveIn "Compiler.java" 7388]
   [clojure.lang.Compiler resolve "Compiler.java" 7358]
   [clojure.lang.Compiler analyzeSymbol "Compiler.java" 7319]
   [clojure.lang.Compiler analyze "Compiler.java" 6768]
   [clojure.lang.Compiler analyze "Compiler.java" 6745]
   [clojure.lang.Compiler$InvokeExpr parse "Compiler.java" 3888]
   [clojure.lang.Compiler analyzeSeq "Compiler.java" 7109]
   [clojure.lang.Compiler analyze "Compiler.java" 6789]
   [clojure.lang.Compiler analyze "Compiler.java" 6745]
   [clojure.lang.Compiler$InvokeExpr parse "Compiler.java" 3888]
   [clojure.lang.Compiler analyzeSeq "Compiler.java" 7109]
   [clojure.lang.Compiler analyze "Compiler.java" 6789]
   [clojure.lang.Compiler analyze "Compiler.java" 6745]
   [clojure.lang.Compiler$InvokeExpr parse "Compiler.java" 3888]
   [clojure.lang.Compiler analyzeSeq "Compiler.java" 7109]
   [clojure.lang.Compiler analyze "Compiler.java" 6789]
   [clojure.lang.Compiler analyzeSeq "Compiler.java" 7095]
   [clojure.lang.Compiler analyze "Compiler.java" 6789]
   [clojure.lang.Compiler analyze "Compiler.java" 6745]
   [clojure.lang.Compiler$BodyExpr$Parser parse "Compiler.java" 6120]
   [clojure.lang.Compiler$LetExpr$Parser parse "Compiler.java" 6436]
   [clojure.lang.Compiler analyzeSeq "Compiler.java" 7107]
   [clojure.lang.Compiler analyze "Compiler.java" 6789]
   [clojure.lang.Compiler analyzeSeq "Compiler.java" 7095]
   [clojure.lang.Compiler analyze "Compiler.java" 6789]
   [clojure.lang.Compiler analyze "Compiler.java" 6745]
   [clojure.lang.Compiler$BodyExpr$Parser parse "Compiler.java" 6120]
   [clojure.lang.Compiler$FnMethod parse "Compiler.java" 5467]
   [clojure.lang.Compiler$FnExpr parse "Compiler.java" 4029]
   [clojure.lang.Compiler analyzeSeq "Compiler.java" 7105]
   [clojure.lang.Compiler analyze "Compiler.java" 6789]
   [clojure.lang.Compiler analyzeSeq "Compiler.java" 7095]
   [clojure.lang.Compiler analyze "Compiler.java" 6789]
   [clojure.lang.Compiler access$300 "Compiler.java" 38]
   [clojure.lang.Compiler$DefExpr$Parser parse "Compiler.java" 596]
   [clojure.lang.Compiler analyzeSeq "Compiler.java" 7107]
   [clojure.lang.Compiler analyze "Compiler.java" 6789]
   [clojure.lang.Compiler analyze "Compiler.java" 6745]
   [clojure.lang.Compiler eval "Compiler.java" 7181]
   [clojure.lang.Compiler load "Compiler.java" 7636]
   [clojure.lang.RT loadResourceScript "RT.java" 381]
   [clojure.lang.RT loadResourceScript "RT.java" 372]
   [clojure.lang.RT load "RT.java" 459]
   [clojure.lang.RT load "RT.java" 424]
   [clojure.core$load$fn__6839 invoke "core.clj" 6126]
   [clojure.core$load invokeStatic "core.clj" 6125]
   [clojure.core$load doInvoke "core.clj" 6109]
   [clojure.lang.RestFn invoke "RestFn.java" 408]
   [clojure.core$load_one invokeStatic "core.clj" 5908]
   [clojure.core$load_one invoke "core.clj" 5903]
   [clojure.core$load_lib$fn__6780 invoke "core.clj" 5948]
   [clojure.core$load_lib invokeStatic "core.clj" 5947]
   [clojure.core$load_lib doInvoke "core.clj" 5928]
   [clojure.lang.RestFn applyTo "RestFn.java" 142]
   [clojure.core$apply invokeStatic "core.clj" 667]
   [clojure.core$load_libs invokeStatic "core.clj" 5989]
   [clojure.core$load_libs doInvoke "core.clj" 5969]
   [clojure.lang.RestFn applyTo "RestFn.java" 137]
   [clojure.core$apply invokeStatic "core.clj" 667]
   [clojure.core$require invokeStatic "core.clj" 6007]
   [clojure.core$require doInvoke "core.clj" 6007]
   [clojure.lang.RestFn invoke "RestFn.java" 457]
   [elle.set_add$eval568$loading__6721__auto____569
    invoke
    "set_add.clj"
    1]
   [elle.set_add$eval568 invokeStatic "set_add.clj" 1]
   [elle.set_add$eval568 invoke "set_add.clj" 1]
   [clojure.lang.Compiler eval "Compiler.java" 7177]
   [clojure.lang.Compiler eval "Compiler.java" 7166]
   [clojure.lang.Compiler load "Compiler.java" 7636]
   [clojure.lang.RT loadResourceScript "RT.java" 381]
   [clojure.lang.RT loadResourceScript "RT.java" 372]
   [clojure.lang.RT load "RT.java" 459]
   [clojure.lang.RT load "RT.java" 424]
   [clojure.core$load$fn__6839 invoke "core.clj" 6126]
   [clojure.core$load invokeStatic "core.clj" 6125]
   [clojure.core$load doInvoke "core.clj" 6109]
   [clojure.lang.RestFn invoke "RestFn.java" 408]
   [user$eval140$fn__151 invoke "form-init12736845212758803140.clj" 1]
   [user$eval140 invokeStatic "form-init12736845212758803140.clj" 1]
   [user$eval140 invoke "form-init12736845212758803140.clj" 1]
   [clojure.lang.Compiler eval "Compiler.java" 7177]
   [clojure.lang.Compiler eval "Compiler.java" 7167]
   [clojure.lang.Compiler load "Compiler.java" 7636]
   [clojure.lang.Compiler loadFile "Compiler.java" 7574]
   [clojure.main$load_script invokeStatic "main.clj" 475]
   [clojure.main$init_opt invokeStatic "main.clj" 477]
   [clojure.main$init_opt invoke "main.clj" 477]
   [clojure.main$initialize invokeStatic "main.clj" 508]
   [clojure.main$null_opt invokeStatic "main.clj" 542]
   [clojure.main$null_opt invoke "main.clj" 539]
   [clojure.main$main invokeStatic "main.clj" 664]
   [clojure.main$main doInvoke "main.clj" 616]
   [clojure.lang.RestFn applyTo "RestFn.java" 137]
   [clojure.lang.Var applyTo "Var.java" 705]
   [clojure.main main "main.java" 40]],
  :cause "No such var: txn/int-write-mops",
  :phase :compile-syntax-check}}
@stevana
Copy link
Contributor

stevana commented Oct 15, 2020

@aphyr: Can you publish jepsen.txn "0.1.3-SNAPSHOT" again? The current version doesn't have jepsen-io/jepsen@f590d4a , which is why compilation fails.

@aphyr
Copy link
Contributor

aphyr commented Oct 15, 2020

Done!

@stevana
Copy link
Contributor

stevana commented Oct 16, 2020

Thanks!

Building with lein check fails, with a Reflection warning and a syntax warning on the current master (531ea9a).

The problem seems to be a missing variable txn/int-write-mops

The problem with txn/int-write-mops is now fixed and lein check exits with 0, so I think we can close this issue.

(Regarding reflection warnings, I fixed some of them in #6.)

@ligurio
Copy link
Contributor

ligurio commented Dec 11, 2021

lein check works fine in d47ab9eb853e02c71f21e8abab0248fca0ac8a3d:

sergeyb@pony:~/sources/elle$ lein check                                                                                                                       
Compiling namespace elle.consistency-model
Compiling namespace elle.core
Compiling namespace elle.graph                                                 
Compiling namespace elle.list-append
Reflection warning, hiccup/util.clj:78:19 - call to static method encode on java.net.URLEncoder can't be resolved (argument types: java.lang.String, unknown).
Compiling namespace elle.rw-register
Compiling namespace elle.txn                                                                                                                                  Compiling namespace elle.util
Compiling namespace elle.viz
sergeyb@pony:~/sources/elle$ 

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

4 participants