Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Open
bremner opened this Issue · 4 comments

5 participants

bremner Ulises Cervino Beresi Chris Done Tristan Sloughter gracjan
bremner

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 Cervino Beresi

bump.

Chris Done
Owner

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

Tristan Sloughter

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

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.