# Leader sequences error

**URL:** https://community.keyboard.io/t/leader-sequences-error/1569
**Category:** Help and Getting Started
**Tags:** question, plugin
**Created:** [May 25, 2018, 7:44am UTC](https://community.keyboard.io/t/leader-sequences-error/1569 "2018-05-25T07:44:21Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Llamalland](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/llamalland/32/832_2.png) [@Llamalland](https://community.keyboard.io/u/Llamalland)
#### Post date: [May 25, 2018, 7:44am UTC](https://community.keyboard.io/t/leader-sequences-error/1569/1 "2018-05-25T07:44:21Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![noseglasses](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/noseglasses/32/429_2.png) [@noseglasses](https://community.keyboard.io/u/noseglasses)
#### Post date: [May 25, 2018, 12:34pm UTC](https://community.keyboard.io/t/leader-sequences-error/1569/2 "2018-05-25T12:34:57Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Llamalland](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/llamalland/32/832_2.png) [@Llamalland](https://community.keyboard.io/u/Llamalland)
#### Post date: [May 25, 2018, 2:59pm UTC](https://community.keyboard.io/t/leader-sequences-error/1569/3 "2018-05-25T14:59:42Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![noseglasses](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/noseglasses/32/429_2.png) [@noseglasses](https://community.keyboard.io/u/noseglasses)
#### Post date: [May 25, 2018, 8:32pm UTC](https://community.keyboard.io/t/leader-sequences-error/1569/4 "2018-05-25T20:32:00Z")

</div>

Sorry, I’m not a Windows user.

---

<div class="post-metadata">

### Author: ![Llamalland](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/llamalland/32/832_2.png) [@Llamalland](https://community.keyboard.io/u/Llamalland)
#### Post date: [May 27, 2018, 2:52am UTC](https://community.keyboard.io/t/leader-sequences-error/1569/5 "2018-05-27T02:52:56Z")

</div>

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.
