[ http://jira.openqa.org/browse/WTR-464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jarmo Pertman reopened WTR-464: ------------------------------- Assignee: Jarmo Pertman I've started to think about that problem a little more and now cannot see any reason why you're seeing the "no such file to load" error message if you have 1.6.6 installed since the autoloading code in commonwatir doesn't seem to care about the version (although it should)... reopening this issue in that light, dang this ruined the fastest close of an issue in the history :P make commonwatir's autoload to try to load correct version of a library but instead of writing this kind of thing into the wiki i'd be more interested to know why is someone downgrading in the first place - are there any critical problems or whatnot etc. > uninstalling watir 1.6.7 does not uninstall commonwatir 1.6.7 and firewatir > 1.6.7 > --------------------------------------------------------------------------------- > > Key: WTR-464 > URL: http://jira.openqa.org/browse/WTR-464 > Project: Watir > Issue Type: Bug > Components: Gem installer > Affects Versions: 1.6.7 > Environment: win xp ie7 > Reporter: Alan Baird > Assignee: Jarmo Pertman > Priority: Major > > After uninstalling watir 1.6.7, and installing watir 1.6.6, Watir throws a > LoadError trying to load watir/ie. I looked at the versions that were > installed and noticed that commonwatir and firewatir did not get uninstalled > when Watir::IE was uninstalled. The workaround is to manually uninstall > commonwatir and firewatir. > N:\gauntlet>irb --noreadline > irb(main):001:0> require 'watir' > => true > irb(main):002:0> br = Watir::IE.new > LoadError: no such file to load -- watir/ie > from (irb):2 > irb(main):003:0> br = Watir::Browser.new > Watir::Exception::UnableToStartJSShException: Unable to connect to machine : > 127.0.0.1 on port 9997. Make sure that JSSh is properly installed and Fir > efox is running with '-jssh' option > from > c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/firefox.rb:156:in > `set_defaults' > from > c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/firefox.rb:50:in > `initialize' > from > c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.7/lib/watir/browser.rb:65:in > `new' > from > c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.7/lib/watir/browser.rb:65:in > `new' > from (irb):3 > irb(main):004:0> exit > # uninstall commonwatir and firewatir > N:\gauntlet>gem uninstall commonwatir -v 1.6.7 > You have requested to uninstall the gem: > commonwatir-1.6.7 > firewatir-1.6.7 depends on [commonwatir (= 1.6.7)] > If you remove this gems, one or more dependencies will not be met. > Continue with Uninstall? [Yn] y > Successfully uninstalled commonwatir-1.6.7 > N:\gauntlet>gem uninstall firewatir -v 1.6.7 > Successfully uninstalled firewatir-1.6.7 > # test to see if Watir works > N:\gauntlet>irb --noreadline > irb(main):001:0> require 'watir' > => true > irb(main):002:0> br = Watir::Browser.new > => #<Watir::IE:0x40f7d88 url="about:blank" title=""> > irb(main):003:0> br.close > => nil > irb(main):004:0> br = Watir::IE.new > => #<Watir::IE:0x40f0e84 url="about:blank" title=""> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ Wtr-development mailing list Wtr-development@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-development