Feedback about documentation/debugging #3055
Destroy666x
started this conversation in
General
Replies: 1 comment 1 reply
-
@Destroy666x which field was this? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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 value
errors, which were all related to misconfiguration as it ran just fine without the--config
parameter. 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: 2
field, 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
required
fields (also mostly not mentioned in the docs), added somestyle
s forsegment
s 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 debug
command which also wasn't really mentioned in the documentation, in FAQ I founddebug
for 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.
Beta Was this translation helpful? Give feedback.
All reactions