Skip to content
This repository

Whereami "forgets" about its current position #865

Open
kyrylo opened this Issue February 27, 2013 · 1 comment

1 participant

Kyrylo Silin
Kyrylo Silin
Collaborator

Pay attention to the fourth Pry command (the second whereami invocation).

Fails for the following Rubinius versions.

% RBXOPT=-X19 ruby -v
rubinius 2.0.0rc1 (1.9.3 release 2012-11-02 JI) [i686-pc-linux-gnu]

% ruby -v
rubinius 2.0.0rc1 (1.8.7 release 2012-11-02 JI) [i686-pc-linux-gnu]
code/pryp/pry-theme[master]% RBXOPT=-X19 bundle exec bacon -Ispec spec/commands_spec.rb -q -n "displays colours accord"
Ruby: 1.9.3; Ruby Engine: rbx; Pry Theme: 0.2.0
[1] pry(#<Bacon::Context>)> whereami 

From: /home/curacao/code/pryp/pry-theme/spec/commands_spec.rb @ line 87 :

    82:   end
    83: 
    84:   describe "'colors' subcommand" do
    85:     if ENV['TERM'] =~ /256color/
    86:       it "displays colours accordingly to the terminal color support" do
 => 87:       binding.pry
    88:         table = pry_eval('pry-theme colors')
    89:         table.should =~ /silver01/
    90:         table.should =~ /7;38;5;105/
    91:       end
    92:     end

[2] pry(#<Bacon::Context>)> whereami 

From: /home/curacao/code/pryp/pry-theme/spec/commands_spec.rb @ line 87 :

    82:   end
    83: 
    84:   describe "'colors' subcommand" do
    85:     if ENV['TERM'] =~ /256color/
    86:       it "displays colours accordingly to the terminal color support" do
 => 87:       binding.pry
    88:         table = pry_eval('pry-theme colors')
    89:         table.should =~ /silver01/
    90:         table.should =~ /7;38;5;105/
    91:       end
    92:     end

[3] pry(#<Bacon::Context>)> sda
NameError: undefined local variable or method `sda' on an instance of Bacon::Context.
from kernel/delta/kernel.rb:81:in `sda (method_missing)'
[4] pry(#<Bacon::Context>)> whereami 

From: (pry) @ line 87 :



[5] pry(#<Bacon::Context>)>
Kyrylo Silin
Collaborator

Odd. I cannot reproduce it anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.