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

Feature request: Expose source code location for Failure.Extern missing modules #34

Open
jonahbeckford opened this issue Apr 12, 2024 · 0 comments

Comments

@jonahbeckford
Copy link
Contributor

In the following snippet:

let (map: ('a Solver.i * Solver.Failure.status option ref) Nms.map), _cmap =
    Solver.Failure.analyze block resolver pending

when the Solver.Failure.status matches | Solver.Failure.Extern (path: Namespaced.t)

there does not seem to be enough information to report the location (line number, column) of the missing Extern path.
(More accurately, the line/col for one of the missing module references).

At best the pseudocodelet {Solver.input; _} = (i: 'a Solver.i) can be used to find the filename with Pkg.filename input.src.

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

No branches or pull requests

1 participant