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

Warnings about missing fuzzy config #359

Open
jdisanti opened this issue May 23, 2021 · 0 comments
Open

Warnings about missing fuzzy config #359

jdisanti opened this issue May 23, 2021 · 0 comments

Comments

@jdisanti
Copy link
Contributor

After creating my initial config, I started seeing the following warning on startup:

15:59:40.179 CMD [WARN] Using default fuzzy config.  failed to parse global config: missing field `fuzzy` at line 1 column 10

I didn't see anything about this field in the documentation, so I read through config.rs to see what I was missing, and it looks like there's a non-optional fuzzy config? I tried adding this to the bottom of my .config/tab.yml:

fuzzy:
  - create_tab: true

Which results in:

16:23:23.706 CMD [WARN] Using default fuzzy config.  failed to parse global config: fuzzy[0]: invalid type: map, expected a boolean at line 9 column 21

Running tab --check doesn't reveal this error. If I remove the hyphen before create_tab, then the warnings disappear.

Should fuzzy be an Option<FuzzyConfig> in Config to avoid these warnings? And should the tab --check command detect these kinds of errors?

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

1 participant