# Error when installing additional SpaceCadet modifier keys \[kaliedoscope does not name a type\]

**URL:** https://community.keyboard.io/t/error-when-installing-additional-spacecadet-modifier-keys-kaliedoscope-does-not-name-a-type/3355
**Category:** Plugins
**Tags:** plugin
**Created:** [November 28, 2019, 2:44pm UTC](https://community.keyboard.io/t/error-when-installing-additional-spacecadet-modifier-keys-kaliedoscope-does-not-name-a-type/3355 "2019-11-28T14:44:13Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![rtaibah](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/rtaibah/32/3044_2.png) [@rtaibah](https://community.keyboard.io/u/rtaibah)
#### Post date: [November 28, 2019, 2:44pm UTC](https://community.keyboard.io/t/error-when-installing-additional-spacecadet-modifier-keys-kaliedoscope-does-not-name-a-type/3355/1 "2019-11-28T14:44:13Z")

</div>

Hi there,

Been trying to expand my SpaceCadet install to include {} and [], and it is not working as per the documentation. I added:

```
   //Set the keymap with a 250ms timeout per-key
  //Setting is {KeyThatWasPressed, AlternativeKeyToSend, TimeoutInMS}
  //Note: must end with the SPACECADET_MAP_END delimiter
  static kaleidoscope::SpaceCadet::KeyBinding spacecadetmap[] = {
    {Key_LeftShift, Key_LeftParen, 250}
    , {Key_RightShift, Key_RightParen, 250}
    , {Key_LeftGui, Key_LeftCurlyBracket, 250}
    , {Key_RightAlt, Key_RightCurlyBracket, 250}
    , {Key_LeftAlt, Key_RightCurlyBracket, 250}
    , {Key_LeftControl, Key_LeftBracket, 250}
    , {Key_RightControl, Key_RightBracket, 250}
    , SPACECADET_MAP_END
  };
  //Set the map.
  SpaceCadet.map = spacecadetmap;

```

to my `void setup()` but I get the following error when building:

```
/Users/rami/Documents/Arduino/Model01-Firmware/Model01-Firmware.ino: In function 'void setup()':
Model01-Firmware:580:24: error: 'SpaceCadet' in namespace 'kaleidoscope' does not name a type
   static kaleidoscope::SpaceCadet::KeyBinding spacecadetmap[] = {
                        ^
Model01-Firmware:591:20: error: 'spacecadetmap' was not declared in this scope
   SpaceCadet.map = spacecadetmap;
                    ^
exit status 1
'SpaceCadet' in namespace 'kaleidoscope' does not name a type

```

Any help would be appreciated.

---

<div class="post-metadata">

### Author: ![algernon](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/algernon/32/4404_2.png) [@algernon](https://community.keyboard.io/u/algernon)
#### Post date: [December 4, 2019, 2:24am UTC](https://community.keyboard.io/t/error-when-installing-additional-spacecadet-modifier-keys-kaliedoscope-does-not-name-a-type/3355/2 "2019-12-04T02:24:26Z")

</div>

We moved the plugins to a different namespace a while ago, so if you updated Kaleidoscope since you first made your sketch, a few things will need to be adapted, SpaceCadet included. In this case, replace `static kaleidoscope::SpaceCadet::KeyBinding spacecadetmap[]` with `static kaleidoscope::plugin::KeyBinding spacecadetmap[]`, and that should do the trick.

---

<div class="post-metadata">

### Author: ![rtaibah](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/rtaibah/32/3044_2.png) [@rtaibah](https://community.keyboard.io/u/rtaibah)
#### Post date: [December 4, 2019, 7:13am UTC](https://community.keyboard.io/t/error-when-installing-additional-spacecadet-modifier-keys-kaliedoscope-does-not-name-a-type/3355/3 "2019-12-04T07:13:25Z")

</div>

Thank you algernon, I changed that line to what you recommended…but I am still getting the error.

Arduino: 1.8.8 (Mac OS X), Board: “Keyboardio Model 01”

```
/Users/rami/Documents/Arduino/Model01-Firmware/Model01-Firmware.ino: In function 'void setup()':
Model01-Firmware:578:32: error: 'KeyBinding' in namespace 'kaleidoscope::plugin' does not name a type
   static kaleidoscope::plugin::KeyBinding spacecadetmap[] = {
                                ^
Model01-Firmware:589:20: error: 'spacecadetmap' was not declared in this scope
   SpaceCadet.map = spacecadetmap;
                    ^
exit status 1
'KeyBinding' in namespace 'kaleidoscope::plugin' does not name a type

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
```

---

<div class="post-metadata">

### Author: ![algernon](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/algernon/32/4404_2.png) [@algernon](https://community.keyboard.io/u/algernon)
#### Post date: [December 4, 2019, 7:36am UTC](https://community.keyboard.io/t/error-when-installing-additional-spacecadet-modifier-keys-kaliedoscope-does-not-name-a-type/3355/4 "2019-12-04T07:36:27Z")

</div>

Ooops, my bad, sorry! `static kaleidoscope::plugin::SpaceCadet::KeyBinding spacecadetmap[]` is the correct one.

---

<div class="post-metadata">

### Author: ![rtaibah](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/rtaibah/32/3044_2.png) [@rtaibah](https://community.keyboard.io/u/rtaibah)
#### Post date: [December 4, 2019, 11:31am UTC](https://community.keyboard.io/t/error-when-installing-additional-spacecadet-modifier-keys-kaliedoscope-does-not-name-a-type/3355/5 "2019-12-04T11:31:00Z")

</div>

Thanks that worked. Why is this not in the docs? Has SpaceCadet fallen out of favor for some other plugin? I see it’s archived.

---

<div class="post-metadata">

### Author: ![algernon](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/algernon/32/4404_2.png) [@algernon](https://community.keyboard.io/u/algernon)
#### Post date: [December 4, 2019, 12:19pm UTC](https://community.keyboard.io/t/error-when-installing-additional-spacecadet-modifier-keys-kaliedoscope-does-not-name-a-type/3355/6 "2019-12-04T12:19:03Z")

</div>

It’s been merged to the `Kaleidoscope` repo, and the docs there are up to date. We should probably have left comments in the separate plugin repos README files…

---

<div class="post-metadata">

### Author: ![travis](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/travis/32/3158_2.png) [@travis](https://community.keyboard.io/u/travis)
#### Post date: [April 30, 2020, 2:19pm UTC](https://community.keyboard.io/t/error-when-installing-additional-spacecadet-modifier-keys-kaliedoscope-does-not-name-a-type/3355/7 "2020-04-30T14:19:16Z")

</div>

@algernon Yeah, hugely strong vote here for leaving comments in the plugin repo README files. I’m new to [Keyboard.io](http://Keyboard.io) and keep getting super confused and tripped up by out of date plugin repo docs. I’m pretty sure somewhere (maybe the main repo wiki?) even points to plugin repos as documentation on the plugins…

[I know now](https://github.com/keyboardio/Kaleidoscope/issues/836) that the “real” docs are in the main repo, but I think this will just continue to be a source of frustration for new users.

---

<div class="post-metadata">

### Author: ![fire](https://avatars.discourse-cdn.com/v4/letter/f/67e7ee/32.png) [@fire](https://community.keyboard.io/u/fire)
#### Post date: [April 30, 2020, 9:11pm UTC](https://community.keyboard.io/t/error-when-installing-additional-spacecadet-modifier-keys-kaliedoscope-does-not-name-a-type/3355/8 "2020-04-30T21:11:18Z")

</div>

Yes, agree. It still confuses me every time.
