ChanServ changed the topic of #crystal-lang to: The Crystal programming language | | Fund Crystal's development: | GH: | Docs: | Gitter:
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> <> @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> <> You'll have to dig into the library
<FromGitter> <> And its documentation
<FromGitter> <> It is possible, but unlikely one has used it here - looks quite niche
<FromGitter> <> 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:
taupiqueur has quit [Ping timeout: 256 seconds]
<FromGitter> <> SamantazFox, yea that's definitely a thing.
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:
<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:
<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!