Missing all metadata for custom error
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start by locating the compiler path that creates UserDefinedWarning and determine how its source position and filename are obtained. Reproduce the 0.15.14 behavior if possible, then trace the metadata construction; done means UserDefinedWarning diagnostics include at least a position and filename, with coverage for the reported case.
Written by the indexing model from the issue text.
Description
Description
I discovered a debug error in the compiler without any metadata.
{
"position": null,
"message": " A custom warning occurred while solving type class constraints:\n\n Debug function usage\n",
"errorCode": "UserDefinedWarning",
"errorLink": "https://github.com/purescript/documentation/blob/master/errors/UserDefinedWarning.md",
"filename": null,
"moduleName": null,
"suggestion": null,
"allSpans": []
},
To Reproduce
I have no idea how this happened unfortunately :(
Expected behavior
Expected all UserDefinedWarnings to at least have a position and filename
Additional context
PureScript version
0.15.14
- Dominant language
- Haskell
- Stars
- 8.9k
- Forks
- 575
- PR merge metrics
- No merged PRs in 30d
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.
More from purescript/purescript
-
type: bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
purescript/purescript#4595 · 2 comments ·
-
type: bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
purescript/purescript#4590 · 3 comments ·
-
type: bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
purescript/purescript#4589 · 3 comments ·
-
type: bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
purescript/purescript#4588 · 5 comments ·
-
type: enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
purescript/purescript#4587 · 1 comment · 2 reactions ·