Skip to content
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

jruby 1.7.13 support? #104

Open
mooreniemi opened this issue Mar 20, 2015 · 2 comments
Open

jruby 1.7.13 support? #104

mooreniemi opened this issue Mar 20, 2015 · 2 comments

Comments

@mooreniemi
Copy link

/Users/amooreniemi/.rvm/gems/jruby-1.7.13/gems/ruby-graphviz-1.2.1/lib/graphviz/utils.rb:61:in `output_from_command': Error from ["/usr/local/bin/dot", "-q1", "-Tpng", "-o/Users/amooreniemi/work repos/zipcar-rails-core/gem_graph.png", "/var/folders/fh/hd6ktyp11mg2gft_gcph47sjt21mtb/T/graphviz.rb20150320-16670-e641zp"]: (RuntimeError)
Error: dot: can't open {}

from /Users/amooreniemi/.rvm/gems/jruby-1.7.13/gems/ruby-graphviz-1.2.1/lib/graphviz.rb:600:in `output'
from /Users/amooreniemi/.rvm/gems/jruby-1.7.13@global/gems/bundler-1.7.3/lib/bundler/graph.rb:156:in `run'
from /Users/amooreniemi/.rvm/gems/jruby-1.7.13@global/gems/bundler-1.7.3/lib/bundler/graph.rb:25:in `viz'
from /Users/amooreniemi/.rvm/gems/jruby-1.7.13@global/gems/bundler-1.7.3/lib/bundler/cli/viz.rb:12:in `run'
from /Users/amooreniemi/.rvm/gems/jruby-1.7.13@global/gems/bundler-1.7.3/lib/bundler/cli.rb:321:in `viz'
from /Users/amooreniemi/.rvm/gems/jruby-1.7.13@global/gems/bundler-1.7.3/lib/bundler/vendor/thor/command.rb:27:in `run'
from /Users/amooreniemi/.rvm/gems/jruby-1.7.13@global/gems/bundler-1.7.3/lib/bundler/vendor/thor/invocation.rb:121:in `invoke_command'
from /Users/amooreniemi/.rvm/gems/jruby-1.7.13@global/gems/bundler-1.7.3/lib/bundler/vendor/thor.rb:363:in `dispatch'
from /Users/amooreniemi/.rvm/gems/jruby-1.7.13@global/gems/bundler-1.7.3/lib/bundler/vendor/thor/base.rb:440:in `start'
from /Users/amooreniemi/.rvm/gems/jruby-1.7.13@global/gems/bundler-1.7.3/lib/bundler/cli.rb:9:in `start'
from /Users/amooreniemi/.rvm/gems/jruby-1.7.13@global/gems/bundler-1.7.3/bin/bundle:20:in `(root)'
from /Users/amooreniemi/.rvm/gems/jruby-1.7.13@global/gems/bundler-1.7.3/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors'
from /Users/amooreniemi/.rvm/gems/jruby-1.7.13@global/gems/bundler-1.7.3/bin/bundle:18:in `(root)'
from org/jruby/RubyKernel.java:1081:in `load'
from /Users/amooreniemi/.rvm/gems/jruby-1.7.13@global/bin/bundle:1:in `(root)'
from org/jruby/RubyKernel.java:1101:in `eval'
from /Users/amooreniemi/.rvm/gems/jruby-1.7.13/bin/jruby_executable_hooks:15:in `(root)'
@mooreniemi
Copy link
Author

still broken

@mooreniemi
Copy link
Author

i pry'd into:

def output_and_errors_from_command(cmd) #:nodoc:
unless defined? Open3
begin
require 'open3'
require 'win32/open3'
rescue LoadError
end
end
begin
require 'pry'
binding.pry
out, err, status = Open3.capture3(*cmd, :binmode => true)
[out, err, status.exitstatus]
rescue NotImplementedError, NoMethodError
IO.popen( *cmd ) do |stdout|
stdout.binmode
[stdout.read, nil, nil]
end
end
end

and found the command being constructed ran without errors when i ran it in my console directly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant