Hey,
I’ve been using PureScript for a while along with VS Code.
While porting my app from 0.11 to 0.12 I’ve been going through a lot of compiler errors with easy fixes. To get through this quickly I created a simple problem matcher for jumping to errors.
I haven’t found any other problem matchers around so I thought I would share this here. It’s certainly a WIP and feedback is more than welcome.
{
"problemMatcher": {
"fileLocation": [ "relative", "${workspaceFolder}" ],
"owner": "purescript",
"pattern": [
{
"regexp": "at (.*\\.purs) line (\\d+), column (\\d+) - line (\\d+), column (\\d+).*",
"file": 1,
"line": 2,
"column": 3,
"endLine": 4,
"endColumn": 5
},
{
"regexp": "^$"
},
{
"regexp": "^(.*)$",
"message": 1
}
]
}
}