Skip to content

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

@bremner

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions