Skip to content
New issue

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

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

Already on GitHub? # to your account

"stack ide start [my project]" isn't loading my modules #48

Closed
thomasjm opened this issue Aug 12, 2015 · 8 comments
Closed

"stack ide start [my project]" isn't loading my modules #48

thomasjm opened this issue Aug 12, 2015 · 8 comments
Assignees

Comments

@thomasjm
Copy link

I've been trying to get started with stack-mode in Emacs, but it's become clear that there's something wrong with my ide-backend/stack-ide setup. I've installed the latest versions of master branch of stack-ide and stack from Github. My project is called "hite", when I type stack ide start hite I get the following kind of output:

...
<- {"tag":"ResponseLog","contents":"[Info] Found ide-backend-server - using this one: /Users/tomm/.local/bin/ide-backend-server @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.RPC.Client ./IdeSession/RPC/Client.hs:343:5)\n"}
<- {"tag":"ResponseLog","contents":"[Debug] Recompile required, starting... @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update.ExecuteSessionUpdate ./IdeSession/Update/ExecuteSessionUpdate.hs:223:5)\n"}
<- {"tag":"ResponseUpdateSession","contents":{"tag":"UpdateStatusProgress","contents":{"progressOrigMsg":"[1 of 1] Compiling Paths_hite       ( /Users/tomm/hite/.stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/autogen/Paths_hite.hs, interpreted )","progressStep":1,"progressNumSteps":1,"progressParsedMsg":"Compiling Paths_hite"}}}
<- {"tag":"ResponseUpdateSession","contents":{"tag":"UpdateStatusDone","contents":[]}}
-> {"tag":"RequestGetSourceErrors","contents":[]}
<- {"tag":"ResponseGetSourceErrors","contents":[]}

It seems that ide-backend is not figuring out the structure of my project -- it's not loading or compiling any of the modules, and when it's asked for source errors it replies that there are none. My cabal file and project file are named the same as my project, as I saw in another thread. Can anyone help? Thanks!

@drwebb
Copy link

drwebb commented Aug 12, 2015

I've been having issues as well after upgrading a couple days ago, but haven't had the time to investigate myself. Currently back at my old emacs setup.

@bixuanzju
Copy link

Me too after I upgraded to stack version 0.1.3. I am afraid this is the issue on stack, since everything was fine to me using

$ stack --version
Version 0.1.2.7, Git revision 4fa8e0ca37f865e43514abfb81811e48da5eb3ec

@chrisdone
Copy link
Member

Yes, I'm reproducing too. Not sure what the cause is, looking into it.

@chrisdone chrisdone self-assigned this Aug 12, 2015
@chrisdone
Copy link
Member

Same result on a fresh project: http://lpaste.net/raw/5667254560192724992

@chrisdone
Copy link
Member

Fixed this in commercialhaskell/stack@f7c0a45. I caused a regression while fixing ghci in commercialhaskell/stack#498.

@bixuanzju
Copy link

@chrisdone I am still getting the same result with your fix.

@chrisdone
Copy link
Member

Did you reinstall stack?

@thomasjm
Copy link
Author

The fix works for me, ide-backend is compiling stuff now -- thanks @chrisdone !

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

No branches or pull requests

5 participants