Feedback about documentation/debugging #3055
Destroy666x
started this conversation in
General
Replies: 1 comment 1 reply
@Destroy666x which field was this? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I've been trying to set this up with latest ConEmu + lastest clink + latest version of this software. So far my experience isn't great in terms of documentation and this is my perspective as someone who likes to set up software from scratch.
I got lots of
oh-my-posh.lua:1: attempt to call a nil valueerrors, which were all related to misconfiguration as it ran just fine without the--configparameter. It happened even when using some examples from documentation. E.g. this: https://ohmyposh.dev/docs/configuration/overview doesn't work by default. Apparently it's missingversion: 2field, which interestingly is sometimes added to the file after the initialization, modifying the config file (and messing the order up), but not always. Instead of having the software attempt to add it if it's missing, I think the priority should be for the documentation to properly reflect that it's required.I also saw that the recommended way of validating the config was following the JSON schema: https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json. I've followed all the
requiredfields (also mostly not mentioned in the docs), added somestyles forsegments but it was still wrong. Despite online YAML/JSON (after converting the YAML) validators claiming that the syntax is correct and the config matches the schema.It turned out I mistakenly had an array item instead of one parameter field in my YAML in a segment. I had to use
oh-my-posh --config D:/Backups/Applications/Configs/General/Linkable/Oh-My-Posh/oh-my-posh.yml debugcommand which also wasn't really mentioned in the documentation, in FAQ I founddebugfor some other question, but the param had to be thought of manually. I think this way should be recommended instead of or next to the JSON schema validation that doesn't catch everything.Just sharing my thoughts about some things that could be improved. Otherwise - great software to be trying.
All reactions