<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.
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
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 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
<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