Skip to content

Remove undeclared dependency on langium in typir - #86

Merged
JohannesMeierSE merged 1 commit into
TypeFox:mainfrom
domu1de:fix-assertUnreachable
Jul 24, 2025
Merged

Remove undeclared dependency on langium in typir#86
JohannesMeierSE merged 1 commit into
TypeFox:mainfrom
domu1de:fix-assertUnreachable

Conversation

@domu1de

@domu1de domu1de commented Jul 24, 2025

Copy link
Copy Markdown
Contributor

The typir package was relying on assertUnreachable from the langium package without declaring it as a dependency. Since Typir is intended to work as a standalone package, this implicit dependency could lead to issues.

This PR replaces the assertUnreachable imports with a local implementation to ensure the package remains self-contained and does not rely on undeclared external modules.

@JohannesMeierSE JohannesMeierSE left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks a lot for this finding!

@JohannesMeierSE JohannesMeierSE added this to the v0.4 milestone Jul 24, 2025
@JohannesMeierSE JohannesMeierSE added the bug Something isn't working label Jul 24, 2025
@JohannesMeierSE
JohannesMeierSE merged commit c0fa972 into TypeFox:main Jul 24, 2025
1 check passed
@JohannesMeierSE JohannesMeierSE modified the milestones: v0.4, v0.3 Jul 24, 2025
JohannesMeierSE pushed a commit that referenced this pull request Aug 1, 2025
The `typir` package was relying on `assertUnreachable` from the `langium` package without declaring it as a dependency. Since Typir is intended to work as a standalone package, this implicit dependency could lead to issues.

This PR replaces the `assertUnreachable` imports with a local implementation to ensure the package remains self-contained and does not rely on undeclared external modules.
@JohannesMeierSE

Copy link
Copy Markdown
Collaborator

@domu1de We just released this bugfix with the new v0.2.2!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants