clojure-emacs / clojure-mode

Emacs support for the Clojure(Script) programming language
907 stars 246 forks source link

clojure-test-mode mode specification errors #98

Closed proofit404 closed 11 years ago

proofit404 commented 11 years ago

I try to use clojure-test-mode and face with few problems.

First I try open test file with disconnected nREPL and without slime installation in my system.

I've got "File mode specification error: (void-function slime-connected-p)"

I think it wood be better to use something like "(when (fboundp 'slime-connected-p) (slime-connected-p))" in the minor mode definition.

After it happens I try to open emacs without open any files, start nREPL with `nrepl-jack-in' command and open my test file. I've got something like this:

File mode specification error: (wrong-type-argument stringp (lambda (&rest --cl-rest--) (apply (quote #[(G97112 G97113 G97114 G97115 G97116 response) "\306\307\"A\306\310\"A\306\311\"A\306\312\"A\306\313\"A\306\314\"A\306\315\"A\306\316\"A\211\203Y

When I try `clojure-test-run-tests' I've got message below

nrepl-netstring: Wrong type argument: stringp, (lambda (&rest --cl-rest--) (apply (quote #[(G97112 G97113 G97114 G97115 G97116 response) "ÆÇ\"AÆÈ\"AÆÉ\"AÆÊ\"AÆË\"AÆÌ\"AÆÍ\"AÆÎ\"A‰ƒY

What is this at all?!

If I use "(run-tests)" command directly in repl buffer it will process perfectly.

P.S. This is part of my .emacs file for clojure support:

(require 'clojure-mode) (require 'clojure-test-mode) (require 'nrepl) (add-hook 'clojure-mode-hook 'nrepl-interaction-mode)

technomancy commented 11 years ago

Are you using the master branch? It's a work in progress; you should definitely use the release.

proofit404 commented 11 years ago

Yes, it works in the release branch. But biggest lambda with a lot "--named--" parameters in debug buffer not better way to keep users calmness. May be it'll be better do such kind of things in the "dev" branch. Anyway thank you for your work.