<FromGitter>
<valamorgon> @velddev like @j8r said, I downloaded older version and replace it with the existing one at the path, didn't have any issue until now. But you might want to delete /home/yourname/.cache/crystal/ to get everything work
duane_ has quit [Ping timeout: 265 seconds]
<FromGitter>
<valamorgon> when I require "xml" I got this error: /usr/bin/x86_64-linux-gnu-ld: cannot find -lxml2 ⏎ I guess there is a missing dependency?
<FromGitter>
<EmilieGliech_twitter> That's what I did, but I have an error, I have to do `make spec` before but when I do that I get this error "Error: File spec/std/data/compiler_sample does not exist" and I don't understand why. I do have version 0.25.1 of crystal
rohitpaulk has quit [Ping timeout: 260 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 256 seconds]
<crystal-gh>
[crystal] ysbaddaden closed pull request #6307: Fix: missing codegen cast from metaclass union to virtual metaclass (master...bug/6298-cast-metaclass-union-to-virtual-metaclass) https://git.io/fwKnT
<crystal-gh>
[crystal] mamantoha opened pull request #6311: added syntax sugar to check if URI is absolute or relative (master...uri-absolute-relative) https://git.io/f1XTY
<FromGitter>
<vegai> hello
<FromGitter>
<icyleaf> @EmilieGliech_twitter execute `make clean` then try again.
<FromGitter>
<bararchy> I'm trying to use JSON::Serilizable with SHAInet to have a network save and load from file.
<FromGitter>
<bararchy> I'm having some issues with the `@Logger`
<FromGitter>
<bararchy> Is there a way to tell the JSON to not take the logger ?
<FromGitter>
<bararchy> @bcardiff any tip regarding ommiting certain types from the serialization?
<crystal-gh>
[crystal] straight-shoota opened pull request #6312: Fix: Rename datapath helper to compiler_datapath for compiler specs (master...jm/feature/specs-tempdir-separate-helper) https://git.io/fMvnr
<FromGitter>
<bcardiff> in which scenario @bararchy ?
<FromGitter>
<bararchy> I'm trying to use JSON:: Serelizable with a class that has Logger as a instance var, how can I omit it from the .to_json action?
<crystal-gh>
[crystal] straight-shoota opened pull request #6314: Human readable formatting for numbers (master...jm/feature/humanize) https://git.io/fMbWU
<FromGitter>
<bararchy> @bcardiff Is there a way to overload the `initialize(pull : ::JSON::PullParser, dummy : Nil)` to add some default stuff that can't be Serialized?
<FromGitter>
<bararchy> I want to add some instance vars etc.. but don't want to totally overload the method, I want to add only 2,3 things
<FromGitter>
<vlazar> What is a good way to parse JSON when JSON document structure doesn't match Crystal objects? Say JSON document has data deeply nested and object is not. Or maybe the structure is completely different like parsing something like an array [1, 2] from JSON document to some fields in object like { foo: 1, bar: 2 }
<FromGitter>
<bararchy> it seems to compile
duane has joined #crystal-lang
<FromGitter>
<asterite> @barachy there's `after_initialize` (which should really be renamed...)
<FromGitter>
<bcardiff> Oh, I thought there were no callback (yet)
<FromGitter>
<bcardiff> hm, it needs some docs...
<FromGitter>
<bararchy> oh cool!
<FromGitter>
<bararchy> so it's `def after_initialize` ?
<FromGitter>
<asterite> but it really needs to be renamed and documented... before for YAML it's probably also called `after_initialize` and there's a clash there
<FromGitter>
<bararchy> So I guess I'm missing something in how to configure the `after_initialize` ?
<FromGitter>
<asterite> you have to initialize instance vars in `initialize`
<FromGitter>
<asterite> Ummm...
<FromGitter>
<asterite> `after_initialize` is invoked after JSON parsing
<FromGitter>
<asterite> it's not meant to be invoked by you
<FromGitter>
<asterite> I thought you wanted to so some initialization after JSON parsing :-P
<FromGitter>
<asterite> now I'm not sure what you want to d
<FromGitter>
<bararchy> ok, so this didn't really helped me :) ⏎ What I need is a way to add some stuff to the new initialize made by JSON::Serelizable
<FromGitter>
<asterite> what stuff?
<FromGitter>
<bararchy> default parameters that can't be saved or loaded into JSON, like Slice, and Pointer, etc..
<FromGitter>
<asterite> you want to initialize those, or what?
<FromGitter>
<bararchy> I want to initialize those
<FromGitter>
<bararchy> but it seems I hacked away using the forbidden `after_initialize` :)
<FromGitter>
<asterite> @mjago assert_type checks that compiling the program will give the expected type. That's testing the *next* compiler. The way you put it is testing the current compiler.
<FromGitter>
<mjago> @asterite Ok thanks! The reason I ask is my project is testing the current nightly compiler for regression and performance purposes, and running individual semantic specs is too expensive.
<wontruefree>
I dont know about cross compiling the compiler
<wontruefree>
some people have mentioned compiling on alpine linux to statically compile but I have not tried and dont know if that is what you are looking for
<FromGitter>
<drujensen> @wontruefree thanks. I was hoping more of a `apt-get install crystal` guide. ;-)
<FromGitter>
<drujensen> you need crystal to compile crystal so I’m going to assume I will need to cross compile?
<FromGitter>
<drujensen> or does someone have a binary that I can use?
<FromGitter>
<j8r> you can build a static arm64 (but not armhf) binary
<FromGitter>
<asterite> @straight-shoota find me some languages with css querying in the standard library, and I might consider it :-P
<FromGitter>
<asterite> I mean, it's possible. It's useful. It can be in a shard
<FromGitter>
<straight-shoota> JavaScript :P
<FromGitter>
<asterite> touché
<FromGitter>
<valamorgon> can I call class method from string? I know the class but the method will be dynamic
<wontruefree>
I dont know as much about xpath but I have had a some xpaths that behave differently in crystal that in the browser
<wontruefree>
if `$x('//foo')` returns one thing and `doc.xpath_nodes("//foo")` returns something different should I open an issue?
<FromGitter>
<straight-shoota> wontruefree, Crystal just delegates xpath handling to libxml
<FromGitter>
<straight-shoota> can you show a complete example?
zachk has joined #crystal-lang
zachk has quit [Changing host]
zachk has joined #crystal-lang
<wontruefree>
I finished working on the scrapper last week but if I ever come across it again I will post it
<FromGitter>
<drum445> Anyone mind giving me feedback on my site: izrite.com
<FromGitter>
<drum445> Crystal & Kemal Backend
<crystal-gh>
[crystal] straight-shoota opened pull request #6317: Flatten project structure created by crystal init (master...jm/feature/crystal-init-remove-version.cr) https://git.io/fSs7A
<wontruefree>
drum445 I cannot figure out what the site does without a registration box popping up. I think you need a home page that you can read
<FromGitter>
<drum445> Indeed sir, thanks. For now it starts with the login prompt :(
DTZUZU has joined #crystal-lang
duane has quit [Ping timeout: 240 seconds]
<wontruefree>
what is the site for?
<FromGitter>
<GaryMiller> @drum445 Seems very fast an responsive, I registed logged out and logged back in and it remembered my registration and password. The bright white center panl is pretty bright and tiring for the eye. The top line of test with Guide and Stack is hard to read after looking at the brite white background.
<FromGitter>
<GaryMiller> It seems like a program to manage multiple tasklists but it call the the tasklists Boards and then you can add tasks under each board.
<FromGitter>
<drum445> Thanks for taking a look @GaryMiller. I don't quite follow your last sentence though?
<FromGitter>
<drum445> I will look at making the centre less harsh on the eye, good point thanks
<FromGitter>
<drum445> @wontruefree It is a task management site, you can create different boards which contain it's own set of tasks. You can add people to your boards and see real time updates via websockets
sz0 has joined #crystal-lang
duane has joined #crystal-lang
wontruefree has quit [Quit: this is not the client you are looking for]