Setting default_room_version to 12 breaks continuwuity. #1219

Closed
opened 2025-12-10 19:52:38 +00:00 by nyanbinary · 7 comments
Contributor

What the title says, it refuses to start up if set to version 12/fails to start.

What the title says, it refuses to start up if set to version 12/fails to start.
Owner

Can't reproduce this on main (6a8b988b36) with default_room_version = "12". Which version of continuwuity are you using?

Can't reproduce this on main (6a8b988b36ff85ae5ee8500c7cb1c65da550620b) with `default_room_version = "12"`. Which version of continuwuity are you using?
146 KiB
Author
Contributor

Using main as well. Using the Nix module could it be something with that?

Using main as well. Using the Nix module could it be something with that?
Owner

I am noting that one post uses quotes around the room version and the other did not (post in main matrix room). Is this the problem? Does nix module quote the version? not quote? require one or the other?

I am noting that one post uses quotes around the room version and the other did not (post in main matrix room). Is this the problem? Does nix module quote the version? not quote? require one or the other?
Owner

Quotes are required as the room version is not an integer but a string - if a layer is removing the quotes and inadvertently changing the type of the value provided to an integer, then the crash is expected.

I think the docstring for the room version parameter doesn't actually highlight that the quotes are required, which might be an oversight.

Quotes are required as the room version is not an integer but a string - if a layer is removing the quotes and inadvertently changing the type of the value provided to an integer, then the crash is expected. I think the docstring for the room version parameter doesn't actually highlight that the quotes are required, which might be an oversight.

I believe the nix module should copy the values verbatim, so quoting the version should also show up as quoted in the TOML.

I believe the nix module should copy the values verbatim, so quoting the version should also show up as quoted in the TOML.
Member

Fortunately we have a nixos test. I'll try to verify it there :)

Fortunately we have a nixos test. I'll try to verify it there :)
Member

Yeah so setting it to "12" let's the test pass and setting it to 12 makes it fail. I'll add it in a small PR along with the docs

Yeah so setting it to `"12"` let's the test pass and setting it to `12` makes it fail. I'll add it in a small PR along with the docs
Jade closed this issue 2025-12-16 16:23:00 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
continuwuation/continuwuity#1219
No description provided.