You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Right Nothing" printed to the console during setup #2175
>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.
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!
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.
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)
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.
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?
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.
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.
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... 😔
Activity
Remove debug info from default output #2175
mgsloan commentedon May 23, 2016
Good point, fixed!
mgsloan commentedon May 30, 2016
Then again, perhaps the root issue is not addressed - why are these SHAs missing?
silky commentedon Jun 1, 2016
i'm not too sure about that one.
let me know if you want more information from me.
mgsloan commentedon Jun 1, 2016
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!
schell commentedon Jun 1, 2016
I seem to be running into a similar issue, though the output is a bit different - notably the "Left ..." result:
I'm using stack on bitbucket's new "pipelines" feature which executes stack from the haskell:7.10.3 docker image.
schell commentedon Jun 1, 2016
The result of using lts-5.2 is similar but different:
simonmichael commentedon Jun 12, 2016
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.
sjakobi commentedon Jul 6, 2016
I see the
Did not find .cabal filemessages 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.35 remaining items
lehtoj commentedon Aug 10, 2016
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?
Blaisorblade commentedon Aug 10, 2016
#2469
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.
lehtoj commentedon Aug 10, 2016
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.
When marking exe installed, remove old vers #2175
Stop truncating all-cabal-hashes repo
Merge pull request #2464 from commercialhaskell/2175-dont-truncate-repo
dpwiz commentedon Sep 16, 2016
Ouch! I never experienced the problems that prompted this fix but can't proceed now.
You'd better add something like
--do-no-harmor--fix-2175next time. Until then, gotta return to previous stack... 😔Blaisorblade commentedon Sep 16, 2016
@wiz Is that your usual connection speed?
dpwiz commentedon Sep 19, 2016
I hope not. It downloaded eventually, but in a pinch that got me nervous.
dpwiz commentedon Oct 20, 2016
Now there's real pain. My CI have this restricted uplink and should start from scratch each time 😔
sjakobi commentedon Oct 20, 2016
@wiz: Can't you cache the
~/.stackdirectory?