GithubHelp home page GithubHelp logo

Comments (7)

niieani avatar niieani commented on July 27, 2024 1

Amazing, thanks @Cj-bc, I really appreciate this. If you need any insights on the code, feel free to ask questions here, or we can chat.

from bash-oo-framework.

niieani avatar niieani commented on July 27, 2024

Hi @nicutor. This looks like a bug. I'm guessing the return code of the method is lost and not being passed correctly.

After a quick look I think the issue is here:
https://github.com/niieani/bash-oo-framework/blob/master/lib/util/type.sh#L435

It seems to be falling back to a boolean too eagerly after a > 0 status code.

But I haven't touched these parts in a while so I might be wrong.

Sadly, I don't have the time to debug this further at this point.

from bash-oo-framework.

nicutor avatar nicutor commented on July 27, 2024

Hi @niieani . Thank you for your reply.

I am so sorry that there can't be a quick fix for that, as I was so decided to use this framework for my things. But now.. if the main thing (exception) is not working, I am not so sure that I will start to write all my new scripts using it. And for sure, after I will write them, I will not have time to rewrite them again when the framework will be fixed.. All my plans was ruined :(

Its really a good work, congrats for it.

from bash-oo-framework.

niieani avatar niieani commented on July 27, 2024

Sorry to hear that, @nicutor. :(
I wish the reality was different, but this is a free time project for me.

I will add a mark in the README to hold off major work based on the framework before we do a proper rewrite with 3.0 (#45).

from bash-oo-framework.

nicutor avatar nicutor commented on July 27, 2024

There is no problem, I can totally understand you and I really appreciate your work! I am just annoyed that I found such a good library and I am not able to use it because of some small bugs.. :( But this is it :)

from bash-oo-framework.

niieani avatar niieani commented on July 27, 2024

Sure thing! I wrote this more as an experiment a few years ago and the framework exploded just recently after somebody posted it this year to HackerNews (seriously, 3400 stars in a few days...!).

I don't think it's ready for serious projects (mainly due to missing test coverage, which could have find out about errors such as this one), so I've now added a disclaimer saying so.

from bash-oo-framework.

Cj-bc avatar Cj-bc commented on July 27, 2024

I searched this bug by using git bisect.
But... I don't think I got a valid result, because the left commit was def7373 , which just adds docs and renames some variables(etc).
So I guess that this bug was there from really early stage of this framework.
It means, I think @niieani 's this comment could be where bug is living:

After a quick look I think the issue is here:
https://github.com/niieani/bash-oo-framework/blob/master/lib/util/type.sh#L435

It seems to be falling back to a boolean too eagerly after a > 0 status code.

It seems to be difficult to solve this :(
Fortunately, I'm a student and have some free time. So I can work for this problem!!!
I'll try to figure out/fix this bug ( after more code-reading)

from bash-oo-framework.

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.