commercialhaskell / stack-ide

Stack-based JSON interface to ide-backend
98 stars 23 forks source link

Build failure #26

Closed cocreature closed 9 years ago

cocreature commented 9 years ago

Since some of the recent updates, I can't build anymore.

❯ stack clean && stack install \ 
    stack-ide \
    stack-ide-api \
    ../ide-backend/ide-backend \
    ../ide-backend/ide-backend-server \
    ../ide-backend/ide-backend-common
ide-backend-0.9.0.11-5cded247cc886febcbd4f3a5924e8e4d: unregistering (missing dependencies: ide-backend-common)
ide-backend-common-0.9.1.3-1a372712edcf55e106ed917a56c27cdd: unregistering (local file changes)
stack-ide-api-0.1.0.0-a74917f95b9c8d6d948594e4e274b4e7: unregistering (missing dependencies: ide-backend-common)
ide-backend-common-0.9.1.3: configure
ide-backend-common-0.9.1.3: build
ide-backend-common-0.9.1.3: install
ide-backend-0.9.0.11: configure
ide-backend-server-0.9.0: configure
ide-backend-0.9.0.11: build
stack-ide-api-0.1.0.0: configure
ide-backend-server-0.9.0: build
stack-ide-api-0.1.0.0: build
stack-ide-api-0.1.0.0: install
ide-backend-0.9.0.11: install
Progress: 4/5
--  While building package ide-backend-server-0.9.0 using:
      /usr/bin/runhaskell -package=Cabal-1.22.2.0 -clear-package-db -global-package-db -package-db=/home/moritz/.stack/snapshots/x86_64-linux/nightly-2015-06-28/7.10.1/pkgdb/ /home/moritz/code/haskell/ide-backend/ide-backend-server/Setup.hs --builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.2.0/ build --ghc-options -hpcdir .stack-work/dist/x86_64-linux/Cabal-1.22.2.0/hpc/.hpc/
    Process exited with code: ExitFailure 1
    Logs have been written to: "/home/moritz/code/haskell/stack-ide/.stack-work/logs/ide-backend-server-0.9.0.log"

    Configuring ide-backend-server-0.9.0...
    configuring rts...
    Configuring ide-backend-rts-0.1.3.1...
    building rts...
    Setup.hs: Run the 'configure' command first.

I am not sure if this is a stack error or an error in stack-ide.

I have the most recent versions of stack, stack-ide & ide-backend.

mgsloan commented 9 years ago

Hmm, what's the contents of /home/moritz/code/haskell/stack-ide/.stack-work/logs/ide-backend-server-0.9.0.log?

This is probably related building ide-backend-rts into ide-backend-server.

cocreature commented 9 years ago

Here it is

Configuring ide-backend-server-0.9.0...
configuring rts...
Configuring ide-backend-rts-0.1.3.1...
building rts...
Setup.hs: Run the 'configure' command first.

Doesn't look particularly enlightening to me.

mgsloan commented 9 years ago

Ah, by mistake I hadn't been building my stack-ide with the latest ide-backend, I can repro. I'm on it!

mgsloan commented 9 years ago

@cocreature I think I've fixed the issue with ide-backend. I've pushed a couple changes to master.

Can you please confirm that this is resolved?

cocreature commented 9 years ago

@mgsloan Thanks, it's working fine now.