Skip to content

on windows jruby: getrlimit not supported on this platform #129

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

Closed
amo13 opened this issue Feb 3, 2021 · 2 comments · Fixed by #125
Closed

on windows jruby: getrlimit not supported on this platform #129

amo13 opened this issue Feb 3, 2021 · 2 comments · Fixed by #125

Comments

@amo13
Copy link

amo13 commented Feb 3, 2021

Following error comes up since 4.0.0. No error with 3.1.0

uri:classloader:/gems/net-http-persistent-4.0.0/lib/net/http/persistent.rb:167: 
warning: Process#getrlimit not supported on this platform
NoMethodError: undefined method `first' for 9223372036854775807:Integer
  <class:Persistent> at uri:classloader:/gems/net-http-persistent-4.0.0/lib/net/
http/persistent.rb:167
              <main> at uri:classloader:/gems/net-http-persistent-4.0.0/lib/net/
http/persistent.rb:149
             require at org/jruby/RubyKernel.java:974
             require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rub
ygems/core_ext/kernel_require.rb:65
              <main> at uri:classloader:/gems/mechanize-2.7.7/lib/mechanize.rb:6
             require at org/jruby/RubyKernel.java:974
             require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rub
ygems/core_ext/kernel_require.rb:130
              <main> at uri:classloader:/shoes-app/res/log.rb:19
             require at org/jruby/RubyKernel.java:974
    require_relative at org/jruby/RubyKernel.java:1002
              <main> at uri:classloader:/shoes-app/gui.rb:18
                load at org/jruby/RubyKernel.java:1009
              <main> at uri:classloader:/META-INF/main.rb:2
             require at org/jruby/RubyKernel.java:974
             require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rub
ygems/core_ext/kernel_require.rb:117
              <main> at <script>:3
ERROR: org.jruby.embed.EvalFailedException: (NoMethodError) undefined method `fi
rst' for 9223372036854775807:Integer
@deivid-rodriguez
Copy link
Contributor

In bundler, we vendor this library and we fixed it with this patch: rubygems/rubygems#4138. But we haven't yet upstreamed the fix, I'd like to get a Windows CI running first: #125.

@deivid-rodriguez
Copy link
Contributor

Any chance rubygems/rubygems#4138 can be incorporated to this repo? I can also extract just that particular fix from #125 if preferred. It has been battle tested as part of bundler for a while now.

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.

2 participants