Giter Site home page Giter Site logo

Comments (7)

ugexe avatar ugexe commented on August 17, 2024

This appears resolved with 904c16f as tested on Windows 10 and Windows 8 by manually splitting output lines instead of relying on rakudo to do the right thing (for now)

from zef.

azawawi avatar azawawi commented on August 17, 2024
d:\tools\zef>perl6 -Ilib bin/zef install .
Initializing
===> Fetching   The spawned process exited unsuccessfully (exit code: -16)
  in sub git-ls at D:\tools\zef\lib\Zef\App.pm6:586
  in sub git-package-json at D:\tools\zef\lib\Zef\App.pm6:618
  in sub packages at D:\tools\zef\lib\Zef\App.pm6:548
  in block  at D:\tools\zef\lib\Zef\App.pm6:399
  in sub CLI-WAITING-BAR at D:\tools\zef\lib\Zef\CLI.pm6:134
  in sub MAIN at D:\tools\zef\lib\Zef\App.pm6:386
  in sub MAIN at D:\tools\zef\lib\Zef\App.pm6:202
  in block <unit> at bin/zef:3

on my box

from zef.

ugexe avatar ugexe commented on August 17, 2024

We found a bug in #perl6 where try { run "asdf" }; say 1; will not execute the say 1 without sinking inside the try block which explains why it dies with an exception. Then I checked on windows and found another bug in rakudo's Proc where, for a failed process, the return value is -1 on linux but -16 on windows.

I re-tested and it still worked on my end. So I think it must be related to the commands I used to clone and update the package list repo. I suspect there are unmerged updates from fetch and if you delete c:\user\name\.zef (or .zef in whatever folder $*HOME points to) it will work. I changed the fetch to a pull so that updates are simply merged in automatically.

If it still fails after deleting that folder and pulling these latest changes could you run the follow commands in the zef directory? (it would help me determine why git is being uncooperative in some cases but not others)

git update-index
git ls-files
git pull -n --update-shallow --depth=1

from zef.

azawawi avatar azawawi commented on August 17, 2024

I found the problem I previously cloned zef in d:\tools and not in %USERPROFILE%\zef.

zef is working again perfectly for me again. Do you think zef is assuming too much during installation?

I assumed that it works like panda rebootstrap.pl and that was my downfall. My bad.

from zef.

ugexe avatar ugexe commented on August 17, 2024

Hmm you shouldn't have to clone zef to any specific directory, that
directory should just be for config stuff and the package list. Did you
happen to try after clearing the .zef directory? Maybe doing the clone
there meant you had to erase the previous package list repo? Otherwise
there may still be a problem as it should work like you expect.

On Wednesday, November 11, 2015, Ahmad M. Zawawi [email protected]
wrote:

I found the problem I previously cloned zef in d:\tools and not in
%USERPROFILE%\zef.

zef is working again perfectly for me again. Do you think zef is assuming
too much during installation?

I assumed that it works like panda rebootstrap.pl and that was my
downfall. My bad.


Reply to this email directly or view it on GitHub
#71 (comment).

from zef.

azawawi avatar azawawi commented on August 17, 2024
  • Tried it after removing .zef and zef from `%USERPROFILE%`` directory.
  • git repo was at d:\tools\zef.
  • zef died with the following message after creating an empty %USERPROFILE%\.zef\git:
d:\tools\zef>perl6 -Ilib bin\zef install .
Initializing
===> Fetching   The spawned process exited unsuccessfully (exit code: 259)
  in sub git-ls at D:\tools\zef\lib\Zef\App.pm6:595
  in sub git-package-json at D:\tools\zef\lib\Zef\App.pm6:629
  in sub packages at D:\tools\zef\lib\Zef\App.pm6:552
  in block  at D:\tools\zef\lib\Zef\App.pm6:403
  in sub CLI-WAITING-BAR at D:\tools\zef\lib\Zef\CLI.pm6:134
  in sub MAIN at D:\tools\zef\lib\Zef\App.pm6:390
  in sub MAIN at D:\tools\zef\lib\Zef\App.pm6:206
  in block <unit> at bin\zef:3

from zef.

ugexe avatar ugexe commented on August 17, 2024

Closing this. The refactor replaced the entire code base so this may or may not be true anymore. I've successfully used it on windows 10 and 8 however. If the new version of zef still fails for you please feel free to re-open!

from zef.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.