-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Launchy.open( uri ) #29
Comments
You did almost the correct update, that should be
not
The parameter that was passed to Launchy::Browser.run was 'path' not 'uri' You may still get an error, because capybara is opening up a file and not a uri. And that is a bug that I will be fixing this week. |
This will go out with the next release of launchy |
== Version 2.0.5 - 2011-07-24 * Fix the case where $BROWSER is set and no *nix desktop was found (copiousfreetime/launchy#33) == Version 2.0.4 - 2011-07-23 * Fix windows 'start' commandline (copiousfreetime/launchy#5) * Add capability to open local files with no file: scheme present (copiousfreetime/launchy#29) * Added 'rake how_to_contribute' task (copiousfreetime/launchy#30) * Make better decisions on when to do shell escaping (copiousfreetime/launchy#31) * Switch to Addressable::URI so UTF-8 urls may be parsed. (copiousfreetime/launchy#32) == Version 2.0.3 - 2011-07-17 * Add in Deprecated API wrappers that warn the user == Version 2.0.2 - 2011-07-17 * Typo fixes from @mtorrent * Documentation updates explicitly stating the Public API * Increase test coverage == Version 2.0.1 - 2011-07-16 * Almost a complete rewrite * JRuby Support * Organization is such that it will be easier to add additional applications * Windows behavior possibly fixed, again == Version 1.0.0 - 2011-03-17 * Add JRuby support (Stephen Judkins) * Remove unused Paths module * Switch to using bones * Switch to use minitest * NOTE, this version was never released.
After making the changes described above, I'm getting this error: [540]berklee@bizops:/web/bizops-dev git:dev$ cucumber features/leads/index.feature:21 It appears I'm still stuck in getting "Then show me the page" to work with Launchy |
Can you run the following and paste the output here?
And also:
|
I haven't heard anything further on this issue. Are you still having a problem? If not I'll close this issue next week. |
While testing out https://github.com/gitlabhq/gitlabhq I came across this issue while playing around with it; this problem has nothing to do with gitlabhq, it's just that with latest launch due their Gemlock I can see this:
It does not actually exhibit a real problem, it's just during e.g. loading the initial database there's seems to be something done using launchy which spams the screen full. After some searching I figured out it relates to launchy and did this simply test case. I don't have cucumber installed, but I can give you the ruby output:
This is a headless server so naturally there is no window manager installed thus no Xcfe and no xprop:
hth |
the best help would be if you could run:
It looks to me like on that machine launchy is unable to find a way to launch a browser. The debug will help me figure out what it is. Also, if you could do a thanks, and we'll figure this out. |
@mfn I somehow missed the bottom of your message. I would expect Launchy to fail on a machine that had no browsers installed and now window manager. Launchy launches a browser, so i'm not sure what the goal of using launchy on a headless system would be. I've put this in Issue #42 to deal with separately. |
== Version 2.0.5 - 2011-07-24 * Fix the case where $BROWSER is set and no *nix desktop was found (copiousfreetime/launchy#33) == Version 2.0.4 - 2011-07-23 * Fix windows 'start' commandline (copiousfreetime/launchy#5) * Add capability to open local files with no file: scheme present (copiousfreetime/launchy#29) * Added 'rake how_to_contribute' task (copiousfreetime/launchy#30) * Make better decisions on when to do shell escaping (copiousfreetime/launchy#31) * Switch to Addressable::URI so UTF-8 urls may be parsed. (copiousfreetime/launchy#32) == Version 2.0.3 - 2011-07-17 * Add in Deprecated API wrappers that warn the user == Version 2.0.2 - 2011-07-17 * Typo fixes from @mtorrent * Documentation updates explicitly stating the Public API * Increase test coverage == Version 2.0.1 - 2011-07-16 * Almost a complete rewrite * JRuby Support * Organization is such that it will be easier to add additional applications * Windows behavior possibly fixed, again == Version 1.0.0 - 2011-03-17 * Add JRuby support (Stephen Judkins) * Remove unused Paths module * Switch to using bones * Switch to use minitest * NOTE, this version was never released.
#### So, I got this through autotest,
WARNING: You made a call to a deprecated Launchy API. This call should be changed to 'Launchy.open( uri )'
WARNING: I think I was able to find the location that needs to be fixed. Please go look at:
WARNING:
WARNING: /home/Dave/.rvm/gems/ruby-1.9.2-p180/gems/capybara-1.0.0/lib/capybara/util/save_and_open_page.rb:26:in
open_in_browser' WARNING: def open_in_browser(path) # :nodoc WARNING: require "launchy" WARNING: Launchy::Browser.run(path) WARNING: rescue LoadError WARNING: warn "Sorry, you need to install launchy (
gem install launchy`) and " <<WARNING:
WARNING: If this is not the case, please file a bug. Please file a bug at https://github.com/copiousfreetime/launchy/issues/new
Failure in opening /home/Dave/Rails/socapp/tmp/capybara/capybara-201107201002297103564985.html with options {}: No application found to handle scheme ''. Known schemes: file, ftp, http, https
######### Then I did this,
/home/Dave/.rvm/gems/ruby-1.9.2-p180/gems/capybara-1.0.0/lib/capybara/util/save_and_open_page.rb
24 def open_in_browser(path) # :nodoc
25 require "launchy"
26 #Launchy.open( uri )
27 Launchy::Browser.run(path)
28 rescue LoadError
29 warn "Sorry, you need to install launchy (
gem install launchy
) and " <<30 "make sure it's available to open pages with
save_and_open_page
."31 end
24 def open_in_browser(path) # :nodoc
25 require "launchy"
26 Launchy.open( uri )
27 #Launchy::Browser.run(path)
28 rescue LoadError
29 warn "Sorry, you need to install launchy (
gem install launchy
) and " <<30 "make sure it's available to open pages with
save_and_open_page
."31 end
################ Then I got this through autotest,
Any thoughts?
The text was updated successfully, but these errors were encountered: