jhass changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Crystal 0.35.1 | 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
<oprypin> is there any way for crystal to run a script from stdin AND accept argv
hightower2 has quit [Ping timeout: 260 seconds]
duane has quit [Ping timeout: 265 seconds]
duane has joined #crystal-lang
v2px__ has quit [Ping timeout: 272 seconds]
Liothen has quit [Quit: Liothen]
Liothen has joined #crystal-lang
r0bby has quit [Read error: Connection reset by peer]
r0bby has joined #crystal-lang
f1reflyylmao has joined #crystal-lang
f1refly has quit [Ping timeout: 260 seconds]
deimos_ has joined #crystal-lang
avane has quit [Quit: ZNC - https://znc.in]
avane has joined #crystal-lang
deimos__ has joined #crystal-lang
deimos_ has quit [Ping timeout: 260 seconds]
deimos__ is now known as deimos_
deimos__ has joined #crystal-lang
deimos_ has quit [Ping timeout: 260 seconds]
deimos__ is now known as deimos_
deimos__ has joined #crystal-lang
deimos_ has quit [Ping timeout: 258 seconds]
deimos__ is now known as deimos_
deimos_ has quit [Client Quit]
duane has quit [Ping timeout: 260 seconds]
gangstacat has quit [Quit: Ĝis!]
gangstacat has joined #crystal-lang
mps has joined #crystal-lang
ua_ has quit [Ping timeout: 260 seconds]
deimos_ has joined #crystal-lang
deimos_ has quit [Client Quit]
_whitelogger has joined #crystal-lang
f1refly has joined #crystal-lang
f1reflyylmao has quit [Ping timeout: 272 seconds]
f1reflyylmao has joined #crystal-lang
f1refly has quit [Ping timeout: 260 seconds]
yukai has quit [Ping timeout: 256 seconds]
f1reflyylmao is now known as f1refly
Elouin has quit [Quit: Ping timeout (120 seconds)]
Elouin has joined #crystal-lang
ua has joined #crystal-lang
Flipez has quit [Quit: The Lounge - https://thelounge.github.io]
Flipez has joined #crystal-lang
v2px__ has joined #crystal-lang
<FromGitter> <Dan-Do> how to debug this issue which suddenly comes
<FromGitter> <Dan-Do> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5f997534c6fe0131d4bee075]
duane has joined #crystal-lang
<FromGitter> <Blacksmoke16> are you doing anything with json builder?
<FromGitter> <Dan-Do> I tried to add `var.to_json` at the very begin of main entry file, but still got this err
<FromGitter> <Dan-Do> nope in my code
<FromGitter> <Blacksmoke16> doing anything with json other than manually calling `.to_json` on stuff?
<FromGitter> <Dan-Do> oops, actually one, but it's in the route of kemal, which only be called when access it on browser
<FromGitter> <Dan-Do> while I tested .to_json at the beginning
<FromGitter> <Blacksmoke16> :shrug: without looking at the code its impossible to say
<FromGitter> <Blacksmoke16> just that somewhere for some reason you're doing a `.to_json` using the same json builder before the initial json doc was completed
<FromGitter> <Dan-Do> I am trying to reduce the code
<FromGitter> <Blacksmoke16> πŸ‘
<FromGitter> <Dan-Do> the err seems come form this macro
<FromGitter> <Dan-Do> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5f9978a9bf955735eb44f410]
<FromGitter> <Dan-Do> if I change to this, the err disappear
<FromGitter> <Dan-Do> ```macro my_render(view, data, layout = base) ⏎ "" ⏎ end``` [https://gitter.im/crystal-lang/crystal?at=5f9978ca7cac87158f708729]
<FromGitter> <Blacksmoke16> render method is what i would look into more
<FromGitter> <Dan-Do> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5f9979dcc10273610acf3fe4]
<FromGitter> <Blacksmoke16> :shrug:
<FromGitter> <grkek> What do I do now?
<FromGitter> <Blacksmoke16> try and reduce the code
<FromGitter> <Dan-Do> seems come from this
<FromGitter> <Dan-Do> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5f997d9ec6fe0131d4bef8e8]
<FromGitter> <Dan-Do> omit it then no error
<FromGitter> <Blacksmoke16> well there you go, another clue :p
<FromGitter> <Dan-Do> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5f997dd12a35440715ee77f7]
<FromGitter> <grkek> @Blacksmoke16 reduce the code?
<FromGitter> <Dan-Do> I guess he talk to me :)
<FromGitter> <Blacksmoke16> no, it was to @grkek
<FromGitter> <Blacksmoke16> i.e. reduce the amount of code you need to reproduce the bug
<FromGitter> <Blacksmoke16> instead of needing to clone/run an entire repo worth of code
<FromGitter> <grkek> It is small
<FromGitter> <grkek> not that much
<FromGitter> <grkek> it bugs out on the ui/box.cr
<FromGitter> <grkek> i fixed it by removing the many properties I had
<FromGitter> <grkek> Oh now I understand
<FromGitter> <grkek> I gave it a child of its own self so it overflowed
<FromGitter> <grkek> :DDD
<FromGitter> <grkek> shit kms
<FromGitter> <grkek> Yeah that fixed it
<FromGitter> <grkek> But it is still a compiler bug
<FromGitter> <Blacksmoke16> right so now that you know the problem, make a smaller example
<FromGitter> <Dan-Do> back to my issue, just delete some line on the method `def sinuous_generate_transpile(layout, data)`, compile, run ok, then CTRL+Z, compile, magically gone (the same code)
<FromGitter> <Dan-Do> :D
<FromGitter> <Dan-Do> very very strange, huh :D
<FromGitter> <grkek> I don't really know how the internals of the Gtk shard work tho
duane has quit [Ping timeout: 240 seconds]
duane has joined #crystal-lang
deimos_ has joined #crystal-lang
renich has joined #crystal-lang
renich has quit [Client Quit]
renich has joined #crystal-lang
renich has quit [Quit: Leaving.]
renich has joined #crystal-lang
Flipez has quit [Quit: Ping timeout (120 seconds)]
Flipez has joined #crystal-lang
renich has quit [Quit: Leaving.]
baweaver has joined #crystal-lang
hightower2 has joined #crystal-lang
<hightower2> Hey oprypin did you get an answer to "is there any way for crystal to run a script from stdin AND accept argv"?
MasterdonX has quit [Ping timeout: 256 seconds]
MasterdonX has joined #crystal-lang
MasterdonX has quit [Ping timeout: 264 seconds]
hightower2 has quit [Ping timeout: 272 seconds]
<FromGitter> <kaukas_gitlab> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5f99d1497cac87158f717f0b]
MasterdonX has joined #crystal-lang
MasterdonX has quit [Read error: Connection reset by peer]
MasterdonX has joined #crystal-lang
masterdonx2 has joined #crystal-lang
MasterdonX has quit [Ping timeout: 260 seconds]
holst has quit [*.net *.split]
<FromGitter> <lbarasti> Hi all, just wanted to share some exciting news: I've opened the call for speakers for a Crystal user conference to be held on Fri 11 December 2020. ⏎ You can submit a talk proposal here! https://forms.gle/tDSfrTQuWhSVmQo4A
<oprypin> hightower2, no
yukai has joined #crystal-lang