yamafaktory / reflex-starter

A simple starter project for building Reflex applications with Stack.
BSD 3-Clause "New" or "Revised" License
36 stars 3 forks source link

Package identifiers not found on first build #1

Open BartAdv opened 8 years ago

BartAdv commented 8 years ago

First stack build invocation gave me:

Downloaded lts-5.11 build plan.    
Caching build plan
Fetched package index.
The following package identifiers were not found in your indices: alarmclock-0.2.0.9, conduit-extra-1.1.13.1, exact-real-0.12.1, flow-1.0.6, hpc-coveralls-1.0.4, hxt-css-0.1.0.2, twitter-conduit-0.1.3, uuid-1.3.12, uuid-types-1.0.3, vector-th-unbox-0.2.1.5

But I just reissued the command and it seems to be progressing. Not sure if it's related to stack itself or this project.

EDIT:

Build failed:

Running /home/bart/.stack/programs/x86_64-linux/ghcjs-0.2.0.20160409_ghc-7.10.2/bin/ghcjs-pkg --user --no-user-package-db --package-db /home/bart/.stack/snapshots/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb describe --simple-output data-default-class --expand-pkgroot exited with ExitFailure 1

ghcjs-pkg-0.2.0-7.10.2: cannot find package data-default-class

Running /home/bart/.stack/programs/x86_64-linux/ghcjs-0.2.0.20160409_ghc-7.10.2/bin/ghcjs-pkg --user --no-user-package-db --package-db /home/bart/.stack/snapshots/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb describe --simple-output prelude-extras --expand-pkgroot exited with ExitFailure 1

ghcjs-pkg-0.2.0-7.10.2: cannot find package prelude-extras

Running /home/bart/.stack/programs/x86_64-linux/ghcjs-0.2.0.20160409_ghc-7.10.2/bin/ghcjs-pkg --user --no-user-package-db --package-db /home/bart/.stack/snapshots/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb describe --simple-output polyparse --expand-pkgroot exited with ExitFailure 1

ghcjs-pkg-0.2.0-7.10.2: cannot find package polyparse

Running /home/bart/.stack/programs/x86_64-linux/ghcjs-0.2.0.20160409_ghc-7.10.2/bin/ghcjs-pkg --user --no-user-package-db --package-db /home/bart/.stack/snapshots/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb describe --simple-output dependent-sum --expand-pkgroot exited with ExitFailure 1

ghcjs-pkg-0.2.0-7.10.2: cannot find package dependent-sum

Running /home/bart/.stack/programs/x86_64-linux/ghcjs-0.2.0.20160409_ghc-7.10.2/bin/ghcjs-pkg --user --no-user-package-db --package-db /home/bart/.stack/snapshots/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb describe --simple-output StateVar --expand-pkgroot exited with ExitFailure 1

ghcjs-pkg-0.2.0-7.10.2: cannot find package StateVar
yamafaktory commented 8 years ago

Hi @BartAdv and thank you for the feedback.

Can you please try to run stack upgrade --git and then give it a try again?

BartAdv commented 8 years ago

Hi, I'm using stack from git already, version 1.0.5.

yamafaktory commented 8 years ago

@BartAdv could you try to remove the compiler-check: match-exact on line #15 in the stack.yaml file?

BartAdv commented 8 years ago

Hm, it changed things, but rather in unexpected way:

Running /home/bart/.stack/programs/x86_64-linux/ghcjs-0.2.0.20160409_ghc-7.10.2/bin/ghcjs-pkg --user --no-user-package-db --package-db /home/bart/.stack/snapshots/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb describe --simple-output exceptions --expand-pkgroot exited with ExitFailure 1

ghcjs-pkg-0.2.0-7.10.2: cannot find package exceptions

Running /home/bart/.stack/programs/x86_64-linux/ghcjs-0.2.0.20160409_ghc-7.10.2/bin/ghcjs-pkg --user --no-user-package-db --package-db /home/bart/.stack/snapshots/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb describe --simple-output exception-transformers --expand-pkgroot exited with ExitFailure 1

ghcjs-pkg-0.2.0-7.10.2: cannot find package exception-transformers

Running /home/bart/.stack/programs/x86_64-linux/ghcjs-0.2.0.20160409_ghc-7.10.2/bin/ghcjs-pkg --user --no-user-package-db --package-db /home/bart/.stack/snapshots/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb describe --simple-output contravariant --expand-pkgroot exited with ExitFailure 1

