You are not logged in.
Pages: 1
I'm fairly new to Alacritty as well as Linux i was trying to change my Alacritty font to 'Hurmit NF ' ,i followed all the required steps but for some reason Alacritty is throwing (Unable to load config "/home/fitz/.config/alacritty/alacritty.yml") : Config error: did not find expected <document start> at line 113 column 6.
Offline
Post the config.
cat ~/.config/alacritty/alacritty.yml | curl -F 'file=@-' 0x0.stnb. that yml is whitespace sensitive, so proper indentation matters.
Offline
Offline
Line 113 is
# font: and the entire section is commented.
This is probably not the broken version of the config?
Offline
no its not, i just commented back the lines because alacritty was throwing errors
Offline
Yeah… since it's a syntax error, the broken file is all that matters here.
Offline
We need to see the version of the config file that resulted in errors.
It's notable that there is a "# " before descriptive comment lines and just a single "#" before the token of any commented out config entries except for "# font". If you added just the "#" there, and there was already a leading space, this could be the problem. But this is fairly wild speculation without seeing the config that actually caused the error.
EDIT: Actually I guess this space is also in a few related tokens - all the ones you most likely were editing - so perhaps this is a red-herring.
Last edited by Trilby (2023-03-04 17:07:17)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
sry my bad i didn't look correctly.. i apologize
here's the correct file : http://0x0.st/HzwZ.txt
Offline
So my speculation was actually spot on. So you have the solution, right?
As was seth's
nb. that yml is whitespace sensitive, so proper indentation matters.
Last edited by Trilby (2023-03-04 17:15:33)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
i think i indented everything right and also looked some other people configs, it still is giving errors
Offline
Not in the config you posted.
You cannot have leading blanks and the blank count between levels needs to be constent (whether it's 2, 3 or 4 blanks per level, but it needs to be alwas the same)
Offline
fixed now, thanks guys...
Offline
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
Pages: 1