Skip to content

Error matching not working? #592

@KaneIrving

Description

@KaneIrving

Hi, I'm not sure how to get the error matching working my .atom-build.json file looks like:

{
  "cmd": "{PROJECT_PATH}/build.bat",
  "args": [],
  "sh": false,
  "cwd": "{PROJECT_PATH}/code",
  "env": {},
  "errorMatch": (?<file>[a-z]+\.[ch])
}

example error outputs look like:

C:\Users\Kane\Desktop\Game\code\game.c(24): error C2039: 'AspectRatoWidth': is not a member of 'state'
C:\Users\Kane\Desktop\Game\code\game.h(28): note: see declaration of 'state'
C:\Users\Kane\Desktop\Game\code\game.c(25): error C2146: syntax error: missing ';' before identifier 'State'
C:\Users\Kane\Desktop\Game\code\game.c(27): error C2146: syntax error: missing ';' before identifier 'State'

I have tested it on https://regexr.com/ and it correctly gets 4 matches for the file names but in atom it doesn't say any errors and I can't cycle through with the keybinds, it doesn't seem to do anything. I may be missing something obvious as I'm not sure how this works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions