Improve the error for duplicate package names #5701
RaphGL
started this conversation in
Ideas/Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If you make a package with the same name as an imported one, it gives you this error:
This only points to the original (or one of the?) package with the name, this makes it hard for tooling like OLS to give nicer errors.
The error points to my file that caused the issue but since it's buried in the error message OLS can't know. If you're only looking at local diagnostics, it would appear like there were no errors at all.
So my suggestion is to issue a new error for each duplicate, so that tools that rely on odin itself for errors can catch it.
For context, here's the original issue I created on OLS: DanielGavin/ols#1039
Beta Was this translation helpful? Give feedback.
All reactions