hrkfdn / ncspot

Cross-platform ncurses Spotify client written in Rust, inspired by ncmpc and the likes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot start ncspot

shuwop opened this issue · comments

I couldn't really change the theme, so i went on my terminal to type in ~/.config/ncspot/config.toml thinking it'd help. I then quit the terminal and shut down my computer but now every time I type in ncspot in the terminal this shows up:

could not load config: Unable to parse /Users/shuwop/.config/ncspot/config.toml: Unable to parse toml /Users/shuwop/.config/ncspot/config.toml: TOML parse error at line 1, column 1
|
1 | ~/.config/ncspot/config.toml
| ^
invalid key

How do i bypass this ?

System

  • OS: macOS
  • Terminal: Terminal,
  • Version: 0.13.4
  • Installed from: [brew

There must be an error in your configuration file since it can't be parsed. Either you can remove the file or you can run with ncspot --config=/dev/null to run without a config file (I don't know if /dev/null exists on MacOS).

A long term solution would be to provide a more clear error message when there is an error during the parsing of the configuration file. I might create a PR for that, as this error can be confusing.