-
Notifications
You must be signed in to change notification settings - Fork 510
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
label:"help wanted" "Error Parsing config file: invalid type: string "config.yaml", expected struct YamlConfig Fallbacking to default one ... #921
Comments
Thanks for opening your first issue here! In case you're facing a bug, please update navi to the latest version first. Maybe the bug is already solved! :) |
To my knowledge I've compiled navi to the latest version 2.23.0, and that's what |
Hi, can you explain a bit more on when you encounter this issue? |
Thanks for replying, By this point I'm now sure that is a WSL/Windows problem or PowerShell, I never had this problems on linux, anyway, for some reason I compiled via cargo , no issues compiling, but as soon as I created the Conf file every time I run the I cleanse the project and uninstalled the binary, proceeded to update my libraries thought I had a old version of some dependencies, and indeed I had, like I stated before I dont know why my rustc version was locked to 1.67 and updates to 1.84.0 stable, recompiled again, but same error kept showing. And no matter if I looked up a command the error message does not let you completely read anything of the info. Asked GPT, google and stack over flow and they all came with the brilliant idea to just rename the extension from "yml" to "yaml" , and to double check format/indentation of the conf file. But everything on was correctly formatted and indented/spaced. I cleanse the project again and decided to compile with cargo locked version this time, but same results. So I gave up and decided to clean my bashrc and profile and when I commented out the widget sourcing from my profile it started to work fine, error message dissapeared, so its resolved, I dont have the "CTRL + G" hot key but its not a big deal. The error its reproducible, yesterday I uncommented the widget source from my profile and error was back, in case you may want a screenshot. This are my tooling versions: rustc 1.84.0 |
Hi @robbpaulsen, |
Hi @robbpaulsen, |
Yes, And sorry for the delay, I'll try to cover all the scenarios, on bash and zsh, since now its erroring out on zsh too. On Bash ShellA Bit of Hardware infoEnvironment Confirmation of Runnibg ShellThe toolchain version of
|
Compilation versions
Environment Windows 11 WSL2 Debian
I'm having this error:
"Error parsing config file: invalid type: string "/home/user/.config/navi/config.yaml", expected struct YamlConfig
Fallbacking to default one..."
What I've done so far without any succes:
cargo install --path .
make && make install
cargo install --locked navi
/home/user/.config/navi/config.yaml
file to a ".yml" extension file/home/user/.config/navi/config.yaml
with different IDE's in case of bad syntax or YAML/YML syntax structure (Nevoim, Vim, Sublime, VS code. BTW None of them changed a thing to the format so format is good, plus I've have not altered the "config.yaml" that thenavi
by default created withnavi info config-example
)This is not the first time I've compiled the tool, and I had no issues before on my old linux environemnt, but it's the first time under Windows WSL2. By any chance is there some extra declarations or arguments to pass to the compiler that I've missed due to WSL2 env? or what could fix the issue?
The text was updated successfully, but these errors were encountered: