Closed illtellyoulater closed 4 years ago
I created an empty ruby2_keywords.rb
and then ocra compiled my script just fine. It would be great though to find an actual solution :)
It looks like ruby2_keywords.rb
has been added as a core ruby feature in 2.7.0.
Calling ruby --disable-all -e 'puts $LOADED_FEATURES'
returns:
enumerator.so
thread.rb
rational.so
complex.so
ruby2_keywords.rb
C:/Ruby/Ruby27-x64/lib/ruby/2.7.0/x64-mingw32/enc/encdb.so
C:/Ruby/Ruby27-x64/lib/ruby/2.7.0/x64-mingw32/enc/trans/transdb.so
C:/Ruby/Ruby27-x64/lib/ruby/2.7.0/x64-mingw32/enc/windows_1252.so
This file is nowhere to be found and ocra feature collection interprets it as relative to cwd.
Ruby 2.6.5 does not list this file.
So yeah, until @larsch comes back we will have to live with switching back to 2.6.5 or the monkey patch mentioned in my previous comment.
I did that as well but for some reason it did not work. I will post more details as soon as I get back to it.
Il Lun 2 Mar 2020, 12:49 Paul notifications@github.com ha scritto:
It looks like ruby2_keywords.rb has been added as a core ruby feature in 2.7.0.
Calling ruby --disable-all -e 'puts $LOADED_FEATURES' returns:
enumerator.so thread.rb rational.so complex.so C:/Ruby/Ruby26-x64/lib/ruby/2.6.0/x64-mingw32/enc/encdb.so C:/Ruby/Ruby26-x64/lib/ruby/2.6.0/x64-mingw32/enc/trans/transdb.so C:/Ruby/Ruby26-x64/lib/ruby/2.6.0/x64-mingw32/enc/windows_1252.so
This file is nowhere to be found and ocra feature collection interprets it as relative to cwd.
Ruby 2.6.5 does not list this file.
So yeah, until @larsch https://github.com/larsch comes back we will have to live with switching back to 2.65 or the monkey patch mentioned in my previous comment.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/larsch/ocra/issues/156?email_source=notifications&email_token=AAXPWE5NR2PZSSJYJCDQJDTRFOMNBA5CNFSM4K4HIAKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENPAPDA#issuecomment-593364876, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXPWE2JPYF2ZE3SLOZ4CT3RFOMNBANCNFSM4K4HIAKA .
c:\ok> ocra .\test.rb