rikvdkleij / intellij-haskell

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

CTRL + SHIFT + P on mac do not give me type info #143

Closed fokot closed 7 years ago

zjhmale commented 7 years ago

Hi @fokot, can you give more details about this issue? e.g. code snippet and error log. I think Ctrl+Shift+P works fine for me, I'm also working with OSX.

screenshot

fokot commented 7 years ago

Thanks for quick response. I get message window saying Could not determine type for. But in the Event log is see

18:29   [project-stack-repl] command: :type-at /Users/Frantisek/haskell/schemeinterpreter/library/SchemeInterpreter/Parser.hs 64 1 64 8 oct2dig

18:29   [project-stack-repl] stdOut: oct2dig :: (Eq a, Num a) => String -> a
                    ^IntellijHaskell^

18:29   [project-stack-repl] errOut: 

18:29   [project-stack-repl] command: :loc-at /Users/Frantisek/haskell/schemeinterpreter/library/SchemeInterpreter/Parser.hs 64 1 64 7 oct2dig

18:29   [project-stack-repl] stdOut: /Users/Frantisek/haskell/schemeinterpreter/library/SchemeInterpreter/Parser.hs:(64,1)-(64,8)
                    ^IntellijHaskell^

18:29   [project-stack-repl] errOut: 
dogweather commented 7 years ago

I also get Could not determine info for. My event log shows errors like these:

[project-stack-repl] Stack repl is not yet available. Command was: :load /Users/robb/src/nv-statutes/app/Main.hs
zjhmale commented 7 years ago

Hi @fokot, I just downloaded your project but I can not reproduce your issue, Ctrl+Shift+P still works fine on my side.

screenshot

dogweather commented 7 years ago

@zjhmale Do you know what the error log message Stack repl is not yet available implies? I believe I've set the Stack executable correctly in the project structure.

zjhmale commented 7 years ago

Hi @dogweather, I think you should wait for the Stack REPL loading process finished, there should be a loading bar at the bottom of the IDE window. Or maybe you can remove the project from the project list and reimport it.

image

dogweather commented 7 years ago

Thanks @zjhmale - the process seems to fail, and it attempts to restart. It never gets as far as showing a loading bar. Investigating...

screen shot 2017-02-03 at 8 09 27 pm

rikvdkleij commented 7 years ago

@dogweather Did you read Getting started in Readme? Which version of Intellij do you use?

dogweather commented 7 years ago

hi @rikvdkleij Yep, I followed the readme, and I'm running Intellij Community Edition 2016.3.4:

screen shot 2017-02-08 at 1 03 21 am

I've got Stack and homebrew updated to the latest, and I've only worked on one or two haskell projects, and always through Stack.

rikvdkleij commented 7 years ago

@dogweather Which stack resolver version is defined in stack.yaml?

Stack repl is available if Intero and your project are successfully build.

dogweather commented 7 years ago

@rikvdkleij I think I might have found the problem: my global resolver settings vs. my project settings. I'm bumping everything up to lts-7.19 and recompiling & reinstalling.