Skip to content

"Right Nothing" printed to the console during setup #2175

Closed

Description

@silky

with

>stack --version
Version 1.1.3, Git revision 8f7e62fbe3620a4b0ae5eb833cebfa50820f5050 x86_64 hpack-0.14.0

when i attempt a setup i see:

⚡ 05:37 PM noon ∈ ~>stack --resolver nightly-2016-05-13 setup
Run from outside a project, using implicit global project config
Using resolver: nightly-2016-05-13 specified on command line
Downloaded nightly-2016-05-13 build plan.    
Did not find .cabal file for servant-yaml-0.1.0.0 with Git SHA of d7c8a8eaf9e7c215433f8f39daac7fc6cf116325
Right Nothing
Did not find .cabal file for reducers-3.12.1 with Git SHA of bcebf11be1770ac480d9d0ee6238044f143a57f8
Right Nothing
Did not find .cabal file for math-functions-0.1.7.0 with Git SHA of 5870cda6259e8a838c8cb22043b9d3cbf55d9a8e
Right Nothing
Did not find .cabal file for hw-prim-0.0.0.10 with Git SHA of 3658e799df0b7fceb045899b7a3d686b960b5d01
Right Nothing
Did not find .cabal file for hspec-megaparsec-0.1.1 with Git SHA of 116c887f005a6e599dc9b6ce5627f1b69782f44b
Right Nothing
Did not find .cabal file for dixi-0.6.9.1 with Git SHA of 17cba908e23588d9e5b67541f53afd8590c5c30f
Right Nothing
Did not find .cabal file for cron-0.4.0 with Git SHA of d485877cb0e43ee1b8fcdaa0a7224acbd753186c
Right Nothing
stack will use a locally installed GHC
For more information on paths, see 'stack path' and 'stack exec env'
To use this GHC and packages outside of a project, consider using:
stack ghc, stack ghci, stack runghc, or stack exec

it's mildly unfortunate that Right Nothing is printed here.

introduced a few weeks ago by f483e82#diff-2068556e565acc62de252ac25ed550c4R288

