gren-lang / gren-lang/compiler

Improve context of error messages

Open
#340 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.