Giter Site home page Giter Site logo

Comments (9)

abitbetterthanyesterday avatar abitbetterthanyesterday commented on June 19, 2024

The issue seems to be coming from here:

if (process.args?._?.length === 1 && !process.args._[0].includes('zxb.mjs')) { on the install scripts.

I am unsure what this guard is doing , but by commenting it out I successfully installed zxb.

I'd be happy to put a PR for this, but maybe someone has a better insight in that guard condition?

from zxb.

pyronaur avatar pyronaur commented on June 19, 2024

Hey! Thanks for letting me know.
I haven't checked what's going on there yet. zx seems to have switched how argv is handled a couple of times during the past few versions.

from zxb.

abitbetterthanyesterday avatar abitbetterthanyesterday commented on June 19, 2024

from zxb.

pyronaur avatar pyronaur commented on June 19, 2024

Thanks!

Fixed the install issue: a58ca0f

What OS are you running? zxb lse works on my mac, but doesn't work on Ubuntu, so I think something might be up there.

from zxb.

abitbetterthanyesterday avatar abitbetterthanyesterday commented on June 19, 2024

from zxb.

pyronaur avatar pyronaur commented on June 19, 2024

Oh, Ubuntu isn't to blame, after all, reproduced on mac as well. Looking...

from zxb.

abitbetterthanyesterday avatar abitbetterthanyesterday commented on June 19, 2024

It seems to be around line 63 on the main file.

I'm just on my phone right now so hard to debug, you have a condition:

if(input && !action)

Probably another issue with the indexing of argv?

from zxb.

abitbetterthanyesterday avatar abitbetterthanyesterday commented on June 19, 2024

Yes I can't test but I'd say input returns undefined because of the argv indexing.. it's looking at index 1, not 0.

But again, from my mobile so this is untested!

from zxb.

pyronaur avatar pyronaur commented on June 19, 2024

Yeah, the indexes were off because zx changed that in v7, and I got confused along the way with my messy dev environment (I've got the git project symlinked and after testing updates forgot to re-link)

I've updated zxb to v1.0.5 now. zxb update should do the trick, if it doesn't, just run the install script again.

from zxb.

Related Issues (3)

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.