-
Notifications
You must be signed in to change notification settings - Fork 31
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
Cannot run update all
#79
Comments
btw the latest release does not include the latest commit, also you do not offer instructions to install from source so I do not know how to go about that |
Uhg I guess these are the culprits https://github.com/chriskempson/base16-schemes-source/blob/main/list.yaml#L37-L66 |
I guess this works for now :S
|
also I have to pass in the config path or it wont find it:
|
Re last comment: I had to pass in |
Have the same problem and ^ these fixes doesn't seem to help. |
It seems that a few of the scheme sources are no longer available, breaking the update process. Fixing this should be as easy as commenting both out in Though if you use |
Yeah I guess this worked for the schemes to update. Still when trying to apply any scheme it tells me there are no .mustache files in the |
Just got hit by this, also building from source. Project seems unmaintained how unfortunate. May have to maintain this locally. |
I mean See: flavours/src/operations/update.rs Line 48 in 884dadc
|
Indeed, ideally this external list should be forked and under flavours control (considering a simple 404 on this list breaks initial setup here!) or simply integrated into flavours however I see the author was made aware of this quite some time ago and seems uninterested? |
You can actually do that yourself! While it is not really documented, you can override the default by either
See the flavours/src/operations/update.rs Lines 46 to 98 in 884dadc
Otherwise it might be a good idea to have something like
In my opinion that would be kind of out of scope for
I can't speak for the maintainer, but I would guess that while it might take a while, that yes. |
Ofcourse it can be done by oneself. That's not the issue. The issue is that new users are being hit with this upon install, and spending who knows how long figuring it out. The correct solution is as I stated previously. Nb. not intended to be an attack on the author. We are free to fork and whatnot and thanks for your work thus far. |
Hey all, sorry for the radio silence. Life's been busy and flavours is not something I use every day, so this ended up being low priority. This problem with sources is something that actually drives me a bit away from base16, and, IMO, demands a flavours refactor. In my opinion, the source listings are bad design. Users are super likely to want to include custom schemes or templates, so most people who use flavours for over a day probably have their own source listings fork, don't Tinted theming's approach to having all schemes under a single repo is better, but switching flavours to it without breaking people's workflows would be absolutely impossible (or very darn hard). If we want to do breaking changes, I'd like to make it just once and have the best design possible, so that we avoid breaking in the future again. Flavours biggest design problem ATM is the way it manages sources. Source listings and keeping stuff on My ideal solution looks like this:
This is how a flavours 2.0 config file would look like with that design: shell = "bash -c '{}'"
[schemes]
source = "git+https://github.com/tinted-theming/base16-schemes" # If set to null, flavours will ignore it
extra = ["https://github.com/foo/bar/tree/blob/foo.yml"] # List of remote yml files
[[items]]
file = "~/.config/sway/config"
source = "https://github.com/rkubosz/base16-sway/blob/master/templates/colors.mustache"
hook = "swaymsg reload"
light = false
[[items]]
file = "~/.config/waybar/colors.css"
source = "https://github.com/mnussbaum/base16-waybar/blob/master/templates/default.mustache"
rewrite = true
[[items]]
file = "~/.config/beautifuldiscord/style.css"
source = "https://github.com/samme/base16-styles/blob/master/templates/css-variables.mustache"
start= "/* Start flavours */"
end = "/* End flavours */"
[[items]]
file = "~/.config/foo/config"
source = "~/.config/flavours/templates/foo.mustache" # Local files are also supported In my opinion, this is a huge breaking change and should warrant flavours 2.0. I think maintaining support for the old and new ways is pretty much impossible (there's a LOT of edge cases, so it's impossible to not break anything). We should instead try and detect legacy users and point them to a (easy and quick to follow) migration guide. I thought of this:
Well, that took a while to type. This is overall my vision for a improved flavours, and I would like to hear your thoughts on it. I will look into opening a tracking issue, a branch, and draft PR for it. Of course, this is a huge undertaking and requires a lot of refactoring. I'm currently working full time and doing a master's; it's hard to have time to do open source work at all, and when I do, it's usually programs I use daily. I do realise flavours has a huge community and deserves more love for me, so I'll do my best. PRs are totally accepted, but I'll refrain from merging new features to the legacy version for now.
As you can see, the solution is not a one-liner fix, but a deeper design problem. People have different usecases than I anticipated when I built this, and base16 has evolved into a painful to deal with standard (with lots of flaws).
I don't want to sound rude, @MrPenguin07, but if that is "quick fix", do feel free to open a PR. I am sure you will run into the design flaws when you try and implement it. People (myself included) have def tried to tackle this problem, and they always give up due to running into the flaws I mentioned. All fixes are easy when you don't consider existing architecture, users that rely on that behaviour, etc. Back on topic. Fixes while flavours is not re-written to tackle the design flaws:
|
Appreciate the response, and the thought you've put into restructuring for a 2.0 release - it's a solid plan.
I have to disagree, can't help but think you're overthinking the obvious solution(s) which would provide immediate relief for new users just finding flavours. Your high level view of these flaws is spot on, however this is from the perspective of a new user trying to get up and running. All due to 404's caused by another github account which has been deleted and the update script has no error handling and dies. At minimum these accounts are no longer accessible. Solution 1) add error handling for the 404's to simply skip those repos and allow update to populate. Neither solution should be a breaking change and affect existing users. Unless i'm overlooking something? |
@Misterio77 The main points are the following:
I think I will start by implementing a prototype in its own repo, which then can be integrated into main flavours later. |
The fundamental band-aid over this problem should be akin to "try catch" and not error on the 404 links. This should be an easy non-breaking change to the main repo: At least it makes it very simple for new users to adopt the tool right now, even if it isn't perfect. |
For a simple solution that doesn't degrade as themes go 404, I would just vendor the current themes, i.e. download all the source files and use that as truth, maybe in a separate repo. At least that gives a good starting gallery to new users and the gallery doesn't break. |
Anyway, just for the record. After overcoming the hurdle of installation, flavours has been running like a charm in my terminal, it has allowed me to enjoy coding while keeping my eyes sane for the past year or so! Awesome work. I made a tmux CMD to pick themes with https://github.com/Sleepful/.config/blob/master/.tmux.conf#L87 |
cryptic error,
.config/flavours
does not exist after running theflavours update all
, I do see stuff inside~/Library/Application\ Support/flavours/base16
The text was updated successfully, but these errors were encountered: