Skip to content

OS independent logical locs#2644

Open
toinehartman wants to merge 16 commits intomainfrom
fix/os-dependent-logical-locs
Open

OS independent logical locs#2644
toinehartman wants to merge 16 commits intomainfrom
fix/os-dependent-logical-locs

Conversation

@toinehartman
Copy link
Member

@toinehartman toinehartman commented Feb 11, 2026

Remove newlines from MD5 checksums used in logical locations, to make them OS-independent.

Breaking changes
This PR extends normalisation to the complete MD5 input, meaning that any whitespace will be removed. Therefore, hash signatures for many definitions change.

Closes usethesource/rascal-language-servers#965

@toinehartman toinehartman self-assigned this Feb 11, 2026
@codecov
Copy link

codecov bot commented Feb 11, 2026

Codecov Report

❌ Patch coverage is 80.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 46%. Comparing base (fa934f4) to head (52eb288).

Files with missing lines Patch % Lines
src/org/rascalmpl/library/Prelude.java 80% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##              main   #2644   +/-   ##
=======================================
  Coverage       46%     46%           
- Complexity    6671    6679    +8     
=======================================
  Files          795     795           
  Lines        65878   65893   +15     
  Branches      9870    9878    +8     
=======================================
+ Hits         30682   30692   +10     
- Misses       32820   32827    +7     
+ Partials      2376    2374    -2     

☔ 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.

Copy link
Member

@PaulKlint PaulKlint left a comment

Choose a reason for hiding this comment

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

First of all, great finding this obscure problem.

The solution looks fine, with one suggestion to improve performance.

@toinehartman toinehartman marked this pull request as draft February 13, 2026 12:09
@toinehartman toinehartman marked this pull request as draft February 13, 2026 12:09
@toinehartman toinehartman marked this pull request as ready for review February 13, 2026 12:43
@sonarqubecloud
Copy link

Copy link
Member

@DavyLandman DavyLandman left a comment

Choose a reason for hiding this comment

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

Lgtm

Copy link
Member

@PaulKlint PaulKlint left a comment

Choose a reason for hiding this comment

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

Looks fine to me. This probably the cleanest and fastest solution.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rascal check (LanguageServer) crashed unexpectedly with: MultipleKey at: |std:///Map.rsc|(2659,708,<109,0>,<130,54>)

3 participants