<rapha>
`glob = glob.split('/')[-2..].join('/')` ... why does that work fine in pry and an .rb file, but fails with "syntax error, unexpected '{ arg'" in a method inside a Rakefile?
<lfalcao>
o/
<lfalcao>
whats the content of glob?
<rapha>
lfalcao: '../Basra/gt3_display/*.txt'
<nakilon>
doesn't rake provide backtrace? with --trace probably
<rapha>
what i don't get is, it errors out even before/without running that code, just parsing it
<rapha>
org/jruby/RubyKernel.java:1009:in `load' ... what in the world?!!
<rapha>
who even allowed it to use jruby?!
<jhass>
:D
<jhass>
check the hashbang?
<jhass>
head $(which rake)
<rapha>
jruby indeed
<rapha>
and i do have to have it instaleld
<jhass>
probably overwrote it
<rapha>
but how do i get my regular ruby back :-(
<jhass>
how did you install everything?
<rapha>
er
<rapha>
pacman?!
<jhass>
oh?
<rapha>
(hopefully?!?)
<jhass>
pacman -Qo "$(which rake)"
lfalcao has quit [Ping timeout: 264 seconds]
<rapha>
aha, indeed no. rake was installed via gem, and only for the user.
<rapha>
that's why i hate jruby, it always makes me jump through hoops and messes everythign else up.
jmcgnh has quit [Ping timeout: 264 seconds]
<jhass>
what I do is I disable --user-install, install chruby and then create symlinks in .rubies/<alias>/bin/ruby
<rapha>
interesting, okay
<jhass>
with that you can even add more with ruby-install and switch between everything with chruby
<rapha>
only knew rvm
<jhass>
then just have your shellrc select one of them by default (but not system)
<rapha>
that sounds much more robust than what i have at the moment
<jhass>
the current iteration of the ruby-2.7 package in community messes a bit with those assumptions though, didn't look into it yet
<rapha>
for now, back to system-ruby, system-rake, system-nokogiri ... and guess what, everything loads 100 million times faster again all of a sudden!
<jhass>
haha
<nakilon>
"TypeError: {:keyword_init=>true} is not a symbol"
<nakilon>
I also posted it to the ruby maillist but it didn't appear there idk why
<nakilon>
I also mailed the guy who is responsible for maillist, asking why my mail didn't appear, but got no answer
<nakilon>
so what's the point of incrementing versions up to >3 if 2.4 isn't being fixed...
<jhass>
well now 2.4 and 2.5 will never get fixed, 2.6 very maybe might get fixed, 2.7 maybe get fixed, 3.0 would be the first right now to get the fix
<nakilon>
this bug is still there, no matter if it's 2.6 or 3.0
<nakilon>
it's still not fixed
<nakilon>
incrementing the version just to get even more unfixed bugs? no thanks
<nakilon>
I mean the alpine ruby is just broken
<nakilon>
but most of the people don't know it because use ruby to host rails websites and stuff
<jhass>
tbf a good part of it is probably to blame on musl-libc
<nakilon>
guy from alpine said that ruby's image seems to include binaries built on glibc instead of musl
<nakilon>
since he's not rubyist it's the farthest he could guess
<jhass>
huh
<nakilon>
everything I use actually works on alpine, I never need to take anything else, except of this case that reveals it's broken
<jhass>
that image is by docker themselves though as far as I see
<nakilon>
and there are logs that show that the breaking didn't happen on alpine version upgrade but on ruby;s
Garb0 has joined #ruby
<nakilon>
FROM ruby:${RUBY_VERSION}-alpine${ALPINE_VERSION}
<nakilon>
IIRC I also even tried to take pure alpine image, then install ruby (from packages that are made by ruby team as I understand and IIRC), and it was the same error
<jhass>
but then the alpine's guy story about gnu binaries in there doesn't seem to quite match up
<nakilon>
/shrug
<nakilon>
that's his guess based on the exception message I guess
<jhass>
just saying I've seen enough stuff break in weird ways because musl-libc "improved" something
<jhass>
also personally I'd probably rather give up on alpine than maintained ruby versions, but whatever 🤷
<nakilon>
if you go back in git history and compare ruby 2.3 alpine 3.8 and ruby 2.4 alpine 3.8 they only differ like this https://dpaste.org/cqT0/slim -- what are those hashes? -- they are from https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR%-rc}/ruby-$RUBY_VERSION.tar.xz
<nakilon>
as I said everything works on alpine, it's defacto a standard
<nakilon>
something changed in ruby and was broken in 2.4 and not fixed since then
Garb0 has quit [Ping timeout: 264 seconds]
<nakilon>
no one cares because no one makes native extentions
<nakilon>
only so few people that they either don't know each other or don't want to help
<nakilon>
if you ask about native extensions on SO the question just gets deleted
<leftylink>
hm, interesting, they compare it to header files. I used to have a very negative opinion of header files but perhaps I should take some time to re-evaluate and see whether my opinion has changed
<leftylink>
I used to get criticised about my negative opinion
Garb0 has quit [Quit: Garb0]
<leftylink>
ah interesitng, I thought sorbet was just an arbitrary meaningless name, but there's soemthing to it. it abbreviates to srb
<leftylink>
I do not know what the s stands for. possibly stripe
aigoo has joined #ruby
aigoo has left #ruby [#ruby]
graywolf has quit [Quit: WeeChat 3.1]
coda has quit [Ping timeout: 248 seconds]
Garb0 has joined #ruby
chonkbit has quit [Ping timeout: 264 seconds]
marahin has quit [Ping timeout: 244 seconds]
marahin has joined #ruby
geewiz has quit [Ping timeout: 264 seconds]
Cata has quit [Quit: Leaving]
<nakilon>
jruby does not install -- I'm not sure where I should ask: in jenv, jruby or rbenv: https://dpaste.org/3ikV/slim
glider has quit [Quit: ZNC 1.9.x-git-111-f2cdc3db - https://znc.in]
<jhass>
haha
<jhass>
just overwrite the /Users/nakilon/.jenv/versions/system/bin/java symlink for the moment?
<nakilon>
but there is no versions/system
<nakilon>
it's kind of virtual name for system java
<jhass>
put one there for now? :P
<nakilon>
same as there is no versions/system for rbenv
<nakilon>
ok, just a sec
gearnode has quit [Ping timeout: 248 seconds]
<nakilon>
shoud I chmod it?
<jhass>
no the target's modes shoud apply iirc
<jhass>
I mean not that running chmod on it would do any harm
<nakilon>
Installed jruby-9.2.17.0
<nakilon>
wtf
<nakilon>
it worked
glider has joined #ruby
jmcgnh has quit [Remote host closed the connection]
<jhass>
now the question is does it keep functioning if you remove that link again to not confuse jenv :D