mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: mismatch between json schema and code #701
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @codingismy11to7 on GitHub (Nov 10, 2025).
Summary
i am a brand-new user to komorebi, have never heard of it before today. I followed directions and installed with winget and created the configs with quickstart. i opened the configs in vscode, and the
Networkwidget had warnings about missing keys. i added the missing keys, so my network widget was now configured likeand things started crashing. turns out that while this is valid according to the json schema, the application crashes:
it's obviously wrong, there is no duplicate field here.
Version Information
Komorebi Configuration
Hotkey Configuration
n/a
Output of komorebic check
it ran successfully
@AhmedHawater2003 commented on GitHub (Nov 10, 2025):
It looks like some of the keys you’re using in the Network widget configuration are outdated; they’re not listed in the latest schema, which you can find here:
https://komorebi-bar.lgug2z.com/schema.html#right_widgets_items_oneOf_i8_Network
It’s likely that some of the fields you’re using have been renamed or replaced, which is causing the error.
Try updating your configuration to only include the fields listed in the latest schema.
@LGUG2Z commented on GitHub (Nov 10, 2025):
I think this is a case of unfortunate aliasing:
https://github.com/LGUG2Z/komorebi/blob/master/komorebi-bar/src/widgets/network.rs#L31-L32
show_network_activityis a legacy alias forshow_activityto preserve backwards compatibility, but if you have bothshow_network_activityandshow_activityin the config, it will error out@codingismy11to7 commented on GitHub (Nov 14, 2025):
this was a brand new install, had never touched anything, had just opened the config file for the first time. i'm not sure where vscode got the schema - perhaps there's one hosted online that is outdated?
that makes sense for the duplicate keys error. but like - i got past this issue, but it was difficult and confusing for a brand new user, and i'm just trying to give some feedback. komorebi just silently crashing over and over was part of the confusion, until i (well i don't remember what i did, maybe i ran from cmdline to see logs, or went and tracked down logs) saw the error crashing things.
so instead of spamming discord i came to leave an issue that could hopefully be turned into a polish item later. whatever went wrong, however vscode got the schema, it said i was missing required fields, i added the required fields, the application crashed
so yeah anyway - brand new users are always the best source of bug reports, imo, because they had no outdated stuff on their system. so just letting you know the OOB experience is currently slightly broken, but not any sort of major issue
@LGUG2Z commented on GitHub (Nov 14, 2025):
a77b3e774a/docs/komorebi.bar.example.json (L49-L53)Updated the example generated by the quickstart command to use the canonical configuration options instead of the previous aliases, this will ship in v0.1.39