Skip to content

Golang build in error console fails to navigate to the file where error is detected. #25

Description

@clarsonneur

I was able to configure the builder.json for golang with the following section:

{
        "name": "Golang",
        "cmd": "go build",
        "file_reg": "^..(.*):[0-9]+:",
        "line_reg": "^.*:([0-9]+):",
        "msg_reg": "^.*:[0-9]+: (.*)",
        "seperator": "\\n"
    }

go build is running fine, but when errors are found, clicking on the error do not move to the file/line where the error is detected.

go build returns an error like the following:

./local_repo.go:45: undefined: strings

brackets console shows the following output:

Setting doc to local_repo.go results-panel.js:32
Uncaught Error: Paths must be absolute: 'local_repo.go' 

Any idea how to fix this? builder.json? results-panel.js ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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