Skip to content

Conversation

@lemmy
Copy link
Member

@lemmy lemmy commented Sep 5, 2025

Workaround for Github issue #171
#171

[Bug]

@lemmy lemmy added the bug An error, usually in the code. label Sep 5, 2025
@lemmy lemmy self-assigned this Sep 5, 2025
@lemmy lemmy force-pushed the mku-gh171 branch 4 times, most recently from 78e996e to 9114f18 Compare September 5, 2025 23:33
…s of the same modules included in CommunityModules.

Workaround for Github issue #171
#171

[Bug]

Signed-off-by: Markus Alexander Kuppe <[email protected]>
@ahelwer
Copy link
Collaborator

ahelwer commented Sep 6, 2025

I don't think this is a good approach and seems downstream of the general lack of a well-thought-out versioning or packaging system for the community modules.

Perhaps these should be moved out of the TLAPM standard library and into the community modules themselves?

@lemmy
Copy link
Member Author

lemmy commented Sep 6, 2025

Right now, the main issue is that the outdated SequencesExt and Functions modules in TLAPM are breaking the TLA+ VSCode extension for users. Moreover, since 2022, there has been consensus to move these modules (and their proofs) out of TLAPM and into CommunityModules. If the community decides to design and build a more advanced module system, that will take significant time.

@ahelwer
Copy link
Collaborator

ahelwer commented Sep 6, 2025

I think moving the modules out of TLAPM into the community modules sounds good.

@lemmy
Copy link
Member Author

lemmy commented Sep 6, 2025

This is blocked because the proofs fail for the latest versions of SequencesExt and Functions.

@ahelwer
Copy link
Collaborator

ahelwer commented Sep 6, 2025

Perhaps they can be commented out then turned into an OMITTED?

@lemmy
Copy link
Member Author

lemmy commented Sep 8, 2025

This PR does not block any of that work or make fixing the proofs more difficult. The specific names of these two models should not matter. If anything, the *Fork prefix more clearly indicates that these modules are forks (of the ones in CM). Most importantly, it ensures that VSCode users are not broken.

@ahelwer
Copy link
Collaborator

ahelwer commented Sep 8, 2025

It will break the proofs of anybody who uses these modules. As would moving these modules to the community modules, but then users are presented the upgrade path of moving to a new version of the community modules instead of renaming their imports temporarily.

Since the goal state has these modules named the same as they are now, switching their names back and forth adds an unnecessary migration step.

@lemmy
Copy link
Member Author

lemmy commented Sep 8, 2025

Good point — those users (if they exist) would also be affected by #171
if their setup happens to prioritize the newer versions of Functions and SequenceExt from the CommunityModules. The new module names give them a way to pin the older version of those modules.

@ahelwer
Copy link
Collaborator

ahelwer commented Sep 8, 2025

See comment about upgrade paths. Fundamentally I see this as a shortcut that makes the situation worse when a bit more work (moving the modules to the community repo and commenting out proofs that no longer currently work) would lead to a better outcome.

@lemmy
Copy link
Member Author

lemmy commented Sep 8, 2025

See comment about upgrade paths. Fundamentally I see this as a shortcut that makes the situation worse when a bit more work (moving the modules to the community repo and commenting out proofs that no longer currently work) would lead to a better outcome.

Are you volunteering? I’m afraid I won’t be able to do more than this PR.

@lemmy
Copy link
Member Author

lemmy commented Sep 8, 2025

By the way, even if Functions and SequencesExt were moved to CommunityModules, existing TLAPS proofs would still break until authors explicitly include CommunityModules.

@lemmy lemmy merged commit 386cb32 into main Sep 9, 2025
5 checks passed
@lemmy lemmy deleted the mku-gh171 branch September 9, 2025 16:13
lemmy added a commit to tlaplus/Examples that referenced this pull request Sep 10, 2025
lemmy added a commit to tlaplus/Examples that referenced this pull request Sep 10, 2025
lemmy added a commit to tlaplus/Examples that referenced this pull request Sep 10, 2025
lemmy added a commit to tlaplus/Examples that referenced this pull request Sep 10, 2025
lemmy added a commit to tlaplus/Examples that referenced this pull request Sep 10, 2025
lemmy added a commit to tlaplus/Examples that referenced this pull request Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An error, usually in the code.

Development

Successfully merging this pull request may close these issues.

3 participants