Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the global 'package' package so that modules within it can be type-checked independently #2526

Merged
merged 3 commits into from
Nov 21, 2023

Conversation

paulcadman
Copy link
Collaborator

@paulcadman paulcadman commented Nov 21, 2023

This PR adds a Package.juvix file to the global 'package' package (that is the package containing the PackageDescription.{Basic, V1} modules.

This means that users can now go-to-definition on Package.juvix types and identifiers and navigate to fully highlighted PackageDescription.{Basic, V1} modules.

The Package loader PathResolver must the root of the project being loaded
to the Package.juvix file.

The order of clauses in the match changed by this commit must not be
permuted because the global 'package' package now contains its own
Package.juvix file. Previously a project's Package.juvix was incorrectly
being assigned to the global project root.
@paulcadman paulcadman added this to the 0.5.5 milestone Nov 21, 2023
@paulcadman paulcadman self-assigned this Nov 21, 2023
@paulcadman paulcadman merged commit c6586a9 into main Nov 21, 2023
4 checks passed
@paulcadman paulcadman deleted the make-package-package-a-package branch November 21, 2023 15:20
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.

Type checking / highlighting fails when navigating to PackageDescription from Package.juvix
2 participants