Activity

  1. mgsloan commented on May 23, 2016

    @mgsloan
    Contributor

    Good point, fixed!

  2. mgsloan commented on May 30, 2016

    @mgsloan
    Contributor

    Then again, perhaps the root issue is not addressed - why are these SHAs missing?

  3. added this to the P2: Should milestone on May 31, 2016
  4. silky commented on Jun 1, 2016

    @silky
    ContributorAuthor

    i'm not too sure about that one.

    let me know if you want more information from me.

  5. mgsloan commented on Jun 1, 2016

    @mgsloan
    Contributor

    Oh yeah, to be clear that wasn't a request for more information. More like "this needs further investigation" :)

    The failure case here is just a fallback to the old behavior where cabal metadata wasn't fixed to a particular revision. So thankfully this shouldn't be very problematic in practice. Good to fix, though!

  6. schell commented on Jun 1, 2016

    @schell

    I seem to be running into a similar issue, though the output is a bit different - notably the "Left ..." result:

    > stack --version
    Version 1.1.2, Git revision cebe10e845fed4420b6224d97dcabf20477bbd4b (3646 commits) x86_64 hpack-0.14.0
    
    > stack build
    Downloading nightly-2016-05-20 build plan ...���������������������������������������������                                             ���������������������������������������������Downloaded nightly-2016-05-20 build plan.
    Updating package index Hackage (mirrored at https://s3.amazonaws.com/hackage.fpcomplete.com/00-index.tar.gz) ...����������������������������������������������������������������������������������������������������������������                                                                                                                ����������������������������������������������������������������������������������������������������������������Downloading package index from https://s3.amazonaws.com/hackage.fpcomplete.com/00-index.tar.gz
    Updating package index Hackage (mirrored at https://s3.amazonaws.com/hackage.fpcomplete.com/00-index.tar.gz) ...
    ����������������������������������������������������������������������������������������������������������������                                                                                                                ����������������������������������������������������������������������������������������������������������������Populating index cache ...��������������������������                          ��������������������������Populated index cache.
    Did not find .cabal file for zot-0.0.3 with Git SHA of f9092bae03d0044d2b4e3f33609c9544e8c46b19
    Left /root/.stack/indices/Hackage/git-update/all-cabal-hashes/.git/objects/pack: listDirectory: does not exist (No such file or directory)
    Did not find .cabal file for zlib-lens-0.1.2.1 with Git SHA of b5797267b30c16afcccbd42fa0ce4b9fa58a7ca9
    Left /root/.stack/indices/Hackage/git-update/all-cabal-hashes/.git/objects/pack: listDirectory: does not exist (No such file or directory)
    Did not find .cabal file for zlib-enum-0.2.3.1 with Git SHA of 5bb46141c62ea8a473a2cfac9293a018c804189a
    ...
    

    I'm using stack on bitbucket's new "pipelines" feature which executes stack from the haskell:7.10.3 docker image.

  7. schell commented on Jun 1, 2016

    @schell

    The result of using lts-5.2 is similar but different:

    stack build
    Downloading lts-5.2 build plan ...����������������������������������                                  ����������������������������������Downloaded lts-5.2 build plan.
    Updating package index Hackage (mirrored at https://s3.amazonaws.com/hackage.fpcomplete.com/00-index.tar.gz) ...����������������������������������������������������������������������������������������������������������������                                                                                                                ����������������������������������������������������������������������������������������������������������������Downloading package index from https://s3.amazonaws.com/hackage.fpcomplete.com/00-index.tar.gz
    Updating package index Hackage (mirrored at https://s3.amazonaws.com/hackage.fpcomplete.com/00-index.tar.gz) ...����������������������������������������������������������������������������������������������������������������                                                                                                                ����������������������������������������������������������������������������������������������������������������Populating index cache ...��������������������������                          ��������������������������Populated index cache.
    /opt/atlassian/bitbucketci/agent/build/.stack-work/downloaded/NC9VHrq5ky0p/: getDirectoryContents: does not exist (No such file or directory)
    
  8. simonmichael commented on Jun 12, 2016

    @simonmichael
    Contributor

    Another data point: I saw a bunch of these messages after upgrading stack (from 1.1.0 x86_64 hpack-0.13.0 to 1.1.2 x86_64 hpack-0.14.0) and running stack install. I did stack clean and they went away.

  9. sjakobi commented on Jul 6, 2016

    @sjakobi
    Member

    I see the Did not find .cabal file messages every time I build a project with a different (dev) version of stack.

    Edit: I actually see these messages also for other commands, like stack path.

  10. 35 remaining items

  11. lehtoj commented on Aug 10, 2016

    @lehtoj

    I've been using Visual Studio and SourceTree which don't need Git to be installed separately. Anyhow, I installed Git for Windows, deleted my stack_root directory, ran stack setup. Now it seems to work as intended, no more errors.

    Perhaps install documentation should mention requirement for Git?

  12. Blaisorblade commented on Aug 10, 2016

    @Blaisorblade
    Collaborator

    Perhaps install documentation should mention requirement for Git?

    #2469

    I've been using Visual Studio and SourceTree which don't need Git to be installed separately. Anyhow, I installed Git for Windows, deleted my stack_root directory, ran stack setup. Now it seems to work as intended, no more errors.

    Note these were warnings. Should you get further warnings of this kind, you can mostly ignore them—and we'll have a fix by next release.
    The real advantage with Git is that index updates will be much faster.

  13. lehtoj commented on Aug 10, 2016

    @lehtoj

    Noted. :) But the log does not really specify either way, Usually "The system cannot find the path specified." is treated as an error, so I just followed the suit since I didn't know better.

  14. added a commit that references this issue on Aug 13, 2016
    753a7db
  15. added a commit that references this issue on Aug 13, 2016
  16. dpwiz commented on Sep 16, 2016

    @dpwiz
    Contributor

    Receiving objects: 0% (3467/576096), 1.97 MiB | 19.00 KiB/s

    Ouch! I never experienced the problems that prompted this fix but can't proceed now.
    You'd better add something like --do-no-harm or --fix-2175 next time. Until then, gotta return to previous stack... 😔

  17. Blaisorblade commented on Sep 16, 2016

    @Blaisorblade
    Collaborator

    @wiz Is that your usual connection speed?

  18. dpwiz commented on Sep 19, 2016

    @dpwiz
    Contributor

    I hope not. It downloaded eventually, but in a pinch that got me nervous.

  19. dpwiz commented on Oct 20, 2016

    @dpwiz
    Contributor

    Now there's real pain. My CI have this restricted uplink and should start from scratch each time 😔

  20. sjakobi commented on Oct 20, 2016

    @sjakobi
    Member

    @wiz: Can't you cache the ~/.stack directory?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions