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

Parse error on defcfg #833

Open
B1T3X opened this issue Apr 21, 2024 · 1 comment
Open

Parse error on defcfg #833

B1T3X opened this issue Apr 21, 2024 · 1 comment

Comments

@B1T3X
Copy link

B1T3X commented Apr 21, 2024

Hey there!
I have just compiled KMonad v0.4.2 on my MacOS machine, running Sonoma 14.3.1 (23D60).
I have migrated from v0.4.1 and now v0.4.2 throws an error with the same .kbd file.
Even if I create a barebones file, I get the same error.

Take this example:

(defcfg
  input  (iokit-name "BT5.0 KB")
  output (dext)

  fallthrough true
  allow-cmd true
)

(defsrc
  esc  1    2    3    4    5    6    7    8    9    0    -    =    bspc
  tab  q    w    e    r    t    y    u    i    o    p    [    ] \
  caps a    s    d    f    g    h    j    k    l    ;    '    ret
  lsft z    x    c    v    b    n    m    ,    .    /       rsft
  lctl lmet lalt       spc                       ralt cmps rctl Fn
  rght
)

(deflayer layer1
  esc  1    2    3    4    5    6    7    8    9    0    -    =    bspc
  tab  q    w    e    r    t    y    u    i    o    p    [    ] \
  caps a    s    d    f    g    h    j    k    l    ;    '    ret
  lsft z    x    c    v    b    n    m    ,    .    /       rsft
  lctl lmet lalt       spc                       ralt cmps rctl Fn
  rght
)

This is the error I get:

kmonad: Parse error at 3:3:
  |
3 |   output (dext)
  |   ^
unexpected 'o'
expecting ')'

If I comment the output setting out I get this: kmonad: Missing setting in 'defcfg': input

I have no idea what the heck is going on O_o

Any and all help will be appreciated!
Thanks

@B1T3X
Copy link
Author

B1T3X commented Apr 21, 2024

A little update, substituting dext with kext works. I thought kext is only for old MacOS versions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant