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

spawn error when generating output file #7

Open
shreyasbharath opened this issue Mar 27, 2018 · 1 comment
Open

spawn error when generating output file #7

shreyasbharath opened this issue Mar 27, 2018 · 1 comment
Labels

Comments

@shreyasbharath
Copy link

shreyasbharath commented Mar 27, 2018

Hi,

Thanks for your work on this gem.

I am running into an error on Windows 10 using your gem. Below is my pseudo code -

    g = Graphviz::Graph.new

    # Add nodes

    # Add connections

    Graphviz::output(g, path: 'file')

Here's the error output -

Traceback (most recent call last):
        5: from C:/tools/ruby25/lib/ruby/gems/2.5.0/gems/process-group-1.1.0/lib/process/group.rb:127:in `block in run'
        4: from C:/tools/ruby25/lib/ruby/gems/2.5.0/gems/process-group-1.1.0/lib/process/group.rb:135:in `spawn'
        3: from C:/tools/ruby25/lib/ruby/gems/2.5.0/gems/process-group-1.1.0/lib/process/group.rb:230:in `append!'
        2: from C:/tools/ruby25/lib/ruby/gems/2.5.0/gems/process-group-1.1.0/lib/process/group.rb:241:in `schedule!'
        1: from C:/tools/ruby25/lib/ruby/gems/2.5.0/gems/process-group-1.1.0/lib/process/group.rb:45:in `run'
C:/tools/ruby25/lib/ruby/gems/2.5.0/gems/process-group-1.1.0/lib/process/group.rb:45:in `spawn': wrong exec option symbol: pgroup (ArgumentError)

As a workaround, I am writing the dot contents manually like so -

File.write(g.to_dot)

@shreyasbharath shreyasbharath changed the title Error when generating output file spawn error when generating output file Mar 27, 2018
@ioquatix
Copy link
Owner

Your work around is the best option for now.

Running processes on windows is pretty crazy I have to admit. I'll need to review.

@ioquatix ioquatix added the bug label Mar 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants