ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.20.5 | Fund Crystal's development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 276 seconds]
voldz1tic3n has joined #crystal-lang
mooe has quit [Quit: Connection closed for inactivity]
<bmcginty> raydf: body_io.gets_to_end should do it.
<FromGitter> <raydf> I'm experiencing problem trying to implement a http proxy client
<bmcginty> raydf: oh?
<FromGitter> <raydf> the body returns empty with gets_to_end
<FromGitter> <raydf> but i tried with curl and everything works ok
<bmcginty> raydf: and that's using .body_io?
<FromGitter> <raydf> yes
<FromGitter> <raydf> in block
<bmcginty> raydf: one sec. is there a test site you're using?
<FromGitter> <raydf> i'm using a real soap site
<FromGitter> <raydf> behind a proxy server
<FromGitter> <raydf> with https
<FromGitter> <raydf> i made the proxy client based on this: https://github.com/crystal-lang/crystal/issues/2963
<bmcginty> raydf: just a sec while I look at that.
<bmcginty> raydf: So you're trying to use the code in that comment, and access a website behind an http proxy, right?
<FromGitter> <raydf> right i'm trying a website with https
<FromGitter> <raydf> i'm using a http proxy to access a website in https
soveran has joined #crystal-lang
<bmcginty> raydf: checking this. formatting went weird on the gh comment, so rewriting slightly.
soveran has quit [Ping timeout: 240 seconds]
p0p0pr37 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<FromGitter> <raydf> The code opens the ssl connection and make the "handshake" with a 200 status code, but after that the data doesn't return
<bmcginty> raydf: it's returning for me, but it's odd. it's not writing as I'd expect...
<FromGitter> <raydf> i'm using charles http proxy
<FromGitter> <raydf> for testing
<FromGitter> <raydf> what http proxy server are you using?
p0p0pr37 has joined #crystal-lang
p0p0pr37 has joined #crystal-lang
<FromGitter> <raydf> which*
<bmcginty> raydf: I'm using privoxy. if the file is too large, something is timing out somewhere. let me try without this proxy and see if there's something in my logs...
voldz1tic3n has quit [Ping timeout: 240 seconds]
vikaton has joined #crystal-lang
<bmcginty> raydf: got it working. let me put this up on gist.
<FromGitter> <raydf> thanks @bmcginty,
<FromGitter> <raydf> If you can share i'll appreciate it
<FromGitter> <raydf> Could you help to identify the change of the code?
<FromGitter> <raydf> looks very similar to the other one
<bmcginty> raydf: removing some of the tls ifdef bits and putting logging in places. If you can try that code, and see if it works, we can debug from there? And sorry, I didn't track the changes I made...
<FromGitter> <raydf> NP, thanks i'll keep testing it
voldz1tic3n has joined #crystal-lang
<FromGitter> <raydf> It worked
<FromGitter> <raydf> now i'll need to figure out why the other website doesn't
<FromGitter> <raydf> thanks
<FromGitter> <raydf> found it
<FromGitter> <raydf> it was returning a 415 because the content-type of the request was wrong.
<bmcginty> raydf: sweet!
maxpowa has quit [Ping timeout: 255 seconds]
maxpowa has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has quit [Ping timeout: 240 seconds]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
mgarciaisaia has quit [Quit: Leaving.]
<FromGitter> <ltran> Hi all, still pretty new to all this crystal stuff, is there a way to do the equivalent of `mkdir -p`, I was looking at File and Dir but nothing caught my eye. I'm trying to write a file to ./tmp/a/b/c.json but the directories are not always created ahead of time.
<FromGitter> <ltran> AH HA! i was looking in the wrong place, FileUtils... silly me :D
TheGillies has left #crystal-lang ["User left"]
vikaton has quit [Quit: Connection closed for inactivity]
voldz1tic3n has quit [Ping timeout: 252 seconds]
mark_66 has joined #crystal-lang
ssvb has quit [Remote host closed the connection]
gloscombe has joined #crystal-lang
mhib has joined #crystal-lang
dostoyev1ky has joined #crystal-lang
literal_ has joined #crystal-lang
stnly_ has joined #crystal-lang
pabs_ has joined #crystal-lang
tatey_ has joined #crystal-lang
jamie_ has joined #crystal-lang
literal has quit [*.net *.split]
minus has quit [*.net *.split]
tatey has quit [*.net *.split]
jamie_ca has quit [*.net *.split]
dostoyevsky has quit [*.net *.split]
pabs has quit [*.net *.split]
stnly has quit [*.net *.split]
jamie_ is now known as jamie_ca
tatey_ is now known as tatey
danielpclark has quit [Remote host closed the connection]
minus has joined #crystal-lang
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 260 seconds]
Raimondii is now known as Raimondi
<Yxhuvud> ltran: I'd afraid that is the ruby heritage showing its worst side.
ssvb has joined #crystal-lang
danielpclark has joined #crystal-lang
sz0 has joined #crystal-lang
bjz has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
bjz has quit [Ping timeout: 240 seconds]
bjz_ has joined #crystal-lang
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pabs_ is now known as pabs
matp has quit [Remote host closed the connection]
<shelvacu> Huh, I thought new issues got posted by a bot.
<shelvacu> Anyways, did I do this right? https://github.com/crystal-lang/crystal/issues/4011
matp has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
sz0 has quit [Quit: Connection closed for inactivity]
Raimondi has quit [Ping timeout: 268 seconds]
A124 has quit [Read error: Connection reset by peer]
A124 has joined #crystal-lang
dostoyev1ky is now known as dostoyevsky
Raimondi has joined #crystal-lang
<Yxhuvud> It may make sense to implement a BigArray if you need that. Having it available may be useful even if it probably shouldn't be the default behaviour. Somewhat similar to how big integers work.
<FromGitter> <drosehn> There's also the question of raising errors when the current Array is used with indexes that it cannot handle, although that may not be simple to catch in all circumstances.
mark_66 has quit [Remote host closed the connection]
<Yxhuvud> True. It would be interesting to know what that extra op and (probably successful) branch prediction would cost in practice.
<crystal-gh> [crystal] asterite pushed 3 new commits to master: https://git.io/vD0oE
<crystal-gh> crystal/master dec5d9a Ary Borenszweig: Fixed #4004: incorrect to_s for `[]` and `[]=` calls with named arguments
<crystal-gh> crystal/master 982add4 Ary Borenszweig: Fixed #4009: ICE on untyped var
<crystal-gh> crystal/master e0e713c Ary Borenszweig: Fixed #4007: missing debug location for raise of untyped expression
<DeBot> https://github.com/crystal-lang/crystal/issues/4004 (`foo[bar: :baz]` doesn't work when passed into macro)
gloscombe has quit [Remote host closed the connection]
poikon has quit [Remote host closed the connection]
jeromegn has quit [Remote host closed the connection]
twisterghost has quit [Remote host closed the connection]
Majost has quit [Remote host closed the connection]
aemadrid has quit [Remote host closed the connection]
hmans has quit [Remote host closed the connection]
mroth has quit [Remote host closed the connection]
Hates_ has quit [Remote host closed the connection]
ome has quit [Remote host closed the connection]
voldz1tic3n has joined #crystal-lang
danzilio has quit [Remote host closed the connection]
manveru has quit [Remote host closed the connection]
avdi has quit [Write error: Broken pipe]
kellabyte has quit [Remote host closed the connection]
voldz1tic3n has quit [Ping timeout: 255 seconds]
p0p0pr37 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
A124 has quit [Read error: Connection reset by peer]
A124 has joined #crystal-lang
avdi has joined #crystal-lang
hmans has joined #crystal-lang
jeromegn has joined #crystal-lang
mroth has joined #crystal-lang
aemadrid has joined #crystal-lang
ome has joined #crystal-lang
manveru has joined #crystal-lang
kellabyte has joined #crystal-lang
voldz1tic3n has joined #crystal-lang
ome has quit [Remote host closed the connection]
poikon has joined #crystal-lang
twisterghost has joined #crystal-lang
Hates_ has joined #crystal-lang
soveran has quit [Remote host closed the connection]
ome has joined #crystal-lang
danzilio has joined #crystal-lang
bjz has joined #crystal-lang
Majost has joined #crystal-lang
soveran has joined #crystal-lang
<travis-ci> crystal-lang/crystal#dec5d9a (master - Fixed #4004: incorrect to_s for `[]` and `[]=` calls with named arguments): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/199695667
<DeBot> https://github.com/crystal-lang/crystal/issues/4004 (`foo[bar: :baz]` doesn't work when passed into macro)
mhib has quit [Remote host closed the connection]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rinkana has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vDEIj
<crystal-gh> crystal/master 31693b5 Ary Borenszweig: Fixed #4002: local variable re-assignment in rescue block doesn't merge types only after that point
<crystal-gh> crystal/master 4ca7aa0 Ary Borenszweig: Fixed #3991: Wrong debug info for block argument passed with &
<DeBot> https://github.com/crystal-lang/crystal/issues/3991 (Wrong debug info for block argument passed with &)
<DeBot> https://github.com/crystal-lang/crystal/issues/4002 (local variable re-assignment in rescue block doesn't merge types only after that point)
<Rinkana> Can i requre an class name as parameter like : def foo(item : Bar) item.new end
<BlaXpirit> Rinkana, yes.
<BlaXpirit> >> def foo(item : Bar.class); item.new; end
<DeBot> BlaXpirit: in line 4: can't execute OpAssign in a macro - https://carc.in/#/r/1m83
<BlaXpirit> yeah great
<Rinkana> Ah, the .class
<Rinkana> How could i forget that one...
<Rinkana> Thanks!
<BlaXpirit> passing subclasses may be hit and miss tho
<Rinkana> They should all inherit from the same base class, so i do not think it will cause any issues
DeBot has quit [Remote host closed the connection]
DeBot has joined #crystal-lang
DeBot has quit [Remote host closed the connection]
DeBot has joined #crystal-lang
DeBot has quit [Remote host closed the connection]
DeBot has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vDE3A
<crystal-gh> crystal/master 13d566b Ary Borenszweig: Fixed #3995: Syntax error when calling absolutely scoped class with shorthand notation
<crystal-gh> crystal/master ac6b628 Ary Borenszweig: Fixed #3945: missing location for debug info for new with custom allocate
<DeBot> https://github.com/crystal-lang/crystal/issues/3945 (crystal-ohm causes "Module validation failed" with --release)
<DeBot> https://github.com/crystal-lang/crystal/issues/3995 (Syntax error when calling absolutely scoped class with shorthand notation)
DeBot has quit [Remote host closed the connection]
DeBot has joined #crystal-lang
DeBot has quit [Remote host closed the connection]
DeBot has joined #crystal-lang
DeBot has quit [Remote host closed the connection]
DeBot has joined #crystal-lang
DeBot has quit [Remote host closed the connection]
DeBot has joined #crystal-lang
DeBot has quit [Remote host closed the connection]
DeBot has joined #crystal-lang
DeBot has quit [Remote host closed the connection]
DeBot has joined #crystal-lang
voldz1tic3n has quit [Ping timeout: 256 seconds]
DeBot has quit [Remote host closed the connection]
DeBot has joined #crystal-lang
<jhass> so if anybody is bored, DeBot does expose some codegen bugs, that is for example segfault when trying to pretty print Framework::Bot or false nil assertion failure when accessing Framework::Bot#user
<BlaXpirit> i wouldn't say i'm bored
<BlaXpirit> still dreaming about that AST transformation i mentioned
<jhass> Well, Framework::Configuration seems to be the offender actually messing with the what comes after it
soveran has quit [Remote host closed the connection]
<jhass> nvm, its reference is just being messed up I guess
<RX14> here's a cool idea: use the crystal compiler in crystal to create an auto-reducer for crystal bugs
<jhass> :D
<RX14> added benefit: find ASTNode#to_s bugs too
<RX14> actually you probably wouldn't need to ast#to_s
<RX14> but doing that would be fun too
<RX14> seeing if parse -> to_s for the whole stdlib specs would pass or even compile would be fun
<jhass> for now I'd like DeBot to not crash all the time though :P
<RX14> >Parse: 00:00:00.0000420 ( 0.19MB)
<RX14> on spec/all_spec.cr
<RX14> that can't be true
<RX14> 42us for the whole of everything?
<RX14> it Parse only for the top file?
<RX14> is*
<jhass> okay, so it's something in structs
<jhass> Framework::User from record to class fixes it
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vDEgx
<crystal-gh> crystal/master 1e2dc90 Ary Borenszweig: Fixed #3977: Invalid memory access when using uninitialized Type
<DeBot> https://github.com/crystal-lang/crystal/issues/3977 (Invalid memory access when using uninitialized Type)
p0p0pr37 has joined #crystal-lang
Rinkana has quit [Ping timeout: 260 seconds]
<travis-ci> crystal-lang/crystal#31693b5 (master - Fixed #4002: local variable re-assignment in rescue block doesn't merge types only after that point): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/199751398
<DeBot> https://github.com/crystal-lang/crystal/issues/4002 (local variable re-assignment in rescue block doesn't merge types only after that point)
DeBot has quit [Quit: Crystal IRC]
DeBot has joined #crystal-lang
<crystal-gh> [crystal] matiasgarciaisaia closed pull request #3957: Fix window.sessionStorage being not accessible in local paths (master...fix-local-sessionstorage-error) https://git.io/vDkO3
mgarciaisaia has quit [Quit: Leaving.]
DeBot has quit [Quit: Crystal IRC]
DeBot has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
Ven has joined #crystal-lang
mgarciaisaia has quit [Ping timeout: 258 seconds]
<travis-ci> crystal-lang/crystal#13d566b (master - Fixed #3995: Syntax error when calling absolutely scoped class with shorthand notation): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/199764191
<DeBot> https://github.com/crystal-lang/crystal/issues/3995 (Syntax error when calling absolutely scoped class with shorthand notation)
mgarciaisaia has joined #crystal-lang