purescript icon indicating copy to clipboard operation
purescript copied to clipboard

Missing all metadata for custom error

Open NomisIV opened this issue 1 year ago • 0 comments

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

NomisIV avatar Feb 07 '24 09:02 NomisIV