kyrylo / pry-theme

An easy way to customize Pry colors via theme files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't get it working

timscott opened this issue · comments

I followed the instruction to the letter by it's not working.

> gem install pry-theme

> gem which pry-theme
/Users/tscott/.rvm/gems/ruby-2.0.0-p247/gems/pry-theme-0.2.0/lib/pry-theme.rb
> cat ~/.pryrc
Pry.config.theme = "pry-modern"
[1] pry(main)> pry-theme try pry-classic
SyntaxError: unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
pry-theme try pry-classic
             ^

Ay clue what's wrong?

That's very odd. A sanity check: are you sure it's loaded? :-)

No, I'm not. How would I check?

Just type PryTheme inside a Pry session.

Ping me if you still have questions.

I might have a similar issue:

[1] pry(main)> PryTheme
=> PryTheme
[2] pry(main)> pry-theme try pry-classic
Cannot find "pry-classic" amongst themes in .pry/themes
[3] pry(main)> pry-theme list
NoMethodError: undefined method activate' for nil:NilClass from pry-theme-1.0.2/lib/pry-theme/preview.rb:14:inshort'

@espen, would you mind opening a new issue?