Skip to content

Conversation

@toinehartman
Copy link
Member

The project root for bird/bird-core/target/classes was computed as bird/bird-core/target/classes (since it contains a copy of META-INF/RASCAL.MF). This caused path configs to be computed from the wrong root, in turn causing type-checks to fail. An example of this is #948.

This PR fixes the root inference algorithm by computing roots until the shortest root path is found.

Closes #948.

@toinehartman toinehartman self-assigned this Jan 20, 2026
@toinehartman toinehartman added the bug Something isn't working label Jan 20, 2026
@toinehartman toinehartman changed the title Infer project root correctly from within target folder. Infer project root correctly from within target folder Jan 20, 2026
@sonarqubecloud
Copy link

@DavyLandman
Copy link
Member

Isn't there also rascal side of this bug?

@DavyLandman DavyLandman merged commit b3a41bf into main Jan 20, 2026
15 checks passed
@toinehartman
Copy link
Member Author

Isn't there also rascal side of this bug?

I believe these changes to LSP should solve #948. I think changes to path config computation in Rascal triggered this.

I am wondering why our multi-project test did not catch this.

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.

Multi-module type-check fails with missing imports

2 participants