Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

split-string(nil) in haskell-flymake-init #71

Closed
bremner opened this Issue Jul 28, 2012 · 4 comments

Comments

Projects
None yet
5 participants

bremner commented Jul 28, 2012

A Debian user writes

With this .emacs.el:

(require 'flymake)
(add-hook 'find-file-hook 'flymake-find-file-hook)

If I try to open any (new or existing) haskell file, for instance with
C-x C-x a.hs , it will give an error and not open the file.

The error logged in Messages is:

split-string: Wrong type argument: stringp, nil

I could reproduce this in emacs 23.4.1, and I got the following backtrace:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
string-match("[ \f \n
�]+" nil 0)
split-string(nil)
haskell-flymake-init()
flymake-start-syntax-check()
flymake-mode()
flymake-find-file-hook()
run-hooks(find-file-hook)
after-find-file(t t)
find-file-noselect-1(# "/b.hs" nil nil "/b.hs" nil)
find-file-noselect("/b.hs" nil nil t)
find-file("
/b.hs" t)
call-interactively(find-file nil nil)

ulises commented Jan 6, 2013

bump.

Member

chrisdone commented May 19, 2013

Will re-asses in one month and close if nobody wants to fix this. Marking blocked.

I'm getting a similar stacktrace, but mine is from buffer save:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  string-match("[ \f    \n
�]+" nil 0)
  split-string(nil)
  haskell-flymake-init()
  flymake-start-syntax-check()
  flymake-after-save-hook()
  run-hooks(after-save-hook)
  basic-save-buffer()
  save-buffer(1)
  call-interactively(save-buffer)
  ghc-save-buffer()
  call-interactively(ghc-save-buffer nil nil)
  command-execute(ghc-save-buffer)
Contributor

gracjan commented Feb 17, 2015

@chrisdone: this one seems to be fixed already, as the code says:

(let ((checker-elts (and haskell-saved-check-command
                       (split-string haskell-saved-check-command))))

so split-string is never called with nil. Close issue?

@gracjan gracjan removed the blocked label Mar 25, 2015

@gracjan gracjan closed this Mar 27, 2015

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