syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.7k stars 4.9k forks source link

Haskell: completion with intero broken #12889

Closed magthe closed 3 years ago

magthe commented 5 years ago

Description :octocat:

intero doesn't to work as expected in the Haskell layer

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart:

Expected behaviour: :heart: :smile:

A few days ago intero worked just fine, I'd really like it to go back to that state :)

System Info :computer:

magthe commented 5 years ago

Oh, I should add that pgrep -a intero shows that intero is started.

radrow commented 4 years ago

I can confirm the issue. Also

Backtrace :paw_prints:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  string-match("\\." nil 0)
  split-string(nil "\\.")
  intero-ghci-output-flags()
  intero-start-process-in-buffer(#<buffer  intero:backend:latte /home/radek/Programowanie/Haskell/projects/latte> nil #<buffer StdLib.hs> nil)
  intero-get-worker-create(backend nil #<buffer StdLib.hs> nil)
  intero-restart()
  funcall-interactively(intero-restart)
  call-interactively(intero-restart nil nil)
  command-execute(intero-restart)
duianto commented 4 years ago

Confirmed.

But Spacemacs doesn't freeze for me.

The process-list SPC a p shows:

stack           8232    run      intero:back... --           stack ghci --with-ghc C:\Users\username\AppData\Roaming\stack\compiler-tools\x86_64-windows\ghc-8.6.5\bin/intero --docker-run-args=--interactive=true --no-build --no-load --ghci-options -ignore-dot-ghci

The messages buffer shows:

Disabling interactive-haskell-mode ... Booting up intero ... File local-variables error: (wrong-type-argument stringp nil)

It might be an upstream issue in flycheck. Because here's a recent thread with the same error message that doesn't mention Spacemacs. https://stackoverflow.com/questions/59058854/intero-error-wrong-type-argument-stringp-nil

(wrong-type-argument stringp nil)

Notes

It seems like intero is looking for new maintainers.

The intero project has reached the end of its life cycle. 🌇

I will not be maintaining it any longer. Minimal pull requests will be accepted for a few months. After which, I will archive the project. If an individual or group would like to fork take over the project, they are welcome to do so. I will update this README to point to those alternatives.

https://github.com/chrisdone/intero

System Info :computer:

radrow commented 4 years ago

The funny thing is it sometimes works, but rarely and I can't find the rule

radrow commented 4 years ago

Does the problem occur with dante in replacement of intero?

magthe commented 4 years ago

This is most likely unrelated, but I just need to whinge a little :grin:

I'm having other issues with haskell-mode right now too. The hook haskell-mode-hook isn't always running which means that not even LSP works in all cases :disappointed:

radrow commented 4 years ago

Dante works very well (despite missing some functionalities). It can be a temporary workaround

magthe commented 4 years ago

Dante works very well (despite missing some functionalities). It can be a temporary workaround

I did try it, but found it a very poor replacement. In particular I never got it to ever show me the type of anything :disappointed:

In the meantime, and quite possibly as a permanent replacement, I'm trying out LSP.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!