ghcjs-pkg-0.2.0-7.10.2: cannot find package contravariant

More hints: I was using reflex with stack previously (loosely basing on https://github.com/luigy/try-stack-reflex) so maybe there is something in my ~/.stack directory that caused the issue?

yamafaktory commented 8 years ago

@BartAdv thanks for the feedback, seems that it could be related to your previous install. Definitely, try to remove your ~/.stack directory and also the .stack-work directory within the project's directory as explained here. You can also check your $PATH as per this section of the stack FAQ.

BartAdv commented 8 years ago

A bit closer (after clearing directories):

    Building distributive-0.5.0.2...
    Preprocessing library distributive-0.5.0.2...

    /tmp/stack27743/distributive-0.5.0.2/src/Data/Distributive.hs:42:8:
        Could not find module ‘Data.Tagged’
        Perhaps you haven't installed the "js" libraries for package ‘tagged-0.8.3@tagge_9au5ZluO165AFWgA7Twvlm’?
        Use -v to see a list of the files searched for.

--  While building package cpphs-1.19.3 using:
      /home/bart/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.22.4.0-ghcjs-0.2.0_ghc-7.10.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.4.0_ghcjs build --ghc-options " -ddump-hi -ddump-to-file"
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/bart/sources/reflex-starter/.stack-work/logs/cpphs-1.19.3.log

    Configuring cpphs-1.19.3...
    Building cpphs-1.19.3...
    Preprocessing library cpphs-1.19.3...

    /tmp/stack19195/cpphs-1.19.3/Language/Preprocessor/Cpphs/CppIfdef.hs:21:8:
        Could not find module ‘Text.Parse’
        Perhaps you haven't installed the "js" libraries for package ‘polyparse-1.11@polyp_Bxdx8Q4n5AC83gxZYplOqm’?
        Use -v to see a list of the files searched for.

Will check if my $PATH is correct later.

yamafaktory commented 8 years ago

@BartAdv did you manage to check your $PATH?

BartAdv commented 8 years ago

Not sure what exactly I should check. I've got 7.10.3 ghc in my $PATH.

On Fri, Apr 22, 2016 at 1:33 PM, Davy Duperron notifications@github.com wrote:

@BartAdv https://github.com/BartAdv did you manage to check your $PATH?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/yamafaktory/reflex-starter/issues/1#issuecomment-213387852

yamafaktory commented 8 years ago

Can you eventually try the commands listed in https://github.com/yamafaktory/reflex-starter/issues/2#issuecomment-213136381 ?

BartAdv commented 8 years ago

This doesn't really make sense in my setup, as the ghc 7.10.3 is locally installed by me so there are no directories for it either in stack/programs or int stack/snapshots/xxx/...

Ah wait, second comment, will do.

// EDIT:

This gives the same error as above.

yamafaktory commented 8 years ago

Could you tell me what is the output of stack exec -- ghcjs-pkg list Cabal?

BartAdv commented 8 years ago

list Cabal

/home/bart/.ghcjs/x86_64-linux-0.2.0-7.10.2/ghcjs/package.conf.d
   Cabal-1.22.4.0
/home/bart/.stack/snapshots/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb
/home/bart/sources/reflex-starter/.stack-work/install/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb

list

/home/bart/.ghcjs/x86_64-linux-0.2.0-7.10.2/ghcjs/package.conf.d:
    Cabal-1.22.4.0
    StateVar-1.1.0.3
    aeson-0.9.0.1
    array-0.5.1.0
    async-2.0.1.6
    attoparsec-0.13.0.1
    base-4.8.0.0
    binary-0.7.5.0
    rts-1.0
    bytestring-0.10.6.0
    case-insensitive-1.2.0.4
    containers-0.5.6.3
    contravariant-1.4
    data-default-0.5.3
    data-default-class-0.0.1
    data-default-instances-base-0.0.1
    data-default-instances-containers-0.0.1
    data-default-instances-dlist-0.0.1
    data-default-instances-old-locale-0.0.1
    deepseq-1.4.1.1
    dependent-map-0.2.1.0
    dependent-sum-0.3.2.1
    dependent-sum-template-0.0.0.4
    directory-1.2.2.0
    dlist-0.7.1.1
    exception-transformers-0.4.0.3
    exceptions-0.8.2.1
    extensible-exceptions-0.1.1.4
    filepath-1.4.0.0
    ghc-prim-0.4.0.0
    ghcjs-base-0.2.0.0
    ghcjs-prim-0.1.0.0
    hashable-1.2.3.2
    integer-gmp-0.5.1.0
    mtl-2.2.1
    old-locale-1.0.0.7
    old-time-1.1.0.3
    parallel-3.2.0.6
    polyparse-1.11
    prelude-extras-0.4.0.3
    pretty-1.1.3.2
    primitive-0.6.1.0
    process-1.2.3.0
    safe-0.3.9
    scientific-0.3.3.8
    semigroups-0.18.1
    stm-2.4.4
    syb-0.5.1
    tagged-0.8.3
    template-haskell-2.10.0.0
    text-1.2.1.1
    th-expand-syns-0.3.0.6
    th-extras-0.0.0.2
    th-lift-0.7.6
    th-orphans-0.13.0
    th-reify-many-0.1.4
    time-1.5.0.1
    transformers-0.4.3.0
    transformers-compat-0.4.0.4
    unix-2.7.1.0
    unordered-containers-0.2.5.1
    vector-0.11.0.0
    void-0.7.1

/home/bart/.stack/snapshots/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb:
    base-orphans-0.5.3
    reflection-2.1.2

/home/bart/sources/reflex-starter/.stack-work/install/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb:
    ghcjs-dom-0.2.3.1
    ref-tf-0.4
yamafaktory commented 8 years ago

Looks good to me (I have a similar output).

Try to run stack without using your local system installed GHC: stack build --no-system-ghc.

BartAdv commented 8 years ago

I've run that as per your request earlier today, with no luck.

yamafaktory commented 8 years ago

Sorry, you're right it was previously mentioned.

Can you finally try stack build --only-dependencies?

Afterward, if it still fails, I think the best option is to fill an issue directly in Stack.

yamafaktory commented 8 years ago

@BartAdv have you tried running the last suggested command?

BartAdv commented 8 years ago

Ah right, forgot there was one more suggestion there. Anyway, it's the same.

Curious, what does that info mean, I've noticed I haven't pasted the full logs before:

Ignoring that the GHCJS boot package "scientific" has a different version, 0.3.3.8, than the resolver's wanted version, 0.3.4.6
Ignoring that the GHCJS boot package "case-insensitive" has a different version, 1.2.0.4, than the resolver's wanted version, 1.2.0.6
Ignoring that the GHCJS boot package "hashable" has a different version, 1.2.3.2, than the resolver's wanted version, 1.2.4.0
Ignoring that the GHCJS boot package "async" has a different version, 2.0.1.6, than the resolver's wanted version, 2.1.0
Ignoring that the GHCJS boot package "text" has a different version, 1.2.1.1, than the resolver's wanted version, 1.2.2.1
Ignoring that the GHCJS boot package "syb" has a different version, 0.5.1, than the resolver's wanted version, 0.6
Ignoring that the GHCJS boot package "stm" has a different version, 2.4.4, than the resolver's wanted version, 2.4.4.1
Ignoring that the GHCJS boot package "parallel" has a different version, 3.2.0.6, than the resolver's wanted version, 3.2.1.0
Ignoring that the GHCJS boot package "dlist" has a different version, 0.7.1.1, than the resolver's wanted version, 0.7.1.2
Ignoring that the GHCJS boot package "pretty" has a different version, 1.1.3.2, than the resolver's wanted version, 1.1.2.0
Ignoring that the GHCJS boot package "containers" has a different version, 0.5.6.3, than the resolver's wanted version, 0.5.6.2
Ignoring that the GHCJS boot package "transformers" has a different version, 0.4.3.0, than the resolver's wanted version, 0.4.2.0
yamafaktory commented 8 years ago

@BartAdv thanks for the feedback. Well, I guess the best option is to fill an issue directly in Stack. If you do so, please let me know the result so that I can close this issue.

emmanueltouzery commented 8 years ago

I think I've hit a related issue or maybe even the same one, but without using reflex-starter. I've opened https://github.com/commercialhaskell/stack/issues/2495.

yamafaktory commented 8 years ago

@emmanueltouzery Thanks for opening an issue on the stack tracker!

tolysz commented 7 years ago

To summarize:

Is there anything else?