Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flycheck-haskell fails to initialize when you have a cabal.config without 'with-compiler' #37

Closed
nkpart opened this issue Jun 2, 2015 · 1 comment
Labels

Comments

@nkpart
Copy link

nkpart commented Jun 2, 2015

I have projects with cabal.config files, that only specify constraints. In the latest version of flycheck-haskell, it fails to initialize while looking for with-compiler.

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  substring-no-properties(nil)
  flycheck-haskell-get-config-value(with-compiler)
  mapcar(flycheck-haskell-get-config-value (with-compiler))
  flycheck-haskell-parse-config-file((with-compiler) "/Users/nkpart/p/vlc/dredd/dredd/cabal.config")
  flycheck-haskell-get-cabal-config()
  flycheck-haskell-configure()
  run-hooks(flycheck-mode-hook flycheck-mode-on-hook)
  flycheck-mode()
  run-hooks(change-major-mode-after-body-hook prog-mode-hook haskell-mode-hook)
  apply(run-hooks (change-major-mode-after-body-hook prog-mode-hook haskell-mode-hook))
  run-mode-hooks(haskell-mode-hook)
  haskell-mode()
  set-auto-mode-0(haskell-mode nil)
  set-auto-mode()
  normal-mode()
  call-interactively(normal-mode record nil)
  command-execute(normal-mode record)
  helm-M-x(nil "normal-mode")
  call-interactively(helm-M-x nil nil)
  command-execute(helm-M-x)

@swsnr
Copy link
Contributor

swsnr commented Jun 2, 2015

@nkpart Fixed, and released as 0.7.2 on MELPA Stable. Thanks for reporting this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants