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
_whitelogger has joined #crystal-lang
<FromGitter> <MElborolossy_twitter> > OTOH the type restriction on `call_array` signature could make `[base]` an `Array(Base)`, not `Array(TypeUsedByTheCaller)`... anyway, the docs says it's not fully supported.
<FromGitter> <MElborolossy_twitter> > Hello everyone, I'm new with Crystal and I need a small help to Debug Crystal in VSCode ⏎ > I found online articles but nothing works for me ⏎ > if there is a new updated article or tutorial, I will be very blessed. ⏎ > Thanks in advance ⏎ ... [https://gitter.im/crystal-lang/crystal?at=5f91833aea6bfb0a9a4f40de]
<FromGitter> <Blacksmoke16> would prob help if you share the error/problem
<FromGitter> <MElborolossy_twitter> no errors, just not working ⏎ I need to debug code using vscode on ubuntu 20.04
<FromGitter> <Blacksmoke16> debug meaning like breakpoints and stuff?
<FromGitter> <MElborolossy_twitter> yes
<FromGitter> <Blacksmoke16> AFAIK its not 100% supported, at least out of the box
<FromGitter> <Blacksmoke16> reading thru those i think there some `LLDB` plugin, then you point something to some formatter file? :shrug: i never used it
<FromGitter> <MElborolossy_twitter> yes, there is a lldb and gdb ways, but I think there is something missed from me to make it works
<FromGitter> <MElborolossy_twitter> I will read the link and I hope I found the solution ⏎ Thanks @Blacksmoke16
<FromGitter> <Blacksmoke16> https://forum.crystal-lang.org/t/debugger-support/1325/115 are the instructions, it has since been released so dont need to compile his fork
<FromGitter> <Dan-Do> Though I cannot help, I can tell that pp! macro is my best friend till now :)
<FromGitter> <MElborolossy_twitter> yes, it helps @Dan-Do , but sometimes debugging will be much faster and easier and also cleaner
<FromGitter> <asterite> @MElborolossy_twitter there's no debugger support in Crystal except being able to see the values of integers and points. I would abandon the idea of debugging crystal code for now. Your best bet is puts/print debugging
f1reflyylmao is now known as f1refly
<FromGitter> <grkek> This test task looks sketchy as hell, @vprelovac_gitlab approached me with a proposal from Kagi.ai, read it and you guys decide if that is a normal task for am interview test or not.
<FromGitter> <grkek> Imo sketchy af
<FromGitter> <grkek> super sus
<oprypin_> grkek, why are u sharing this wtf :D
<FromGitter> <grkek> shi
<FromGitter> <grkek> t
<FromGitter> <grkek> wrong chat
<FromGitter> <grkek> how do I delete
<FromGitter> <grkek> AAAAAAA
<yxhuvud> This is copied to IRC, where there is no deletion.
<FromGitter> <grkek> FUCK FUCK DUCK DFUCK FUCK
<FromGitter> <grkek> How do I delete from IRC
<FromGitter> <grkek> WHAT DO I DO NOW??????!?!?!?!?!
<sorcus> grkek: I don't think you can X-)
<FromGitter> <grkek> Well I am in deep shit right now
<FromGitter> <grkek> Knee deep in shit
<FromGitter> <grkek> The only thing they fear is shit
<FromGitter> <grkek> BFG Shit
<sorcus> grkek: Why not to copy source of this document to another and delete original?
gangstacat has quit [Ping timeout: 272 seconds]
gangstacat has joined #crystal-lang
go|dfish has quit [Remote host closed the connection]
go|dfish has joined #crystal-lang
zorp has quit [Read error: Connection reset by peer]
Seich has joined #crystal-lang
Seich has quit [Quit: Gone fishing.]
Seich has joined #crystal-lang
<FromGitter> <j8r> noice, got CLI type safety without all this macros... Thanks to a forall trick with generics
<FromGitter> <j8r> We can create a generic with variable,s with any type we want, without specifying it
<FromGitter> <j8r> like this: https://carc.in/#/r/9v6x
<FromGitter> <Blacksmoke16> hows that any better than https://carc.in/#/r/9v6z?
<FromGitter> <j8r> ha, it works too like this?
<FromGitter> <Blacksmoke16> yea
<FromGitter> <j8r> Gonna use this then, didn't remember this section
<FromGitter> <Blacksmoke16> and i assume its runtime type saftey?
<FromGitter> <j8r> hum, got a `Error: can't infer the type parameter...`
<FromGitter> <Blacksmoke16> guess in that case you need to provide them?
<FromGitter> <j8r> that's because they must be defined
<FromGitter> <j8r> https://carc.in/#/r/9v71
<FromGitter> <Blacksmoke16> ah rip
<FromGitter> <j8r> compile time type safety :P
<FromGitter> <Blacksmoke16> raises at runtime if it cant convert a value tho?
<FromGitter> <j8r> for this sure
<FromGitter> <j8r> I mean, safety for options/arguments that a method require
<FromGitter> <j8r> an no possible duplicates in commands too
<FromGitter> <j8r> because of the nature of named tuples
<FromGitter> <j8r> an other thing is if I have a command, which can have 2 options, the method called *must* take this 2 options has arguments
<FromGitter> <j8r> I have done a trick with named tuples, like `action: { "SomeClass.some_method": 0 }`
deavmi has quit [Ping timeout: 272 seconds]
deavmi has joined #crystal-lang
Seich has quit [Quit: Gone fishing.]
Seich has joined #crystal-lang
daemonwrangler has quit [Ping timeout: 265 seconds]
Seich has quit [Quit: Gone fishing.]
Seich has joined #crystal-lang
daemonwrangler has joined #crystal-lang
Seich has quit [Client Quit]
Seich has joined #crystal-lang
Seich has quit [Quit: Gone fishing.]
Seich has joined #crystal-lang
Seich has quit [Client Quit]
Seich has joined #crystal-lang
yukai has joined #crystal-lang