Skip to content

Improve LWJGL wrong version error message#3527

Merged
douira merged 3 commits intoCaffeineMC:devfrom
Moulberry:improve_lwjgl_error_msg
Mar 21, 2026
Merged

Improve LWJGL wrong version error message#3527
douira merged 3 commits intoCaffeineMC:devfrom
Moulberry:improve_lwjgl_error_msg

Conversation

@Moulberry
Copy link
Contributor

@Moulberry Moulberry commented Feb 28, 2026

Improves the advice message by attempting to figure out the culprit, pointing the user to the mod/launcher that caused it rather than sodium support.

If the jar containing the LWJGL class is /mods/*, then the advice says that it is likely caused by the mod.

If the path contains /lwjgl/, or the filename starts with lwjgl-, then it is likely that the jar is being provided by the launcher itself, so we direct the user to the launcher for support.

If neither, we still put the name of the launcher in the error message to help with diagnosing the cause, even if we aren't sure that it is caused by the launcher.

@jellysquid3
Copy link
Member

Can you provide the context for these changes?

@Moulberry
Copy link
Contributor Author

Improves the advice message by attempting to figure out the culprit, pointing the user to the mod/launcher that caused it rather than sodium support.

If the jar containing the LWJGL class is /mods/*, then the advice says that it is likely caused by the mod.

If the path contains /lwjgl/, or the filename starts with lwjgl-, then it is likely that the jar is being provided by the launcher itself, so we direct the user to the launcher for support.

If neither, we still put the name of the launcher in the error message to help with diagnosing the cause, even if we aren't sure that it is caused by the launcher.

@douira douira modified the milestone: Sodium 0.8.7 Mar 19, 2026
@douira douira requested review from IMS212 March 19, 2026 17:01
Copy link
Member

@IMS212 IMS212 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@douira douira merged commit afcca03 into CaffeineMC:dev Mar 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants