hdevtools icon indicating copy to clipboard operation
hdevtools copied to clipboard

Sandbox support: dependencies not found

Open UnkindPartition opened this issue 11 years ago • 6 comments

When trying to run hdevtools in a cabal sandbox, I get this:

cannot satisfy -package-id aeson-0.7.0.6-0eee69c20a6ac37a1ed3f0a5b9fd0229:
    aeson-0.7.0.6-0eee69c20a6ac37a1ed3f0a5b9fd0229 is unusable due to missing or recursive dependencies:
      attoparsec-0.11.3.4-f914e42919eac942ba5e6ee1ac04790f hashable-1.2.2.0-0c662c50ab8227a1eba932300663cbb4 scientific-0.3.2.1-c6ed5dbaa429fdd1469cd78
c439876c9 unordered-containers-0.2.5.0-5e0d64c28dcd6c2a28787a3811ece1ea
    (use -v for more information)

Yet all of them are actually installed:

% cabal sandbox hc-pkg list  -- -v | grep -e aeson -e hashable -e attoparsec -e scientific -e unordered-containers
Timestamp 2014-10-03 08:20:16.482925464 UTC for /home/feuerbach/work/.cabal-sandbox/i386-linux-ghc-7.8.3-packages.conf.d/package.cache
Timestamp 2014-10-03 08:20:16 UTC for /home/feuerbach/work/.cabal-sandbox/i386-linux-ghc-7.8.3-packages.conf.d (older than cache)
Timestamp 2014-09-12 20:31:35.03885547 UTC for /opt/ghc783/lib/ghc-7.8.3/package.conf.d/package.cache
Timestamp 2014-09-12 20:31:34 UTC for /opt/ghc783/lib/ghc-7.8.3/package.conf.d (older than cache)
    aeson-0.7.0.6 (aeson-0.7.0.6-0eee69c20a6ac37a1ed3f0a5b9fd0229)
    attoparsec-0.11.3.4 (attoparsec-0.11.3.4-f914e42919eac942ba5e6ee1ac04790f)
    hashable-1.2.2.0 (hashable-1.2.2.0-0c662c50ab8227a1eba932300663cbb4)
    scientific-0.3.2.1 (scientific-0.3.2.1-c6ed5dbaa429fdd1469cd78c439876c9)
    unordered-containers-0.2.5.0 (unordered-containers-0.2.5.0-5e0d64c28dcd6c2a28787a3811ece1ea)

UnkindPartition avatar Oct 08 '14 07:10 UnkindPartition

cc @maximkulkin @schell

UnkindPartition avatar Oct 08 '14 07:10 UnkindPartition

That's funky - I'll try to recreate this. In the meantime please let me know if you figure it out. Just to be sure - is this from the newest version on hackage (0.1.0.6)?

schell avatar Oct 08 '14 17:10 schell

Correct.

UnkindPartition avatar Oct 08 '14 18:10 UnkindPartition

Not seeing the exact same error but close...ish, on OS X if that changes anything.

Resolving dependencies... Configuring hdevtools-0.1.0.6... Building hdevtools-0.1.0.6... Failed to install hdevtools-0.1.0.6 Build log ( /Users/mitch/.cabal/logs/hdevtools-0.1.0.6.log ): Configuring hdevtools-0.1.0.6... Building hdevtools-0.1.0.6... Preprocessing executable 'hdevtools' for hdevtools-0.1.0.6... : cannot satisfy -package-id network-2.4.2.3-57541a17504b3dfc275f08128becdafc (use -v for more information) cabal: Error: some packages failed to install: hdevtools-0.1.0.6 failed during the building phase. The exception was: ExitFailure 1

mitchty avatar Nov 22 '14 20:11 mitchty

@mitchty no, that's completely different. My error is about using hdevtools, yours is about compiling hdevtools. Moreover, this is a problem not with hdevtools but with your package database or cabal setup. Try asking for help on IRC.

UnkindPartition avatar Nov 22 '14 21:11 UnkindPartition

@feuerbach, can you tell me briefly how you're using hdevtools? Is your bug reproducible with a simple

hdevtools check Main.hs

I can't seem to reproduce this yet, but to be honest I usually use hdevtools along with its vim plugin.

schell avatar Nov 24 '14 21:11 schell