Skip to content

Sort imported TModels before merging them when initializing a typecheck - #3014

Open
sungshik wants to merge 9 commits into
mainfrom
fix/2934-workaround
Open

sungshik wants to merge 9 commits into
mainfrom
fix/2934-workaround

Conversation

@sungshik

@sungshik sungshik commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #2934. I think it should be considered a workaround instead of a definitive solution, as the phenomenon that it matters in which order TModels are merged, feels a bit brittle and something that could cause also other issues later. I expect changing this could be invasive, though.

Integration test passes:
https://github.com/usethesource/rascal-core-big-tests/actions/runs/45187081274

…ted in a particular way before they are merged into the TModel of the importing module
@sungshik
sungshik marked this pull request as ready for review November 23, 2026 13:45
@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46%. Comparing base (1a924e2) to head (93ba10f).

Additional details and impacted files
@@           Coverage Diff           @@
##              main   #3014   +/-   ##
=======================================
  Coverage       46%     46%           
- Complexity    6933    6942    +9     
=======================================
  Files          851     851           
  Lines        69360   69360           
  Branches     10110   10110           
=======================================
+ Hits         32178   32183    +5     
- Misses       34744   34745    +1     
+ Partials      2438    2432    -6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@toinehartman toinehartman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice fix!

@sungshik
sungshik marked this pull request as draft November 23, 2026 15:19
@sungshik
sungshik marked this pull request as ready for review November 23, 2026 15:51
@sungshik
sungshik force-pushed the fix/2934-workaround branch from 1dced93 to 2d2751b Compare November 23, 2026 19:45
@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Physical locations from transitive dependencies overwrite physical locations from direct dependencies

3 participants