mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: display_index_preferences prevents komorebi from starting #455
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 @ferenyl on GitHub (Aug 27, 2024).
Describe the bug
When display_index_preferences is present in config, start fails.
komorebi.exe stops without output
When i run komorebi from source:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
komorebi should start
Operating System
OS Name: Microsoft Windows 11 Home
OS Version: 10.0.22631 N/A Build 22631
komorebic checkOutput@ferenyl commented on GitHub (Aug 27, 2024):
After some debugging i found that i got stuck on this:
b799fd3077/komorebi/src/windows_api.rs (L290)@LGUG2Z commented on GitHub (Aug 27, 2024):
Are you able to add some debug lines in that block to see what the values of preference and len are in there? There must be a subtle logic bug here but I can't figure it out from looking at it
@LGUG2Z commented on GitHub (Aug 27, 2024):
3101e089b3This might fix it; I have a feeling that
reservedoesn't actually grow the Vec len 🤔@ferenyl commented on GitHub (Aug 27, 2024):
Can confirm that reserve doesn't grow the Vec len. Going to test the commit now.
@ferenyl commented on GitHub (Aug 27, 2024):
That code works! going to build from source and run from that.
@LGUG2Z commented on GitHub (Aug 27, 2024):
Excellent, I'll merge the fix to master when I get back from the office tonight 🎉
@LGUG2Z commented on GitHub (Aug 28, 2024):
This is now on master and will be part of the next nightly release on Saturday 🚀