ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
ur5us has quit [Ping timeout: 256 seconds]
ejjfunky has quit [Remote host closed the connection]
ejjfunky has joined #crystal-lang
brw has quit [Read error: Connection reset by peer]
brw has joined #crystal-lang
<FromGitter> <acoolstraw> has anyone worked with the x11-cr shard?
ur5us has joined #crystal-lang
[R] has quit [Ping timeout: 256 seconds]
[R] has joined #crystal-lang
ur5us has quit [Ping timeout: 240 seconds]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 240 seconds]
taupiqueur has joined #crystal-lang
<FromGitter> <oprypin:matrix.org> @acoolstraw: you probably should just ask your actual question. applies generally across all communities.
ejjfunky has quit [Quit: Leaving]
<FromGitter> <acoolstraw> well I'm trying to write a window manager and I'm trying to grab left click but #grab_button doesn't seem to work, it seems to be taking different types from what it's given but I can't figure out how to give it the correct types. dpy.default_root_window and dpy.root_window scr return a UInt64 instead of an X11::C::Window for some reason ⏎ ⏎ ```code paste, see link```
taupiqueur has quit [Ping timeout: 256 seconds]
avane_ has joined #crystal-lang
avane has quit [Ping timeout: 256 seconds]
<FromGitter> <jrei:matrix.org> You'll have to dig into the library
<FromGitter> <jrei:matrix.org> And its documentation
<FromGitter> <jrei:matrix.org> It is possible, but unlikely one has used it here - looks quite niche
<FromGitter> <jrei:matrix.org> The forum may be better for this kind of questions
taupiqueur has joined #crystal-lang
taupiqueur has quit [Ping timeout: 256 seconds]
taupiqueur has joined #crystal-lang
ur5us has joined #crystal-lang
hightower2 has quit [Ping timeout: 256 seconds]
hightower2 has joined #crystal-lang
<SamantazFox> Might sound dumb, but I just discovered that one can use symbols to assign values to enums: https://play.crystal-lang.org/#/r/cppv
taupiqueur has quit [Ping timeout: 256 seconds]
<FromGitter> <oprypin:matrix.org> SamantazFox, yea that's definitely a thing. https://crystal-lang.org/reference/1.3/syntax_and_semantics/autocasting.html#symbol-autocasting
ur5us has quit [Ping timeout: 250 seconds]
<SamantazFox> I'm puzzled
<FromGitter> <Blacksmoke16> Require json
* SamantazFox facepalms
<SamantazFox> works *much* better xD
<SamantazFox> Thanks ^^
<SamantazFox> Now, why don't I get the backtrace in here: https://test.invidious.io/api/v1/channels/UCPygLEFniGZmehxouDK-vbw
<FromGitter> <Blacksmoke16> Probably rescuing and returning an error response?
<SamantazFox> The thing is that there are two places returning a 500
<SamantazFox> either L17 or L28
<SamantazFox> Ohhhh, I think I found why....
<SamantazFox> Probably an inheritance problem...
<SamantazFox> Nope, that's not my problem :/
<FromGitter> <Blacksmoke16> its prob a `InfoException` which is getting to that overload that just returns the message
<FromGitter> <Blacksmoke16> id implement some `Log` stuff, so you can get the full context in logs, but not expose that to end users
ejjfunky has joined #crystal-lang
<SamantazFox> We already have logs, but onyl unhandled exceptions are logged there (with how often youtube is breaking stuff, we would end up with gigabytes of logs per minute)
<SamantazFox> As for the InfoException being handled differently, I've removed that part of the code on our test instance, and it did nothing.
<FromGitter> <Blacksmoke16> time to add some `pp` debugs :P
<SamantazFox> yup
hightower2 has quit [Quit: Leaving]
<FromGitter> <acoolstraw> > You'll have to dig into the library ⏎ ⏎ I did :/
<FromGitter> <acoolstraw> been trying for a few days can't seem to figure out how to do it
<SamantazFox> Blacksmoke16 my problem was ultimately coming from here: https://github.com/iv-org/invidious/blob/master/src/invidious/routes/api/v1/channels.cr#L99
<SamantazFox> a part of the code where exceptions arent properly handled
<FromGitter> <Blacksmoke16> oof, that would do it
<SamantazFox> there are so much things to fix ;_;
<SamantazFox> but it's starting to be manageable
<FromGitter> <Blacksmoke16> thats good at lesat
<FromGitter> <Blacksmoke16> least
<FromGitter> <Blacksmoke16> what ever became of that framework discussion?
<SamantazFox> Hasn't moved much
<SamantazFox> I need to clean as much of the code as I can before moving frameworks anyay
<SamantazFox> and switching to a DB migration framework is the priority atm
<SamantazFox> So many changes can't be done without some huge DB changes
ua__ has quit [Excess Flood]
<SamantazFox> I also need to figure out why video playback breaks with crystal 1.3
<FromGitter> <Blacksmoke16> ah gotcha, yea sounds like you got your hands full :S
ua__ has joined #crystal-lang
<SamantazFox> yeah :c I wish Crystal was more popular!