mapcar: Wrong type argument: arrayp, nil #3

Closed
eboto opened this Issue Nov 16, 2011 · 14 comments

Comments

Projects
None yet
2 participants
@eboto

eboto commented Nov 16, 2011

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...

@eboto

This comment has been minimized.

Show comment Hide comment
@eboto

eboto Nov 16, 2011

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?

eboto commented Nov 16, 2011

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?

@purcell

This comment has been minimized.

Show comment Hide comment
@purcell

purcell Nov 17, 2011

Owner

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.)

Owner

purcell commented Nov 17, 2011

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.)

@purcell

This comment has been minimized.

Show comment Hide comment
@purcell

purcell Nov 17, 2011

Owner

Also, what's your emacs version?

Owner

purcell commented Nov 17, 2011

Also, what's your emacs version?

@eboto

This comment has been minimized.

Show comment Hide comment
@eboto

eboto Nov 17, 2011

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-mode-font-lock-keywords()
  font-lock-eval-keywords(compilation-mode-font-lock-keywords)
  font-lock-set-defaults()
  font-lock-mode-internal(t)
  font-lock-default-function(t)
  font-lock-mode()
  turn-on-font-lock()
  run-hooks(compilation-turn-on-font-lock)
  apply(run-hooks compilation-turn-on-font-lock)
  run-mode-hooks(compilation-turn-on-font-lock)
  compilation-setup()
  compilation-mode()
  compilation-start("lessc /Users/eboto/herp.less /tmp/herp.css" nil)
  compile("lessc /Users/eboto/herp.less /tmp/herp.css")
  less-css-compile()
  call-interactively(less-css-compile nil nil)

eboto commented Nov 17, 2011

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-mode-font-lock-keywords()
  font-lock-eval-keywords(compilation-mode-font-lock-keywords)
  font-lock-set-defaults()
  font-lock-mode-internal(t)
  font-lock-default-function(t)
  font-lock-mode()
  turn-on-font-lock()
  run-hooks(compilation-turn-on-font-lock)
  apply(run-hooks compilation-turn-on-font-lock)
  run-mode-hooks(compilation-turn-on-font-lock)
  compilation-setup()
  compilation-mode()
  compilation-start("lessc /Users/eboto/herp.less /tmp/herp.css" nil)
  compile("lessc /Users/eboto/herp.less /tmp/herp.css")
  less-css-compile()
  call-interactively(less-css-compile nil nil)

@purcell

This comment has been minimized.

Show comment Hide comment
@purcell

purcell Nov 17, 2011

Owner

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?

Owner

purcell commented Nov 17, 2011

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?

@eboto

This comment has been minimized.

Show comment Hide comment
@eboto

eboto Nov 17, 2011

Sure! It's actually nothing special -- just the test style from lesscss.org.

@color: #4D926F;

#header {
  color: @color;
}
h2 {
  color: @color;
}

eboto commented Nov 17, 2011

Sure! It's actually nothing special -- just the test style from lesscss.org.

@color: #4D926F;

#header {
  color: @color;
}
h2 {
  color: @color;
}
@eboto

This comment has been minimized.

Show comment Hide comment
@eboto

eboto Nov 17, 2011

Would it be useful to have my .emacs? Maybe there's some sort of crazy interaction going on...

eboto commented Nov 17, 2011

Would it be useful to have my .emacs? Maybe there's some sort of crazy interaction going on...

@eboto

This comment has been minimized.

Show comment Hide comment
@eboto

eboto Nov 17, 2011

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.

eboto commented Nov 17, 2011

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.

@purcell

This comment has been minimized.

Show comment Hide comment
@purcell

purcell Nov 17, 2011

Owner

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.

Owner

purcell commented Nov 17, 2011

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.

@eboto

This comment has been minimized.

Show comment Hide comment
@eboto

eboto Nov 17, 2011

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
(require 'less-css-mode)
(add-hook 'less-css-mode-hook (lambda () (flymake-mode)))

eboto commented Nov 17, 2011

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
(require 'less-css-mode)
(add-hook 'less-css-mode-hook (lambda () (flymake-mode)))
@purcell

This comment has been minimized.

Show comment Hide comment
@purcell

purcell Nov 17, 2011

Owner

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.

Owner

purcell commented Nov 17, 2011

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.

@purcell purcell closed this in 89d8817 Nov 17, 2011

@purcell

This comment has been minimized.

Show comment Hide comment
@purcell

purcell Nov 17, 2011

Owner

Please let me know if the latest changes fix things for you.

Owner

purcell commented Nov 17, 2011

Please let me know if the latest changes fix things for you.

@eboto

This comment has been minimized.

Show comment Hide comment
@eboto

eboto Nov 17, 2011

=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!

eboto commented Nov 17, 2011

=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!

@purcell

This comment has been minimized.

Show comment Hide comment
@purcell

purcell Nov 17, 2011

Owner

Great news. Thanks for your help too!

Owner

purcell commented Nov 17, 2011

Great news. Thanks for your help too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment