Skip to content
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

IllegalArgumentException when trying to parse example config #191

Open
karanrajpal14 opened this issue Oct 5, 2022 · 2 comments
Open

IllegalArgumentException when trying to parse example config #191

karanrajpal14 opened this issue Oct 5, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@karanrajpal14
Copy link

Hello,

I'm trying to run this on my MBP and I'm seeing an IllegalArgumentException while trying to parse a simple config like this from one of your examples:

;; main contains multiple manipulators
;; each manipulator has a description and multiple rules

;; main                -> {:main [{:des "..." :rules [rule1 rule2 ...]}]}
;; manipulator         -> {:des "..." :rules [rule1 rule2 ...]}
;; manipulator's rules -> [rule1 rule2 ...]
{:main [{:des "a to 1, b to 2, c to insert 1 2 3"
         :rules [[:a :1] [:b :2] [:c [:1 :2 :3]]]}]}

;; or we can separate them into three manipulators
;; {:main [{:des "a to 1" :rules [[:a :1]]}
;;     {:des "b to 2" :rules [[:b :2]]}
;;     {:des "c to insert 123" :rules [[:c [:1 :2 :3]]]}]}

;; in rules [:a :1] -- [<from> <to>]
;; it means from key a to key 1
;; these keycode is just original karabiner keycode prefix with colon

While running the following command I see the error:

❯ goku -c ~/.config/karabiner/karabiner.edn
The following errors occurred while parsing your command:
Error while parsing option "-c /Users/redacted/.config/karabiner/karabiner.edn": java.lang.IllegalArgumentException: No matching field found: getPath for class java.lang.String

Any idea what I'm doing wrong? Would someone please help me with this?
Thank you!

@yqrashawn yqrashawn added the bug Something isn't working label Oct 10, 2022
@momja
Copy link

momja commented Jan 14, 2023

I've just envountered this same issue on my MBP (Mac OSX 12.4)

@kaushikgopal
Copy link

Try setting it via the environment variable GOKU_EDN_CONFIG_FILE.

You might run into another issue with the caching like I did here #208 but it should unblock you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants