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

(wrong-number-of-arguments (4 . 4) 0) #57

Closed
DeadEarnest opened this issue Jun 11, 2019 · 3 comments
Closed

(wrong-number-of-arguments (4 . 4) 0) #57

DeadEarnest opened this issue Jun 11, 2019 · 3 comments

Comments

@DeadEarnest
Copy link

I looked at the previous issues with the same error, but was unable to find a solution.
I use cider-jack-in and get the following error while editing a Clojure source file:

Debugger entered--Lisp error: (wrong-number-of-arguments (4 . 4) 0)
#1028 "\301\303\304\305\302\300��$"\207" [clojure-cider-eastwood #[128 "\301\302\300�#\207" [[cl-struct-flycheck-syntax-check # clojure-cider-eastwood "7" "/mnt/sda2/work/code/clojure_noob/src/clojure_noob/"] apply flycheck-report-buffer-checker-status] 5 "\n\n(fn &rest ARGS)"] #[257 "\300\301�"\207" [format "(do (require 'squiggly-clojure.core) (squiggly-clojure.core/check-ew '%s))"] 4 "\n\n(fn NS)"] errored format "Form %s of checker %s failed: %s"] 11 "\n\n(fn BUFFER EX ROOTEX SESS)"
#[257 "\310�\311"\310�\312"\310�\313"\310�\314"\310�\315"\310��\316"\310��\317"\310��\320"\310� \321"\322\300!\203A

Tried this with [org.clojure/clojure "1.8.0"], [org.clojure/clojure "1.9.0"], [org.clojure/clojure "1.10.0"]. No warnings when I start the REPL. The startup message:

[nREPL] Starting server via /home/qwe/.local/bin/lein update-in :dependencies conj [acyclic/squiggly-clojure\ "0.1.9-SNAPSHOT"\ :exclusions\ [org.clojure/tools.reader]] -- update-in :dependencies conj [nrepl\ "0.6.0"] -- update-in :plugins conj [cider/cider-nrepl\ "0.22.0-beta4"] -- repl :headless :host localhost...

@pnf
Copy link
Contributor

pnf commented Jun 12, 2019

First, could you try disabling theclojure-cider-typed checker? There have been problems where a checker throws an exception and produces output that cider can't parse, and typed is the most fiddly of the checkers.
Also, if you're feeling generous, could you test out squiggly clojure on the sample-project in this repo?
Finally, what Package-Version' do you see in the flycheck-clojure.el` headers?

@DeadEarnest
Copy link
Author

Tested out sample-project, it worked OK. Then compared it's project.clj with mine project.clj, mine was lacking

:dependencies [[org.clojure/core.typed "0.5.3" :classifier "slim"]]

After I added this dependency, the problem was solved. Thanks for helping.

@pnf
Copy link
Contributor

pnf commented Jun 12, 2019 via email

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

2 participants