You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this error after installing ruby 3.0.2 and running bundle exec rake test, it seems a tempfile is not being found:
> bundle exec rake test
/Users/pere/.rbenv/versions/3.0.2/bin/ruby -I lib misc/build-ruby-internals.rb 9b8c3
/Users/pere/code/tenderjit/misc/ruby_internals.rb:225:in `initialize': No such file or directory @ rb_sysopen - /private/var/folders/f7/sm33z6_s2hn5m_2wv8034ws40000gn/T/ruby-build.20210930231444.90464.AqRNEa/ruby-3.0.2/ast.o (Errno::ENOENT)
from /Users/pere/code/tenderjit/misc/ruby_internals.rb:225:in `open'
from /Users/pere/code/tenderjit/misc/ruby_internals.rb:225:in `block in each_object_file'
from /Users/pere/code/tenderjit/misc/ruby_internals.rb:224:in `each'
from /Users/pere/code/tenderjit/misc/ruby_internals.rb:224:in `each_object_file'
from /Users/pere/code/tenderjit/misc/ruby_internals.rb:154:in `each_compile_unit'
from /Users/pere/code/tenderjit/misc/ruby_internals.rb:100:in `process'
from /Users/pere/code/tenderjit/misc/ruby_internals.rb:367:in `get_internals'
from misc/build-ruby-internals.rb:431:in `<main>'
rake aborted!
Command failed with status (1): [/Users/pere/.rbenv/versions/3.0.2/bin/ruby...]
/Users/pere/code/tenderjit/Rakefile:43:in `block in <top (required)>'
/Users/pere/.rbenv/versions/3.0.2/bin/bundle:23:in `load'
/Users/pere/.rbenv/versions/3.0.2/bin/bundle:23:in `<main>'
Tasks: TOP => test => compile => lib/tenderjit/ruby/9b8c3/constants.rb
(See full trace by running task with --trace)
The text was updated successfully, but these errors were encountered:
A colleague and I had this same issue using ruby 3.0.2 installed via rbenv.
I switched to using chruby and installing 3.0.2 using ruby-install and now, I no longer have this issue; I'm able to run the tests successfully.
I'm not sure if there's a more straightforward solution. I haven't dug into the specifics of why this works yet (I've only ever used rbenv and RVM before), but I saw @tenderlove's setup during this online event and I attempted to more closely replicate his by switching installation/version management tools.
I'm getting this error after installing ruby 3.0.2 and running
bundle exec rake test
, it seems a tempfile is not being found:The text was updated successfully, but these errors were encountered: