pinpox / base16-universal-manager

A universal manager to set base16 themes for any supported application
https://github.com/chriskempson/base16
MIT License
88 stars 20 forks source link

unsupported protocol scheme "" #30

Closed AdrienLemaire closed 4 years ago

AdrienLemaire commented 4 years ago

Hi @binaryplease , and thanks for working on this manager. I look forward to seeing it become more adopted by base16 users and see an aur package for it.

I tried to install the package, but faced several issues. Solved:

Not solved:

$ base16-universal-manager
No templates in list, pulling new one...
panic: Get ?access_token=<mytoken>: unsupported protocol scheme ""

goroutine 1 [running]:
main.check(...)
        /home/dori/go/src/github.com/binaryplease/base16-universal-manager/main.go:150
main.(*Base16ColorschemeList).UpdateSchemes(0xc0000afc00)
        /home/dori/go/src/github.com/binaryplease/base16-universal-manager/colorscheme.go:164 +0x661
main.(*Base16ColorschemeList).Find(0xc0000afc00, 0xc00001a998, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /home/dori/go/src/github.com/binaryplease/base16-universal-manager/colorscheme.go:198 +0x2a1
main.main()
        /home/dori/go/src/github.com/binaryplease/base16-universal-manager/main.go:87 +0x1b7

Couldn't figure out what it's trying to do here.

.config/base16-universal-manager/config.yaml:

GithubToken: "<mytoken>"
Colorscheme: "flat.yml"
#DryRun: false  # Print the rendered files to stdout instead of saving them

#https://github.com/binaryplease/base16-universal-manager#applications-which-you-want-to-theme
applications:
  alacritty:
    enabled: true
    files:
      default: "~/.config/alacritty/alacritty.yml"
  vim:
    enabled: true
    files:
      default: "~/.vim/vim_colors"

system: Arch linux

What should I do next?

lhanson commented 4 years ago

Hi @AdrienLemaire, I've noticed similar issues with the install instructions. I've submitted a pull request to address those.

As for the error you're seeing, it's because your configuration file has been simplified a bit too much from the example. You still need to include the following URLs at the root level of the config:

# Set the URL for the Schemes master list
SchemesMasterURL: "https://raw.githubusercontent.com/chriskempson/base16-schemes-source/master/list.yaml"
# Set the URL for the Templates master list
TemplatesMasterURL: "https://raw.githubusercontent.com/chriskempson/base16-templates-source/master/list.yaml"

To simplify the configuration I think that those should probably be the implicit defaults and not be required in the configuration. @binaryplease, what do you think?