mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: $Env:SomeVar in komorebi.json causes komorebic to fail to start #294
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 @seancraven on GitHub (Feb 8, 2024).
Hi, Firstly thank you very much for this awesome piece of software! I use it everyday!
I would be really keen to contribute to add some extra logging or a break out of the start-up loop with a hint to run komorebic check, if that sounds good!
Describe the bug
When using Powershell environment variables in the komorebi.json Komorebi keeps trying to restart without issuing an error log.
$PROFILE file
such
In my config I tried to use the $env var:
Causes:
Note when I run
ls $Env:KOMOREB_CONFIG_HOMEI see my config files, komorebi.json, applications.yaml.To Reproduce
Steps to reproduce the behaviour:
Expected behavior
I think if there is an error parsing a line of the config this should be presented to the user in the komorebic log command/ or in the main komorebic process.
komorebic checkOutputProvide the output of
komorebic checkThis could
Additional context
I don't have any other scripts running on start-up or akh etc.
@LGUG2Z commented on GitHub (Feb 8, 2024):
JSON does not expand environment variables and
$Env:USERPROFILEis currently a one-off, hard-coded string replacement done inside of komorebi.@LGUG2Z commented on GitHub (Feb 10, 2024):
Ending up adding support for this specific env var after all @seancraven, it will be in the next release!
@seancraven commented on GitHub (Feb 10, 2024):
Thanks very much!
@LGUG2Z commented on GitHub (Feb 14, 2024):
Implemented on this video https://www.youtube.com/watch?v=XBOuvuFL9RE