henrikruscon / hyper-statusline

Status Line Plugin for Hyper
MIT License
387 stars 79 forks source link

TypeError Cannot read property 'orange' of undefined #22

Closed gilbitron closed 7 years ago

gilbitron commented 7 years ago

Whenever I try and active this plugin I get the following error:

finder - - screen shot 2 jan 2017 3 41 33 pm

Any ideas?

henrikruscon commented 7 years ago

It's because it was relying on an orange color if status line was used in conjunction with my themes. I've just pushed a version that should fix your error ✌️

gilbitron commented 7 years ago

Thanks but I'm now getting the same error with "yellow". Any ideas?

henrikruscon commented 7 years ago

It appears you're lacking the config colors. What plugins are you using?

gilbitron commented 7 years ago

@henrikdahl I removed the "colors" section from my config so I assume I'm just using the defaults?

Plugins:

  plugins: [
    'hypercwd',
    'hyper-simple-vibrancy',
    'hyper-simple-highlight-active-session',
//    'hyper-statusline',
  ],
henrikruscon commented 7 years ago

It's fetching the config colors so if you've removed the default ones and don't use a theme then that's the issue.

Default

colors: {
      black: '#000000',
      red: '#ff0000',
      green: '#33ff00',
      yellow: '#ffff00',
      blue: '#0066ff',
      magenta: '#cc00ff',
      cyan: '#00ffff',
      white: '#d0d0d0',
      lightBlack: '#808080',
      lightRed: '#ff0000',
      lightGreen: '#33ff00',
      lightYellow: '#ffff00',
      lightBlue: '#0066ff',
      lightMagenta: '#cc00ff',
      lightCyan: '#00ffff',
      lightWhite: '#ffffff'
    },
gilbitron commented 7 years ago

Thanks that fixed it 👍