alexherbo2 / kakoune.cr

A command-line tool for Kakoune
https://kakoune.org
The Unlicense
54 stars 11 forks source link

Error on init #26

Closed xxxserxxx closed 3 years ago

xxxserxxx commented 3 years ago

With no user autoload directory, and a kakrc containing only:

# BEGIN kcr
evaluate-commands %sh{
        kcr init kakoune
}

starting kak results in a message to check the *debug* buffer, which contains:

*** This is the debug buffer, where debug info will be written ***
/home/ser/.config/kak/kakrc:2:1: 'evaluate-commands' 374:1: 'declare-option' option 'palette' already declared with different type or flags
/usr/share/kak/kakrc:29:1: 'evaluate-commands' 131:1: 'source' 2:1: 'evaluate-commands' 374:1: 'declare-option' option 'palette' already declared with different type or flags
error while parsing kakrc:
    1:1: 'source' 29:1: 'evaluate-commands' 131:1: 'source' 2:1: 'evaluate-commands' 374:1: 'declare-option' option 'palette' already declared with different type or flags

Removing the kcr init block results in a clean start-up with no errors. Restoring the rest of the 258 lines of my kakrc minus the kcr init call also results in an error-free start up. Starting up with no errors and then calling the kcr init block in command mode, e.g.:

:evaluate-commands %sh{ kcr init kakoune }

causes the error to happen.

alexherbo2 commented 3 years ago

It might be due to another plugin. Closing, as I removed integrated scripts.