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

cljr-clean-ns: Wrong number of arguments: (0 . 0), 1 #386

Closed
robert-stuttaford opened this issue Jul 20, 2017 · 11 comments
Closed

cljr-clean-ns: Wrong number of arguments: (0 . 0), 1 #386

robert-stuttaford opened this issue Jul 20, 2017 · 11 comments
Milestone

Comments

@robert-stuttaford
Copy link
Contributor

Expected behavior

On invoking M-x clean-ns, the ns form is cleaned.

Actual behavior

On invoking M-x clean-ns, the following error message is displayed in the minibuffer:

cljr-clean-ns: Wrong number of arguments: (0 . 0), 1

Steps to reproduce the problem

Put this into a scratch.clj file in the root of your classpath, connect a REPL, and compile the buffer:

(ns scratch
  (:require [clojure.string :as str]))

Invoke M-x clean-ns.

Environment & Version information

clj-refactor.el version information

clj-refactor 2.4.0-SNAPSHOT (package: 20170608.320), refactor-nrepl 2.3.1

CIDER version information

CIDER 0.15.0snapshot (package: 20170719.1212), nREPL 0.2.12
Clojure 1.8.0, Java 1.8.0_121

Leiningen or Boot version

Leiningen 2.7.1 on Java 1.8.0_121 Java HotSpot(TM) 64-Bit Server VM

Emacs version

GNU Emacs 25.1.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1911)) of 2016-09-17

Operating system

macOS Sierra 10.12.5 (16F73)

@expez
Copy link
Member

expez commented Jul 20, 2017

This seems strange. Where's the argument to cljr-clean-ns coming from? You sure you didn't accidentally use a prefix argument, or that some other package adds one?

@malchmih
Copy link

Started happening to me recently too. Just using cljr-clean-ns as usual. Can it be somehow connected to clojure-emacs/refactor-nrepl@d56b676 (just a wild guess though)?

@expez expez closed this as completed in f5295df Jul 20, 2017
@robert-stuttaford
Copy link
Contributor Author

Thanks folks. @expez how do get the right bits onto my machine? I've redownloaded Maven deps and emacs packages, to no avail. Or do I need to keep my eyes peeled for a new release, or a new SNAPSHOT release?

@benedekfazekas
Copy link
Member

benedekfazekas commented Jul 21, 2017 via email

@expez
Copy link
Member

expez commented Jul 21, 2017

@robert-stuttaford you just need the last version of clj-refactor from melpa.

If you're already pinned to the latest (unstable release) then it might be an old .elc file like @benedekfazekas suggested.

Suppose we might cut a release soon, as this might hit more people as they upgrade.

@camdez
Copy link

camdez commented Jul 29, 2017

👍 for a new MELPA Stable release; I'm also getting bitten by this one. Thanks, all.

@benedekfazekas
Copy link
Member

@expez do you want to cut 2.3.2, or? i guess we could from current HEAD...

@benedekfazekas
Copy link
Member

benedekfazekas commented Aug 1, 2017

for the record duplicate of clojure-emacs/refactor-nrepl#204

@MartinSoto
Copy link

I continue to see 2.3.1 in MELPA Stable. Did you guys release a new version?

@benedekfazekas
Copy link
Member

no we have not I am afraid. 2.3.1 is still the latest stable. new version is available as latest snapshot only

@MartinSoto
Copy link

:-(

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

6 participants