clojure-emacs / squiggly-clojure

Flycheck checker for Clojure, using eastwood and core.typed.
GNU General Public License v3.0
204 stars 25 forks source link

Nothing happens but errors #23

Closed timothypratley closed 9 years ago

timothypratley commented 9 years ago

After following the instructions, I just get errors:

Messages output



(fn NS)] of checker clojure-cider-typed failed: class clojure.lang.ArityException
Error from syntax checker clojure-cider-typed: Form #[257 \300\301"\207 [format (do (require 'squiggly-clojure.core) (squiggly-clojure.core/check-tc '%s))] 4 

(fn NS)] of checker clojure-cider-typed failed: class clojure.lang.ArityException```
timothypratley commented 9 years ago

nrepl-messages (<- err "ArityException Wrong number of args (3) passed to: jvm/analyze+eval clojure.lang.AFn.throwArity (AFn.java:429)\n" id "66" session "2b068ccd-5a92-408a-a892-1c62102db6d7" )

Is there a way I can trace this in the squiggly-clojure code?

timothypratley commented 9 years ago

The problem arises from typed clojure (below occurs just running check-ns

Start collecting algopop.leaderboardx.main
Start collecting algopop.leaderboardx.communication
ArityException Wrong number of args (3) passed to: jvm/analyze+eval  clojure.lang.AFn.throwArity (AFn.java:429)```
timothypratley commented 9 years ago

Upgrading to the latest typed clojure fails in a different way

  id  "18"
  out  "Initializing core.typed ...\n"
  session  "37f5ce11-4507-4e83-a8a1-25abf639e732"
)
(<-
  ex  "class java.lang.Exception"
  id  "18"
  root-ex  "class java.lang.Exception"
  session  "37f5ce11-4507-4e83-a8a1-25abf639e732"
  status  ("eval-error")
)
(<-
  err  "Exception There was previously an unrecoverable internal error while loading core.typed. Please restart your process.  clojure.core.typed.init/load-impl (init.clj:22)\n"
  id  "18"
  session  "37f5ce11-4507-4e83-a8a1-25abf639e732"
)

Closing this issue as it is not specific to squiggly

chadhs commented 7 years ago

one option for now is to disable core.typed checking in emacs; see here: https://github.com/clojure-emacs/squiggly-clojure/issues/48#issuecomment-317748464