Hugo Parente Lima

Results 137 comments of Hugo Parente Lima

Nice article, last time I built my plugin on Windows using virtual box was a pain...

It should, since the only part of the plugin that runs Ruby code is the one that runs Rubocop in background to report issues to the editor as you type....

Not really, the generator is ran by the macro, the generator compilation is cached, for usual code-compile-run cycle it really doesn't make so much difference... but for crystalline it sure...

Not directly related to the issue, but you must use `template.bytesize` instead of `template.size`, since due to UTF-8 encoding these are not always the same.

FYI: Almost 1.5 years later, in a different shard but it's finally possible to use glade template in Crystal-GTK :smiley: https://github.com/hugopl/gtk4.cr/commit/c93354e5c181890cca686d258b180fcd63bb88c4 sorry for the cross-repo post, but I'm very happy...

Good news... the bug is **much** more simple... I translated the code snippet to C and reproduced the very same double unref, so I come to the conclusion that I...

GIR has the info, https://developer.gnome.org/gi/stable/gi-GIObjectInfo.html#g-object-info-get-unref-function I saw you call `unref` for the the object is a `ObjectInfo` or `InterfaceInfo` at src/g_i_repository/wrapper_generator.cr:33, ```Crystal if self.is_a?(ObjectInfo) || self.is_a?(InterfaceInfo) builder.def_method("finalize") do line call("object_unref",...

I got this very same problem on my gtk4 shard. The [fix](https://github.com/hugopl/gi-crystal/commit/f900a5b88f4fc06a7a16c65886d70496251cb1b7) was simple, if the GObject inherits from `GInitiallyUnowned` it must call `g_object_ref_sink` in the constructor to sink the...

Unfortunately nobody is paid to work on this, but do so on their free time and when in the mood to do so, so don't expect things to be ready...

Ah, additional info, I was using the experimental branch of `jhass/crystal-malloc_pthread_shim`. ```YAML malloc_pthread_shim: github: jhass/crystal-malloc_pthread_shim branch: track_alignments ``` If I use the master branch it works... and with this information...