Repository navigation
Closed
Milestone
Description
Environment Information
- jruby 9.4.9.0 (3.1.4) 2024-11-04 547c6b1 OpenJDK 64-Bit Server VM 21.0.4+7-1 on 21.0.4+7-1 +jit [x86_64-OpenBSD]
- OpenBSD armata 7.6 GENERIC.MP#338 amd64
Simple empty directory with .ruby-version set to
jruby-9.4.9.0
or
jruby-9.4.8.0
Here is the relevant part of the ENV, where the Ruby switcher sets GEM_* and RUBY_*:
PWD=/home/jmettraux/w/sg7
WINDOWPATH=5
SHELL=/usr/local/bin/fish
HOME=/home/jmettraux
COLORTERM=truecolor
TERM=alacritty
GEM_ROOT=/home/jmettraux/.rubies/jruby-9.4.9.0/lib/ruby/gems/shared
GEM_HOME=/home/jmettraux/.gem/jruby/4.9.0
GEM_PATH=/home/jmettraux/.gem/jruby/4.9.0:/home/jmettraux/.rubies/jruby-9.4.9.0/lib/ruby/gems/shared
PATH=/home/jmettraux/.gem/jruby/4.9.0/bin:/home/jmettraux/.rubies/jruby-9.4.9.0/lib/ruby/gems/shared/bin:/home/jmettraux/.rubies/jruby-9.4.9.0/bin:/usr/local/jdk-21/bin:/home/jmettraux/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
LOGNAME=jmettraux
USER=jmettraux
RUBY_VERSION=9.4.9.0
RUBY_ENGINE=jruby
LC_CTYPE=en_US.UTF-8
RUBY_ROOT=/home/jmettraux/.rubies/jruby-9.4.9.0
Expected Behavior
As seen on jruby-9.4.8.0:
$ jirb
irb(main):001:0> RUBY_PLATFORM
=> "java"
irb(main):002:0> RUBY_VERSION
=> "3.1.4"
Actual Behavior
$ jirb
ArgumentError: cannot convert parameter to native pointer
call at /home/jmettraux/.rubies/jruby-9.4.9.0/lib/ruby/stdlib/fiddle/ffi_backend.rb:173
setupterm at /home/jmettraux/.rubies/jruby-9.4.9.0/lib/ruby/stdlib/reline/terminfo.rb:82
<class:ANSI> at /home/jmettraux/.rubies/jruby-9.4.9.0/lib/ruby/stdlib/reline/ansi.rb:34
<main> at /home/jmettraux/.rubies/jruby-9.4.9.0/lib/ruby/stdlib/reline/ansi.rb:5
require at org/jruby/RubyKernel.java:1187
require at /home/jmettraux/.rubies/jruby-9.4.9.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:85
<main> at /home/jmettraux/.rubies/jruby-9.4.9.0/lib/ruby/stdlib/reline.rb:599
require at org/jruby/RubyKernel.java:1187
require at /home/jmettraux/.rubies/jruby-9.4.9.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:85
<main> at /home/jmettraux/.rubies/jruby-9.4.9.0/lib/ruby/stdlib/irb.rb:13
require at org/jruby/RubyKernel.java:1187
require at /home/jmettraux/.rubies/jruby-9.4.9.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:85
<main> at /home/jmettraux/.rubies/jruby-9.4.9.0/bin/jirb:10
Metadata
Metadata
Assignees
Labels
No labels
Activity
headius commentedon Dec 4, 2024
I believe this issue is fixed by ruby/reline#769 which removes all fiddle use from reline. On Windows, where some native help is necessary, it just uses win32api now.
I will update the reline we ship for 9.4.10.0 but you should be able to install latest reline on your own right now.
Update reline to 0.5.12
jmettraux commentedon Dec 4, 2024
That did it.
Many thanks!