Skip to content

fix/double src resolutions#2772

Draft
jurgenvinju wants to merge 3 commits into
mainfrom
fix/double-src-resolutions
Draft

fix/double src resolutions#2772
jurgenvinju wants to merge 3 commits into
mainfrom
fix/double-src-resolutions

Conversation

@jurgenvinju
Copy link
Copy Markdown
Member

@jurgenvinju jurgenvinju commented May 15, 2026

The final bootstrap of removing Tree@\loc led to these errors while checking the final compilation of the compiler:

These errors are from the log https://github.com/usethesource/rascal-core-big-tests/actions/runs/25805901058 and not consecutively:

[ERROR] src/org/rascalmpl/library/lang/rascal/tests/basic/Functions.rsc:0304:017: Argument 0 should have type `&S(&U)(int(int,int),&T)`, found `&S(&U)(&S(&T,&U),&T)`
[ERROR] src/org/rascalmpl/compiler/lang/rascalcore/compile/Rascal2muRascal/RascalExpression.rsc:0142:056: Base expression of field selection is ambiguous and should be resolved
[ERROR] src/org/rascalmpl/compiler/lang/rascalcore/compile/Rascal2muRascal/RascalExpression.rsc:0147:056: Base expression of field selection is ambiguous and should be resolved
[ERROR] src/org/rascalmpl/compiler/lang/rascalcore/compile/Rascal2muRascal/RascalExpression.rsc:1160:118: Base expression of field selection is ambiguous and should be resolved

We focus first on the last three issues where:

  • we see that someBase.someField.src is now leading to the "Base expression of field selection is ambiguous and should be resolved" error,
  • where before the <base>.someField@\loc did not.
  • We don't know yet if someBase.someField is the base we are talking about in this error message, or just someBase.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46%. Comparing base (940999f) to head (51f8bd8).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##              main   #2772   +/-   ##
=======================================
  Coverage       46%     46%           
+ Complexity    6722    6718    -4     
=======================================
  Files          794     794           
  Lines        65936   65936           
  Branches      9888    9888           
=======================================
+ Hits         30764   30766    +2     
+ Misses       32792   32789    -3     
- Partials      2380    2381    +1     

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

@jurgenvinju
Copy link
Copy Markdown
Member Author

Running this PR with causes for the double declarations, since a small test did not reproduce the issue: https://github.com/usethesource/rascal-core-big-tests/actions/runs/25914305318

@sonarqubecloud
Copy link
Copy Markdown

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.

1 participant