Skip to content

Improved message for outdated TPL and removed possibly confusing println#2666

Open
PaulKlint wants to merge 5 commits intomainfrom
fix/outdated-tpl-message
Open

Improved message for outdated TPL and removed possibly confusing println#2666
PaulKlint wants to merge 5 commits intomainfrom
fix/outdated-tpl-message

Conversation

@PaulKlint
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Feb 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46%. Comparing base (a9f8735) to head (ba145b2).

Additional details and impacted files
@@           Coverage Diff           @@
##              main   #2666   +/-   ##
=======================================
  Coverage       46%     46%           
- Complexity    6680    6682    +2     
=======================================
  Files          795     795           
  Lines        65902   65902           
  Branches      9880    9880           
=======================================
+ Hits         30714   30719    +5     
+ Misses       32810   32801    -9     
- Partials      2378    2382    +4     

☔ View full report in Codecov by Sentry.
📢 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.

throw rascalTplVersionError(msg);
}
qualifiedModuleName = moduleId2moduleName(moduleId);
return <false, tmodel(modelName=qualifiedModuleName, messages=[error("Cannot read TPL for <qualifiedModuleName>", tplLoc)]), ms>;
Copy link
Member

Choose a reason for hiding this comment

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

I think it shouldn't be reported on the tplLoc that is not a file a user can open in an IDE, it might be a related loc, but not the main loc.

Copy link
Member Author

Choose a reason for hiding this comment

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

In principle, I agree, but we may not have anything else to point to: this can be a tpl file for which no source is available. I will ponder on other options ...

@sonarqubecloud
Copy link

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.

2 participants

Comments