Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load lib/types/ui/color.sh #8

Closed
avdv opened this issue Dec 1, 2015 · 4 comments
Closed

Unable to load lib/types/ui/color.sh #8

avdv opened this issue Dec 1, 2015 · 4 comments

Comments

@avdv
Copy link

avdv commented Dec 1, 2015

Hi Bazyli,

after you resolved #7, I'm running into another problem:

 ✘ UNCAUGHT EXCEPTION: Manually invoked
    ➦ Unable to load /src/bash-oo-framework/lib/types/ui/color.sh [06_system.sh:14]
    ✘ source "$libPath" || throw "Unable to load $libPath" [06_system.sh:14]
       ➦ System.LoadFile "$file" [06_system.sh:66]
          ➦ System.Import [oo.sh:5]
          ✘ import lib/types/ui [oo.sh:5]

Thanks.

@avdv
Copy link
Author

avdv commented Dec 1, 2015

Oh, I see. I'm using urxvt, so my TERM variable is "rxvt".

Update: after changing the UI.Color.IsAvailable alias to also match "rxvt", I can execute ./oo.sh and also run the tests.

@niieani
Copy link
Owner

niieani commented Dec 1, 2015

Hi Claudio.
Still, it shouldn't throw, just make everything black&white under rxvt. I'll have to investigate further.

@avdv
Copy link
Author

avdv commented Dec 1, 2015

Adding a return 0 at the end of lib/types/ui/color.sh works.

@niieani niieani closed this as completed in 72f2080 Dec 1, 2015
@niieani
Copy link
Owner

niieani commented Dec 1, 2015

@avdv Great catch! Thanks.

RandyMcMillan pushed a commit to RandyMcMillan/dotfiles that referenced this issue Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants