-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Failed to parse /tmp/493767530.kglobalshortcutsrc #95
Comments
Those trailing backquotes shouldn't be there.
|
Feel free to reach back out if you still can't get it to work. |
I prefer to append here further information, because the environment/sate and actions taken are unchanged (same When I try to apply the new dotfiles (ie. [chezmoi_modify_manager WARN] Overlapping regex matches for ActivityManager/switch-to-activity-56274a72-0b6e-4047-a116-237fda170f36, first action taken What is it mean? Furthermore, I had to delete the file I mean, that I had in the local Thanks! edit: $ head -n 4 .config/kglobalshortcutsrc
[ActivityManager]
_k_friendly_name=Activity Manager
switch-to-activity-56274a72-0b6e-4047-a116-237fda170f36=none,none,Switch to activity "Default"
$ head -n 3 .local/share/chezmoi/dot_config/private_kglobalshortcutsrc.src.ini
[ActivityManager]
_k_friendly_name=Activity Manager
$ cat .local/share/chezmoi/dot_config/modify_private_kglobalshortcutsrc
#!/usr/bin/env chezmoi_modify_manager
source auto
ignore regex "ActivityManager" "switch-to-activity-.*"
transform regex ".*" ".*" kde-shortcut |
This is about the lines:
I had forgotten that was also in the examples (not just my own config). Basically it means chezmoi_modify_manager (chmm for short, in retrospect I should have picked a shorter name to type!) found a key that matches multiple rules (the kde-shortcut transform, and the ignore). It is picking and using the result of the "first" thing. That could be a bit of a gotcha (I ran into such a gotcha in another config), so that is why I added a warning. There are two problems here:
So yes, something needs to be done to make this more user friendly. I need to think it through properly though. Maybe it shouldn't be a warning but you should have a debug mode where it would print warnings about such things?
That sounds weird. Not quite enough info to go on though. If you have some example on how to reproduce I would love to get this in a new issue though! Ideally I would need the old and the new |
Opened #99 about the regex match warning. |
I'm trying to understand your detailed explanation and logic behind...I'll answer in the new created issue.
Likewise, I'll try to reproduce the behavior, I still don't know if it's a bug or feature. I'm struggling with KDE6 these days ;) Thanks for your time and answers! |
Created the issue #100 to describe and reproduce the bug |
What exactly are you trying to do?
I'm doing something wrong...simply try to add
kglobalshortcutsrc
:Where else have you checked for solutions?
chezmoi_modify_manager --help-syntax
andchezmoi_modify_manager --help-transforms
(if relevant to my question).chezmoi_modify_manager --doctor
doesn't list anyissues that need to be resolved (or I need help resolving those issues).
Output of any commands you've tried
Output of
chezmoi_modify_manager --doctor
Thanks
The text was updated successfully, but these errors were encountered: