Kak-bundle breaks when upgrading kakoune-lsp

so i have this config

bundle kakoune-lsp https://github.com/kakoune-lsp/kakoune-lsp %{
    # configuration goes here
} %{
    # install script
    cd ~/.config/kak/bundle/kakoune-lsp
    cargo install --locked --force --path .
}

running :bundle-install works fine until it goes to compile kakoune-lsp, where *bundle-status* will show the rust compilation and then crash, afterwards this error is spammed in *debug*:

error running hook NormalIdle()/bundle-status: 1:2: 'bundle-install-hook-update-hook': 3:5: 'evaluate-commands': parse error: 10:23: unterminated string '%{...}'

afaik this only occurs when updating kakoune-lsp, i also have kak-tree-sitter and compiling it works just fine with the same config as the lsp.
any help is appreciated

Hi, kak-bundle author here. Yeah, that’s a bug in kak-bundle - I just need to make time to sit down and fix it.

1 Like

Ok, the issue tracking this bug is here: #17 - Crash when running install hooks - jdugan6240/kak-bundle - Codeberg.org

I know what’s causing this problem, and how to fix it, so I’ll do it when I get home from work.

1 Like

Ok, I pushed a commit that should fix it. Let me know if the problem persists.

1 Like

just confirmed that it is working, thank you!

1 Like

BTW, I just noticed that in your install script, you don’t need to cd into the kak-lsp directory. kak-bundle does that for you.

1 Like

Thanks! updated my config accordingly.