I'm having trouble performing less-css-compile due to the code introduced in 225cb65. The error occurs inside of (compile on this line, and spits the following into the messages buffer:
mapcar: Wrong type argument: arrayp, nil
I'm taking a closer look at it now but my elisp skills are nil...
Aha! I found it. So it turns out that changing 'less-css-compile-error-regex to less-css-compile-error-regex on this line fixes the problem for me. Would that change still work for you?
No, it should be fine to include a symbol there in that list, and I didn't change it as part of #2. Can you please try "M-x toggle-debug-on-error", then reproduce the error and paste the resulting backtrace into this issue? (You can press "q" in the backtrace buffer afterwards to continue.)
Also, what's your emacs version?
I'm using Emacs Version 23.2 (9.0) on OSX Lion v10.7.2.
Here's the stack trace
Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
#[(item) "^h9\203\n^@^H \236A^P^HA@\30[...this goes on for a while and isn't pasteable…]" [item compilation-error-regexp-alist-alist fmt end-col end-line pat 2 3 4 nil 0 94 1 32 42 "^ *" functionp save-match-data compilation-compat-error-properties funcall quote cons match-string default-directory (compilation-error-face t) 5 error "HYPERLINK should be an integer: %s" append compilation-face [compilation-info-face compilation-warning-face compilation-error-face] (compilation-line-face nil t) (compilation-line-face nil t) (compilation-column-face nil t) (compilation-column-face nil t) 6 compilation-error-properties (append) type col line file] 18](less-css-compile-error-regex)
mapcar(#[(item) "�9\203[...this goes on for a while and isn't paste-able. Same as above line.]
compilation-start("lessc /Users/eboto/herp.less /tmp/herp.css" nil)
compile("lessc /Users/eboto/herp.less /tmp/herp.css")
call-interactively(less-css-compile nil nil)
Hmm. Odd. Would you mind putting your less source in a gist (or a mail: steve at sanityinc dot com) so I can try to duplicate this error?
Sure! It's actually nothing special -- just the test style from lesscss.org.
Would it be useful to have my .emacs? Maybe there's some sort of crazy interaction going on...
Ok I just commented out everything in my emacs and it worked. I'm going to go through uncommenting things until I find the offender.
Yeah, was just going to say that I tried downloading Emacs 23.3 and couldn't reproduce the error. Normally I use a nightly build from the latest Emacs source.
Actually…correction. When it was working I didn't realize I was using my patched non-symbol version. I just commented out the entire .emacs file except the following lines and it still gives me that same darned crash =(
(add-to-list 'load-path "~/.emacs.d/less-css-mode") ; location of my less-css-mode git clone
(add-hook 'less-css-mode-hook (lambda () (flymake-mode)))
Cool. I'll grab Emacs 23.2 and take a look.
BTW, you might like to use (flymake-mode t) in the hook to enable flymake rather than just (flymake-mode), since the latter is a toggle.
Fix incompatibility with compilation-mode in older Emacs versions (fi…
Please let me know if the latest changes fix things for you.
=D It works great! I also took your advice on the flymake-mode and will almost certainly be using your flymake coffee script plugin later on.
Thanks for all the help, Steve!
Great news. Thanks for your help too!