rikvdkleij / intellij-haskell

IntelliJ plugin for Haskell
https://rikvdkleij.github.io/intellij-haskell/
Apache License 2.0
1.31k stars 94 forks source link

How to get auto-complete to work? #545

Closed veqryn closed 4 years ago

veqryn commented 4 years ago

I'm learning Haskell, but proficient at other languages. I have installed all the pre-requisites, and was able to initialize a project structure using stack, as well as use ghc to compile a 'hello world' program and run it.

How do I get auto-complete to work?

I am expecting that if I define a variable or function, that if I start writing that function's name I can have it auto-complete. Right now, I don't get any completion. Does this plugin do that?

rikvdkleij commented 4 years ago

Does this plugin do that?

Yes, it should all work out-of-box when the REPLs are started in the background. Probably something went wrong and you can enable the Haskell event log to see what is going on. See the last but in https://github.com/rikvdkleij/intellij-haskell#getting-started

veqryn commented 4 years ago

It took me re-running through the whole setup a second time, plus marking every folder with my haskell code as a "Sources Root", before auto-complete would work. thanks!