Leader sequences error

I’ve been trying to get leader sequences working and the line (from the readme and the example)

KALEIDOSCOPE_INIT_PLUGINS(Leader);

gets the error

exit status 1
expected constructor, destructor, or type conversion before ‘(’ token

Any help would be appreciated! It compiles without that line, but I imagine I wouldn’t like the result.

Your version of the Kaleidoscope submodule might be too old.

There was a recent change in the plugin API. To use Version 2 with KALEIDOSCOPE_INIT_PLUGINS, you need to upgrade to the latest version of Kaleidoscope.

The error indicates that KALEIDOSCOPE_INIT_PLUGINS is unknown to the compiler.

1 Like

Fair enough. I’ve had a fair crack at working out how to do that, but I’m at a loss on how to do this on windows - any hints?

Sorry, I’m not a Windows user.

Figured it out. For reference, go to file-preferences, click on the file path where it says “More preferences can be edited directly in the file [file path]”

And then go to subfolders packages, keyboardio, hardware, avr, 1.23.0, libraries, and replace kaleidoscope with the contents of the relevant github zip file.

My leader sequence doesn’t work still, but that’s probably just something I’ve done wrong. It compiles fine now.