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

Error message when hitting space bar #1242

Closed
mikail-khan opened this issue Mar 30, 2016 · 9 comments
Closed

Error message when hitting space bar #1242

mikail-khan opened this issue Mar 30, 2016 · 9 comments

Comments

@mikail-khan
Copy link

I'm running GNU Emacs version 24.5.1 and the following version of haskell-mode:

haskell-mode 20160330.629 installed A Haskell editing mode

I'm getting the following error when hitting the space bar in the editor:

Symbol's function definition is void: haskell-mode-contextual-space

@fosskers
Copy link

They removed that function, see #1182 .

The error goes away if you remove the binding to SPC in your .emacs.

@mikail-khan
Copy link
Author

Cool - I removed it from my .emacs - all is good again. Cheers.

@fosskers
Copy link

Mind you, pressing SPC after import no longer opens up the import completor. That completion hasn't worked for me for a while, so I guess there's no harm done. Do you know a good alternative for import completion?

@geraldus
Copy link
Contributor

@fosskers you don't use interactive Haskell mode, do you?

@fosskers
Copy link

fosskers commented Apr 1, 2016

As far as I know I do. My emacs bottom bar says (Haskell Interactive FlyC Helm), and I have (add-hook 'haskell-mode-hook 'interactive-haskell-mode) in my .emacs.

@geraldus
Copy link
Contributor

geraldus commented Apr 1, 2016

In this case if you will load your file into REPL C-c C-l Emacs will be able to autocomplete module name. This is not the same as contextual menu, but very close to that. I'm using company mode for completion and have stylish haskell enabled, I type import then company mode helps me with module names and finally stylish haskell aligns them.

@fosskers
Copy link

fosskers commented Apr 1, 2016

No, it doesn't do that anymore, even with a REPL open in emacs (that is my usual workflow). Maybe I'll try company.

@fosskers
Copy link

fosskers commented Apr 1, 2016

...my god, it's amazing. How haven't I been using this the whole time?

@gracjan
Copy link
Contributor

gracjan commented Apr 1, 2016

Hmm, it is even documented with beautiful animated gifs: http://haskell.github.io/haskell-mode/manual/latest/Editing-Haskell-Code.html#Completion-support

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

No branches or pull requests

4 participants