Chao Yang
Chao Yang
I don't think thread works properly when interpreted. There seems to be something wrong with thread local variables. ```crystal result = "" thread = Thread.new do result = "From Thread...
@crimson-knight Here's my workaround: ```crystal enum Gender UNSPECIFIED FEMALE MALE def to_s super.downcase end end class User < Jennifer::Model::Base with_timestamps mapping( { id: Primary64, name: String, email: String, lock_version: {type:...
@crimson-knight It works with string column and postgres enum type column: You can find more about creating string backed enum column in [here](https://imdrasil.github.io/jennifer.cr/docs/migration) Here's the users schema: ``` debater_dev=# select...
So, basically both postgresql and jennifer treat the column as string column. You can use integer backed enum column by removing the enum converter from the model.
@crimson-knight You might find this useful: https://github.com/crystal-lang/crystal/issues/10281#issuecomment-766349102 ```crystal enum PollingType PRECINCT_SPECIFIC EARLY_ABSENTEE VOTE_CENTER def self.parse(value) : self case value.to_s.upcase when "PS", "PRECINCT_SPECIFIC" PRECINCT_SPECIFIC when "ES", "EARLY_ABSENTEE" EARLY_ABSENTEE when "VC", "VOTE_CENTER"...
Can we have something like this? https://github.com/goldendict/goldendict/pull/1548
@shenlebantongying Thanks for the PR! I tried the pre-release appimages, but didn't work. Then I found this: https://github.com/probonopd/linuxdeployqt/pull/540 I'll wait for the next flatpak release.
I got below errors with the flatpak test build. ``` qt.qpa.wayland: EGL not available qt.qpa.qgnomeplatform: Could not find color scheme "" No favorites file found ``` And there's no window...
Building from source worked for me. I'm on Ubuntu 23.10 with nvidia. I also tried Tetzle with flatpak but it failed with the same error.