JEG2 / highline

A higher level command-line oriented interface.
Other
1.29k stars 137 forks source link

Default Highline Example on GithubGives Error #225

Closed billbisco closed 6 years ago

billbisco commented 6 years ago

When I copy/paste the default Highline Example from Github into Cloud9 there is an error on line 49

Using colored indices on Menus

HighLine::Menu.index_color = :rgb_77bbff # set default index color #line 49

/home/ubuntu/workspace/Project/Testing.rb:49:in <main>': undefined methodindex_color=' for HighLine::Menu:Class (NoMethodError)

When I installed the gem, everything else prior worked.

abinoam commented 6 years ago

Thanks for reporting the issue @billbisco.

Could you please check what is returned by...

HighLine::VERSION

I suspect you're using the 1-7-stable branch. And the README.md examples are for 2.0.0-develop branch.

abinoam commented 6 years ago

Hi @billbisco, can you check what version are you running?

mediamagnet commented 6 years ago

Hello,

I'm getting the same error when using the example I'm using version 1.7.10.

ghost commented 6 years ago

I also tried it with 1.7.10, and NoMethodError was reproduced. However, as @abinoam said, I confirmed that it's not reproduced in 2.0.0.pre.develop.14.

abinoam commented 6 years ago

As @iranakam confirmed @billbisco is probably running the example using the wrong version. I'll close this for now. Anybody feel free to reopen the issue if think appropriate.