Giter VIP home page Giter VIP logo

Comments (11)

Misterio77 avatar Misterio77 commented on June 13, 2024 5

Hey!

Despite the scary error messages, a few schemes/templates failing to clone should not prevent the others from being cloned (just tested it in a fresh install). I'll see what I can do to improve the error messages a bit.

For anyone browsing this, there's two ways to avoid getting these error messages:

  • Simply comment out the repos from ~/.local/share/flavours/base16/sources/schemes/list.yaml.
  • Alternatively, fork base16-schemes-source and configure ~/.config/flavours/config.toml to use your fork instead (this is possible since #62, but it's missing documentation, the same also applies to templates).

Base16 is in a pretty bad state right now, as Chris apparently went rogue against the community fork. I'll fork the sources for now and let my forks be flavours' defaults. In the near future, I'll see if I can update flavours to use tinted-theming's new formats instead.

from flavours.

windowsrefund avatar windowsrefund commented on June 13, 2024 2

I'll see if I can update flavours to use tinted-theming's new formats instead.

Hello. Just wondering if there are any plans to have flavour support tinted-theming/base16-schemes. For the time being, I'm just working around it with a small script to pull the repo into ~/.local/share/flavours/bind16/schemes, build directory names, and move each yaml file into each. Very hackish and lame but it is working for the time being.

from flavours.

Misterio77 avatar Misterio77 commented on June 13, 2024 1

Whenever you run flavours update lists or flavours update all, ~/.local/share/flavours/base16/sources/schemes/list.yaml will be overwritten. In this case (schemes list manually edited), you should use only flavours update schemes.

from flavours.

Vixeliz avatar Vixeliz commented on June 13, 2024

For now I forked the source repo but I just realized the list.yaml is managed by someone else. So i might open an issue there or you can fork their repo with those two removed.

from flavours.

Adhalianna avatar Adhalianna commented on June 13, 2024

I have also noticed the issue. It prevents fetching schemes and templates on a fresh install of flavours

from flavours.

Vixeliz avatar Vixeliz commented on June 13, 2024

For me at least it seemed when those failed none of the following ones were clones but I may be mistaken

from flavours.

Vixeliz avatar Vixeliz commented on June 13, 2024

And commenting out list.ymal(lines) iirc just the reset the file when running flavour update all

from flavours.

titaniumtraveler avatar titaniumtraveler commented on June 13, 2024

Hello. Just wondering if there are any plans to have flavour support tinted-theming/base16-schemes. For the time being, I'm just working around it with a small script to pull the repo into ~/.local/share/flavours/bind16/schemes, build directory names, and move each yaml file into each. Very hackish and lame but it is working for the time being.

Reading the code of flavours update it seems, that it is possible to manually override the used scheme-sources.

fn get_sources(file: &Path, config: &Config) -> Result<(String, String)> {
// Default repos
let default_s_repo = "https://github.com/chriskempson/base16-schemes-source.git";
let default_t_repo = "https://github.com/chriskempson/base16-templates-source.git";
// config source indicators
let use_config_sources = config.schemes.is_some();
let use_config_templates = config.templates.is_some();
// use available config sources, otherwise use defaults
let (mut s_repo, mut t_repo) =
match (config.schemes.as_ref(), config.templates.as_ref()) {
(Some(s), Some(t)) => (String::from(s), String::from(t)),
(Some(s), None) => (String::from(s), String::from(default_t_repo)),
(None, Some(t)) => (String::from(default_s_repo), String::from(t)),
(None, None) => (String::from(default_s_repo), String::from(default_t_repo)),
};

Though the documentation for that is currently missing from the readme.

from flavours.

Misterio77 avatar Misterio77 commented on June 13, 2024

I'd love to support tinted theming's format (all schemes on a single repo), but it's a little hard to implement that while keeping backwards compatibility. It's on my radar though!

Though the documentation for that is currently missing from the readme.

Yup! The PR that introduced it did not document it, so it's still missing for now.

from flavours.

Sleepful avatar Sleepful commented on June 13, 2024

Whenever you run flavours update lists or flavours update all, ~/.local/share/flavours/base16/sources/schemes/list.yaml will be overwritten. In this case (schemes list manually edited), you should use only flavours update schemes.

why not:

  1. Document this in the README
  2. Fix the issue and remove the 404 repos from the source

?

from flavours.

Sleepful avatar Sleepful commented on June 13, 2024

Seems negligent towards new users

from flavours.

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.