gren-lang / gren-lang/compiler
Improve context of error messages
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Haskell
- Stars
- 503
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
It should be easier to know which project or file an error message relates too.
- [ ] Path's should be relative to project root (some (all?) error message use absolute paths)
- When an error relates to a dependency, the name and version should be displayed where we show the file path.
This issue replaces #335
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests, so first locate the compiler's error-formatting entry points and the code that displays file paths and dependency information. Check how project roots and dependency versions are represented. Done means relevant paths are relative to the project root and dependency-related errors show the dependency name and version alongside the file path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100