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

stat.st_gid is unsupported on windows #3457

Closed
ahorek opened this issue Nov 11, 2015 · 1 comment
Closed

stat.st_gid is unsupported on windows #3457

ahorek opened this issue Nov 11, 2015 · 1 comment
Labels
Milestone

Comments

@ahorek
Copy link
Contributor

@ahorek ahorek commented Nov 11, 2015

jruby master, rails 4.2.4

irb(main):002:0> Rails.cache.write('aaa', 'aaa')
NotImplementedError: stat.st_gid unsupported or native support failed to load
        from org/jruby/RubyFileStat.java:269:in `gid'
        from C:/jruby_test/jruby/lib/ruby/gems/shared/gems/activesupport-4.2.4/lib/active_support/core_ext/file/atomic.rb:40:in `atomic_write'
        from C:/jruby_test/jruby/lib/ruby/gems/shared/gems/activesupport-4.2.4/lib/active_support/cache/file_store.rb:83:in `write_entry'
        from C:/jruby_test/jruby/lib/ruby/gems/shared/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache.rb:115:in `write_entry'
        from C:/jruby_test/jruby/lib/ruby/gems/shared/gems/activesupport-4.2.4/lib/active_support/cache.rb:391:in `block in write'
        from C:/jruby_test/jruby/lib/ruby/gems/shared/gems/activesupport-4.2.4/lib/active_support/cache.rb:547:in `block in instrument'
        from C:/jruby_test/jruby/lib/ruby/gems/shared/gems/activesupport-4.2.4/lib/active_support/notifications.rb:166:in `instrument'
        from C:/jruby_test/jruby/lib/ruby/gems/shared/gems/activesupport-4.2.4/lib/active_support/cache.rb:547:in `instrument'
        from C:/jruby_test/jruby/lib/ruby/gems/shared/gems/activesupport-4.2.4/lib/active_support/cache.rb:389:in `write'
        from (irb):2:in `<eval>'
        from org/jruby/RubyKernel.java:978:in `eval'
        from org/jruby/RubyKernel.java:1291:in `loop'
        from org/jruby/RubyKernel.java:1098:in `catch'
        from org/jruby/RubyKernel.java:1098:in `catch'
        from C:/jruby_test/jruby/lib/ruby/gems/shared/gems/railties-4.2.4/lib/rails/commands/console.rb:110:in `start'
        from C:/jruby_test/jruby/lib/ruby/gems/shared/gems/railties-4.2.4/lib/rails/commands/console.rb:9:in `start'
        from C:/jruby_test/jruby/lib/ruby/gems/shared/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:68:in `console'
        from C:/jruby_test/jruby/lib/ruby/gems/shared/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
        from C:/jruby_test/jruby/lib/ruby/gems/shared/gems/railties-4.2.4/lib/rails/commands.rb:17:in `<top>'
        from org/jruby/RubyKernel.java:939:in `require'
        from bin/rails:4:in `<top>'irb(main):003:0>
c:\jruby_test\jruby\bin>jruby -e "File.stat('/jruby_test').gid"
NotImplementedError: stat.st_gid unsupported or native support failed to load
    gid at org/jruby/RubyFileStat.java:269
  <top> at -e:1

related to
https://github.com/jnr/jnr-posix/blob/master/src/main/java/jnr/posix/JavaFileStat.java#L134

return posix.getgid(); ???
@enebo enebo added this to the JRuby 1.7.24 milestone Nov 12, 2015
@enebo enebo added this to the JRuby 9.0.4.0 milestone Nov 12, 2015
@enebo enebo removed this from the JRuby 1.7.24 milestone Nov 12, 2015
@enebo enebo added the windows label Nov 12, 2015
@enebo
Copy link
Member

@enebo enebo commented Nov 12, 2015

New version of jnr-posix fixes this issue and many other missed issues in the rewrite of stat in jnr-posix for windows.

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

Successfully merging a pull request may close this issue.

None yet
2 participants