srid / zulip-archive

Zulip Archive viewer (statically generated HTML)
https://funprog.srid.ca
13 stars 1 forks source link

Fix Zulip API Client Types #26

Closed prikhi closed 3 years ago

prikhi commented 3 years ago

The User's id field changed to user_id & the avatar_url is sometimes null.

Couldn't get result/bin/zulip-archive to work locally:

[Rib] Unhandled exception when building <unknown>: Error when running Shake build system:
  at action, called at src/Development/Shake/Forward.hs:123:5 in shake-0.19.2-BeO5l9ITSj4Iktwsoev1Pg:Development.Shake.Forward
* Raised the exception:
<stdout>: commitBuffer: invalid argument (invalid character)

But Publish workflow succeeds in my CI - had to tweak the CI config to let me manually run it.

srid commented 3 years ago

Worked!

https://github.com/srid/zulip-archive/runs/3716345438?check_suite_focus=true

srid commented 3 years ago
: commitBuffer: invalid argument (invalid character)

Per https://www.reddit.com/r/haskell/comments/43tmt8/commitbuffer_invalid_argument_invalid_character/ - something to do with your locale? Try:

LANG=C.UTF-8  LC_ALL=C.UTF-8 ./result/bin/zulip-archive
prikhi commented 3 years ago

Try:

LANG=C.UTF-8  LC_ALL=C.UTF-8 ./result/bin/zulip-archive

Interesting, specifying LC_ALL works... Arch only told me to set LANG=...: https://wiki.archlinux.org/title/Installation_guide#Localization

Which seems to affect everything but LC_ALL:

$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

:shrug: