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

NameError: "uninitialized constant Diffy::Diff::Open3" on Windows #119

Open
avdv opened this issue Jun 30, 2022 · 0 comments · May be fixed by #120
Open

NameError: "uninitialized constant Diffy::Diff::Open3" on Windows #119

avdv opened this issue Jun 30, 2022 · 0 comments · May be fixed by #120

Comments

@avdv
Copy link

avdv commented Jun 30, 2022

Error message:

Failure/Error: difference = Diffy::Diff.new(actual_str, expected_str).to_s
     NameError:
       uninitialized constant Diffy::Diff::Open3
               diff, _stderr, _process_status = Open3.capture3(diff_bin, *(diff_options + @paths))
                                                ^^^^^
       Did you mean?  OpenSSL
     # ./vendor/bundle/ruby/3.1.0/gems/diffy-3.4.2/lib/diffy/diff.rb:52:in `diff'
     # ./vendor/bundle/ruby/3.1.0/gems/diffy-3.4.2/lib/diffy/diff.rb:83:in `each'
     # ./vendor/bundle/ruby/3.1.0/gems/diffy-3.4.2/lib/diffy/format.rb:23:in `to_a'
     # ./vendor/bundle/ruby/3.1.0/gems/diffy-3.4.2/lib/diffy/format.rb:23:in `text'
     # ./vendor/bundle/ruby/3.1.0/gems/diffy-3.4.2/lib/diffy/diff.rb:140:in `to_s'
     # ./spec/support/yaml_sort_checker.rb:45:in `different_from_yaml?'
     # ./spec/support/yaml_sort_checker.rb:38:in `value_sorted?'
     # ./spec/support/yaml_sort_checker.rb:17:in `sorted?'
     # ./spec/color_ls/yaml_spec.rb:20:in `block (4 levels) in <top (required)>'

I think this is related to this change: 478f392

Here's a test run where this fails after upgrading from 3.4.0 to 3.4.2: https://github.com/athityakumar/colorls/runs/7126221102?check_suite_focus=true

avdv added a commit to avdv/diffy that referenced this issue Jun 30, 2022
@avdv avdv linked a pull request Jun 30, 2022 that will close this issue
avdv added a commit to athityakumar/colorls that referenced this issue Jun 30, 2022
Versions 3.4.1 and 3.4.2 are broken on Windows, see issue [#119][issue119]

[issue119]: samg/diffy#119
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

Successfully merging a pull request may close this issue.

1 participant