Open Chriscbr opened 1 year ago
Hi,
This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!
Hi,
This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!
Feature Spec
When an error refers to a relative path (in a bring or extern statements):
We would like to show the error the path that the compiler resolved it to as a hint, maybe something like:
Use Cases
Better debugging experience
Implementation Notes
We could try augmenting
Diagnostic
with a newpub hints: Vec<String>
field and then wire it through the error formatting library used by the CLI:https://github.com/winglang/wing/blob/add9ab68be3aa49c13944a4148f5229e85ddf83f/libs/wingc/src/diagnostic.rs#L249-L254
Component
Compiler
Community Notes