Can't get it working
timscott opened this issue · comments
Tim Scott commented
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?
Kyrylo Silin commented
That's very odd. A sanity check: are you sure it's loaded? :-)
Tim Scott commented
No, I'm not. How would I check?
Kyrylo Silin commented
Just type PryTheme
inside a Pry session.
Kyrylo Silin commented
Ping me if you still have questions.
Espen Antonsen commented
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:in
short'
Kyrylo Silin commented
@espen, would you mind opening a new issue?