You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ever since cover_me got added to Gemfile on every rake command I invoke I see this:
Couldn't get a file descriptor referring to the console
And if logged on the console I get access denied to /dev/tty7
strace shows cover_me tries to do this:
[pid 4722] execve("/bin/open", ["open", "...site/coverage/index.html"], [/* 18 vars */]) = 0
cover_me has this code:
c.set_default(:at_exit, Proc.new {
if CoverMe.config.formatter == CoverMe::HtmlFormatter
index = File.join(CoverMe.config.html_formatter.output_path, 'index.html')
if File.exists?(index) open #{index}
I don't know under what OS "open index.html" opens the file in your browser, but on Linux open does something completely different:
lrwxrwxrwx 1 root root 6 Feb 1 21:12 /bin/open -> openvt
DESCRIPTION
openvt will find the first available VT, and run on it the given command with the given command options, standard input, output and error are
directed to that terminal. The current search path ($PATH) is used to find the requested command. If no command is specified then the environment
variable $SHELL is used.
What you are looking for probably is xdg-open:
DESCRIPTION
xdg-open opens a file or URL in the user's preferred application. If a URL is provided the URL will be opened in the user's preferred web browser.
If a file is provided the file will be opened in the preferred application for files of that type. xdg-open supports file, ftp, http and https
URLs.
If xdg-open is installed that is...
The text was updated successfully, but these errors were encountered:
Ever since cover_me got added to Gemfile on every rake command I invoke I see this:
Couldn't get a file descriptor referring to the console
And if logged on the console I get access denied to /dev/tty7
strace shows cover_me tries to do this:
[pid 4722] execve("/bin/open", ["open", "...site/coverage/index.html"], [/* 18 vars */]) = 0
cover_me has this code:
c.set_default(:at_exit, Proc.new {
if CoverMe.config.formatter == CoverMe::HtmlFormatter
index = File.join(CoverMe.config.html_formatter.output_path, 'index.html')
if File.exists?(index)
open #{index}
I don't know under what OS "open index.html" opens the file in your browser, but on Linux open does something completely different:
lrwxrwxrwx 1 root root 6 Feb 1 21:12 /bin/open -> openvt
DESCRIPTION
openvt will find the first available VT, and run on it the given command with the given command options, standard input, output and error are
directed to that terminal. The current search path ($PATH) is used to find the requested command. If no command is specified then the environment
variable $SHELL is used.
What you are looking for probably is xdg-open:
DESCRIPTION
xdg-open opens a file or URL in the user's preferred application. If a URL is provided the URL will be opened in the user's preferred web browser.
If a file is provided the file will be opened in the preferred application for files of that type. xdg-open supports file, ftp, http and https
URLs.
If xdg-open is installed that is...
The text was updated successfully, but these errors were encountered: