jhass[m] changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
seydar has joined #ruby
seydar has quit [Ping timeout: 250 seconds]
idiocrash has joined #ruby
nirvdrum has joined #ruby
seydar has joined #ruby
jpn has joined #ruby
idiocrash_ has joined #ruby
idiocrash has quit [Ping timeout: 260 seconds]
seydar has quit [Ping timeout: 240 seconds]
jpn has quit [Ping timeout: 240 seconds]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
seydar has joined #ruby
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
<havenwood> Garb0: Share your code?
<havenwood> Garb0: Usually EOF or see if you're receiving nothing.
<Garb0> havenwood, It's a simple while (line = remote.gets); do_stuff(line.chomp); end
<havenwood> Garb0: An aside, but I like the new option in the last couple Rubies: line = remote.gets(chomp: true); do_stuff(line) end
idiocrash has joined #ruby
<Garb0> havenwood, got it, i'll just do a `transform.eof?` check right before do_stuff
idiocrash_ has quit [Ping timeout: 250 seconds]
idiocrash_ has joined #ruby
idiocrash has quit [Ping timeout: 246 seconds]
gr33n7007h has quit [Ping timeout: 256 seconds]
gr33n7007h has joined #ruby
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oxfuxxx has joined #ruby
Rounin has quit [Ping timeout: 248 seconds]
oxfuxxx has quit [Ping timeout: 248 seconds]
oxfuxxx has joined #ruby
Garb0 has quit [Quit: Leaving]
oxfuxxx has quit [Ping timeout: 248 seconds]
seydar has quit [Ping timeout: 272 seconds]
seydar has joined #ruby
seydar has quit [Ping timeout: 256 seconds]
szkl has quit [Quit: Connection closed for inactivity]
hanzo has joined #ruby
seydar has joined #ruby
seydar has quit [Ping timeout: 260 seconds]
nirvdrum has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
seydar has joined #ruby
<mooff> do_stuff remote.gets(chomp: true) until remote.eof? # :)
white_magic has joined #ruby
seydar has quit [Read error: Connection reset by peer]
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nirvdrum has joined #ruby
seydar has joined #ruby
seydar has quit [Ping timeout: 246 seconds]
white_magic has quit [Quit: Client closed]
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seydar has joined #ruby
seydar has quit [Ping timeout: 250 seconds]
goepsilongo has quit [Quit: Konversation terminated!]
nirvdrum has joined #ruby
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
CrazyEddy has joined #ruby
reset has joined #ruby
jpn has joined #ruby
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jpn has quit [Ping timeout: 248 seconds]
seydar has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
taupiqueur has joined #ruby
seydar has quit [Ping timeout: 240 seconds]
taupiqueur has quit [Ping timeout: 256 seconds]
seydar has joined #ruby
nirvdrum has joined #ruby
seydar has quit [Ping timeout: 240 seconds]
Pixi has quit [Ping timeout: 248 seconds]
roadie has joined #ruby
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pixi has joined #ruby
q3lont has joined #ruby
q3lont has quit [Client Quit]
taupiqueur has joined #ruby
_ht has joined #ruby
hresco3 has quit [Ping timeout: 252 seconds]
hresco3 has joined #ruby
Pixi` has joined #ruby
Pixi has quit [Ping timeout: 248 seconds]
Pixi has joined #ruby
Pixi has quit [Read error: Connection reset by peer]
Pixi` has quit [Ping timeout: 240 seconds]
seabre has quit [Quit: ZNC 1.8.2 - https://znc.in]
seabre has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
hresco3 has quit [Ping timeout: 248 seconds]
hresco3 has joined #ruby
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
taupiqueur has quit [Ping timeout: 256 seconds]
_ht has quit [Remote host closed the connection]
roadie has joined #ruby
taupiqueur has joined #ruby
Rounin has joined #ruby
gproto23 has joined #ruby
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
Pixi has joined #ruby
dionysus69 has joined #ruby
seydar has joined #ruby
seydar has quit [Ping timeout: 250 seconds]
Pixi` has joined #ruby
seydar has joined #ruby
Pixi has quit [Ping timeout: 240 seconds]
Pixi` has quit [Quit: Leaving]
seydar has quit [Ping timeout: 256 seconds]
jpn has joined #ruby
ur5us has joined #ruby
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
fef has joined #ruby
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
gproto23_ has joined #ruby
gproto23 has quit [Ping timeout: 240 seconds]
___nick___ has joined #ruby
Guest55 has joined #ruby
Guest55 has quit [Client Quit]
oxfuxxx has joined #ruby
Nowaker has quit [Ping timeout: 250 seconds]
o|||||o has quit [Ping timeout: 240 seconds]
Nowaker has joined #ruby
oxfuxxx has quit [Ping timeout: 240 seconds]
jpn has quit [Ping timeout: 246 seconds]
seydar has joined #ruby
seydar has quit [Ping timeout: 256 seconds]
peer has quit [Quit: whoops]
ur5us has quit [Ping timeout: 260 seconds]
peer has joined #ruby
peer has quit [Client Quit]
seydar has joined #ruby
peer has joined #ruby
seydar has quit [Ping timeout: 250 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seydar has joined #ruby
jpn has joined #ruby
seydar has quit [Ping timeout: 248 seconds]
seydar has joined #ruby
jpn_ has joined #ruby
seydar has quit [Ping timeout: 256 seconds]
jpn has quit [Ping timeout: 248 seconds]
Tempesta has joined #ruby
seydar has joined #ruby
peer has quit [Quit: whoops]
peer has joined #ruby
seydar has quit [Ping timeout: 248 seconds]
peer has quit [Client Quit]
peer has joined #ruby
peer has quit [Client Quit]
peer has joined #ruby
taupiqueur has quit [Remote host closed the connection]
taupiqueur_ has joined #ruby
o|||||o has joined #ruby
markong has joined #ruby
TomyWork has joined #ruby
fef has quit [Quit: Leaving]
some14u has joined #ruby
seydar has joined #ruby
seydar has quit [Client Quit]
TCZ has joined #ruby
some14u has quit [Ping timeout: 272 seconds]
some14u has joined #ruby
some14u has quit [Read error: Connection reset by peer]
oxfuxxx has joined #ruby
some14u has joined #ruby
some14u has quit [Read error: Connection reset by peer]
some14u has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
some14u has quit [Client Quit]
jpn_ has quit [Ping timeout: 246 seconds]
oxfuxxx has quit [Ping timeout: 248 seconds]
some14u has joined #ruby
jpn has joined #ruby
TCZ has quit [Quit: Tcl has many different data types, not just strings.]
<adam12> morning
<havenwood> g'mornin'
Tempesta has quit [Quit: See ya!]
jpn_ has joined #ruby
<adam12> havenwood: ooh. early morning for you. how's it going?
jpn has quit [Ping timeout: 272 seconds]
Tempesta has joined #ruby
taupiqueur_ has quit [Quit: taupiqueur_]
favadi has joined #ruby
taupiqueur has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
taupiqueur has quit [Ping timeout: 240 seconds]
oxfuxxx has joined #ruby
TCZ has joined #ruby
favadi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> adam12: Need more coffee! Little one was up early. How about you?
<adam12> havenwood: Not bad. Finally getting some nice weather here.
<adam12> My kid never sleeps the night, so I hear ya.
favadi has joined #ruby
hololeap has quit [Remote host closed the connection]
hololeap has joined #ruby
taupiqueur has joined #ruby
bit4bit has joined #ruby
oxfuxxx has quit [Ping timeout: 246 seconds]
maroloccio has joined #ruby
nirvdrum has joined #ruby
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bit4bit has quit [Ping timeout: 250 seconds]
some14u has joined #ruby
TCZ has quit [Quit: Tcl has many different data types, not just strings.]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
favadi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
_ht has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
maroloccio has quit [Quit: WeeChat 3.0]
bit4bit has joined #ruby
u0_a147 has joined #ruby
dionysus69 has joined #ruby
u0_a147 has quit [Client Quit]
u0_a147 has joined #ruby
u0_a147 has quit [Client Quit]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rapha> buddy and his wife got a kid who's like half a year old now and turned out to be a crybaby ... they're both so completely exhausted by now we're starting to sort-of worry
orbyt has joined #ruby
u0_a147 has joined #ruby
gproto23_ has quit [Ping timeout: 240 seconds]
u0_a147 has quit [Client Quit]
<rapha> not sure tho if crybaby is an actual technical term in english tho
<rapha> ah, apparently yes
<nebiros> somebody knows if ruby-debug-ide works with ruby 3.1?, it fails compilation at docker
some14u has joined #ruby
jpn_ has quit [Ping timeout: 246 seconds]
taupiqueur_ has joined #ruby
taupiqueur has quit [Ping timeout: 250 seconds]
taupiqueur_ has quit [Quit: taupiqueur_]
markong has quit [Ping timeout: 272 seconds]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
oxfuxxx has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
hanzo has quit [Quit: Connection closed for inactivity]
TomyWork has quit [Remote host closed the connection]
jpn has joined #ruby
howdoi has joined #ruby
orbyt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adam12> nebiros: Installs fine for me. Maybe paste the output in a Gist or something?
<adam12> rapha: It happens. My one kid slept through the night without fail. My other wants to party at 4am consistently.
sylario has joined #ruby
<nebiros> adam12: let me share it
reset has quit [Ping timeout: 250 seconds]
bit4bit has quit [Ping timeout: 240 seconds]
jpn has quit [Ping timeout: 256 seconds]
idiocrash_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jpn has joined #ruby
jpn has quit [Ping timeout: 256 seconds]
victori has quit [Read error: Connection reset by peer]
victori has joined #ruby
victori has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
unyu has quit [Quit: brb]
unyu has joined #ruby
victori has joined #ruby
dionysus70 has joined #ruby
o|||||o has quit [Ping timeout: 248 seconds]
jpn has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
dionysus70 is now known as dionysus69
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
jpn has quit [Ping timeout: 256 seconds]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
o|||||o has joined #ruby
Vonter has joined #ruby
FetidToot8 has joined #ruby
FetidToot has quit [Ping timeout: 260 seconds]
dionysus70 has joined #ruby
oxfuxxx has quit [Ping timeout: 240 seconds]
FetidToot has joined #ruby
oxfuxxx has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
dionysus70 is now known as dionysus69
FetidToot8 has quit [Ping timeout: 240 seconds]
Pixi has joined #ruby
enyc has quit [Ping timeout: 252 seconds]
<adam12> Oh. It's the debase gem.
<nebiros> exactly, isn't necessary for ruby-debug-ide?, guess yes
Vonter has quit [Quit: WeeChat 3.5]
<adam12> nebiros: Possibly just no release that has the headers for 3.1.1 yet. Has headers for 3.1.0 so I presume they are still supported.
<adam12> 3.1.1 just dropped today I think? Or yesterday? so no surprise yet.
Vonter has joined #ruby
Vonter has quit [Client Quit]
Vonter has joined #ruby
<adam12> ruby-debug-ide needs debase, but doesn't depend on it directly. debase needs the debase source gem, which has no 3.1.1 release.
<nebiros> seems like it fallbacks to 3.1.0
<nebiros> #0 266.1 No source for ruby-3.1.1-p18 (revision 53f5fc4236a754ddf94b20dbb70ab63bd5109b18)
<nebiros> #0 266.1 provided with
<nebiros> #0 266.1 debase-ruby_core_source gem. Falling back to ruby-3.1.0-p0.
<nebiros> Ruby 3.1.2 2022-04-12
<nebiros> I'm at 3.1.1
oxfuxxx has quit [Ping timeout: 256 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 246 seconds]
oxfuxxx has joined #ruby
nirvdrum has joined #ruby
jpn has joined #ruby
gr33n7007h has quit [Read error: Connection reset by peer]
some14u has joined #ruby
gr33n7007h has joined #ruby
<adam12> nebiros: Interesting. I'm not sure then. Maybe the Docker image is broken?
<nebiros> adam12: ruby-3.1.1-bulleye, is the official
<nebiros> I'm trying with 3.1.0
<nebiros> let's see
<adam12> nebiros: What happens if you try with the "unofficial" Docker images from ruby?
<adam12> Yeah that's a good idea as well.
nort has joined #ruby
<adam12> Nope. Unofficial images suffer the same fate. Oh well.
<adam12> I thought the ruby Docker images included full headers but I guess I was wrong. Seems they only include ruby.h
<nebiros> guess I can create my own image with ruby sources
<adam12> Or possibly look at upstreaming the necessary headers.
<adam12> There was recent discussion about dropping the patch level from the ruby version. I wonder if it's related.
<nebiros> adam12: what you mean by upstraming the necessary headers?, like from a deb source?
<adam12> nebiros: Ship a PR to this project to add headers here: https://github.com/ruby-debug/debase-ruby_core_source/tree/master/lib/debase/ruby_core_source
<adam12> Oohh
<adam12> I don't even think it's related.
<adam12> Seems like debase wont' compile.
<adam12> Actually, my brain is fried and this is complicated. I think it's both. debase isn't compiling, but the ruby_core_source gem is installling.
<adam12> But debase isn't compiling _possibly_ because it fell back to 3.1.0, and the ABI might have changed.
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt has joined #ruby
some14u has joined #ruby
<adam12> I think it's just busted. Even providing 3.1.2 headers directly causes it to fallback to the gem that is missing the headers. Then I think it runs into an ABI issue...
<nebiros> probably, I tried with 3.1.0 image, another issue
<nebiros> #0 155.1 [/usr/local/bundle/specifications/globalid-1.0.0.gemspec] isn't a
<nebiros> #0 155.1 Gem::Specification (NilClass instead).
<nebiros> #0 155.1 undefined method `full_name' for nil:NilClass
<nebiros> *sigh*
<adam12> Heh.
<nebiros> how you guys debug this days?, the ol' pp way?
<nebiros> xD
<adam12> nebiros: You see the new debug gem? It's quite nice.
<adam12> There's a vscode extension for it as well, if that's your jam.
<nebiros> tried that one, but doesn't work from outside docker, I mean, I can open the debugger in the docker container, and then attach from the host
<nebiros> but it start throwing errors as f*
<nebiros> so, meh
<adam12> What kind of errors?
<adam12> Are you debugging from an IDE?
<nebiros> I was trying with the vscode ext
jpn has quit [Ping timeout: 272 seconds]
<nebiros> ❯ docker exec -it b308d3a8ac1d /bin/bash
<nebiros> root@b308d3a8ac1d:/workspace# gem install debase --pre
<nebiros> Successfully installed debase-0.2.5.beta2
<nebiros> Building native extensions. This could take a while...
<nebiros> Fetching debase-0.2.5.beta2.gem
<nebiros> 1 gem installed
<nebiros> lol
<nebiros> adam12: inside the image
<nebiros> if I run gem install it works
<adam12> nebiros: Nice. I guess update your Gemfile to use the pre release.
_ht has quit [Remote host closed the connection]
<nebiros> adam12: but that's the weird thing, doesn't work with the Gemfile when I run bundle install
bit4bit has joined #ruby
<nebiros> but after the container is up, I jump inside the container, then I run gem install debase --pre and gem install ruby-debug-ide --pre
<nebiros> and they worked
duderonomy has quit [Read error: Connection reset by peer]
<adam12> Strange.
___nick___ has quit [Ping timeout: 256 seconds]
<adam12> It has to be the `--pre` tho. I can recreate with `--pre` as well.
<adam12> What's your Gemfile + Gemfile.lock look like, wrt debase? Are you specifying the pre there?
<adam12> (`.beta2` or whatever the release is)
<nebiros> gem "debase-ruby_core_source" # gem "debase", ">= 0.2.5.beta2", require: false # gem "ruby-debug-ide", ">= 0.7.3"
<nebiros> I commented those out to not stop the docker build process
rawley has joined #ruby
TCZ has joined #ruby
jpn has joined #ruby
<adam12> Weird. They install fine for me... https://gist.github.com/adam12/4320a39bf30dcf9e3795130ccff7a0bd
<nebiros> yeah, :S
duderonomy has joined #ruby
ur5us has joined #ruby
o|||||o has quit [Ping timeout: 272 seconds]
robotmay has quit [Quit: No Ping reply in 180 seconds.]
robotmay has joined #ruby
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
puts has joined #ruby
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
Thanzex has joined #ruby
Thanzex has quit [Remote host closed the connection]
TCZ has quit [Ping timeout: 272 seconds]
codedchaos has joined #ruby
orbyt has quit [Quit: Textual IRC Client: www.textualapp.com]
rawley has quit [Remote host closed the connection]
puts has quit [Quit: Tcl has many different data types, not just strings.]
dionysus69 has quit [Read error: Connection reset by peer]
jpn has quit [Ping timeout: 272 seconds]
victori has quit [Quit: ZNC 1.8.2 - https://znc.in]
<ox1eef> i am using binding.irb or binding.pry for debugging.
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rapha> adam12: i went beyond the dictionary now, and even though the term crybaby had been in it, now, after proceeding to wikipedia, i believe now that the proper word for it in English is infantile colic or baby colic, as in, a baby that will cry for more than three hours a day, more than three days a week, more than three weeks.
mirage_ has joined #ruby
<havenwood> and the new option, binding.break
mirage_ has quit [Client Quit]
<ox1eef> does that start irb with debugger commands?
hanzo has joined #ruby
<ox1eef> i think that type of debugging was possible back in the day, too - with a combination of pry & pry-stack_explorer. i dont think it supports vscode though.
victori has joined #ruby
jpn has joined #ruby
<ox1eef> tried: ruby -rdebug -e binding.break - looks like it has implemented its own REPL. id prefer to be dropped into irb or pry.
jpn has quit [Ping timeout: 272 seconds]
jpn has joined #ruby
bit4bit has quit [Quit: Leaving]
<havenwood> ox1eef: yeah, it's interesting - ships with an `rdgb` executable too so you can: rdgb foo.rb
<havenwood> ox1eef: and `debugger` or `binding.b` are `binding.break` aliases.
<havenwood> ox1eef: I do like like the `i` view compared to `ls`.
<havenwood> ox1eef: it does feel like pry-byebug or pry-stack_explorer stuff
<havenwood> Wouldn't be Ruby without a new main debugger every year or two.
<havenwood> Maybe this one will catch on?
<havenwood> It's in stdlib at least.
<havenwood> ox1eef: look how long we've made commands to run Ruby?: rdbg -c -- bundle exec ruby foo.rb
* havenwood mutters an incantation
asio has quit [Ping timeout: 272 seconds]
sylario has quit [Quit: Connection closed for inactivity]
ivanf has quit [Quit: Textual IRC Client: www.textualapp.com]
perrierjouet has quit [Ping timeout: 240 seconds]
<ox1eef> yeah, i liked how ^D works by asking you are you sure you want to quit. it does feel polished, but it lacks the familiarity pry or irb has when it comes to commands like show-source, etc.
ivanf has joined #ruby
codedchaos has quit [Ping timeout: 248 seconds]
perrierjouet has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]