Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Same error reported multiple times #1228

Description

I'm using vscode version 1.16.1 with the Go plugin on version 0.6.65. Recently (first time I noticed it was yesterday when I updated vscode but it might not be related) some build errors are reported multiple times.

Ramya Rao (@ramya-rao-a) suspects it's related to go.buildOnSave being set as workspace. My workspace has a couple of packages that import a base package, if a build error happens on the base package each subpackage reports the same error. If I have an error is on one of the subpackages instead of the base package it gets reported only once.

These are my settings:

{
    "window.zoomLevel": 0,
    "editor.fontSize": 14,
    "editor.fontFamily": "Hack, Menlo, Monaco, 'Courier New', monospace",
    "terminal.integrated.fontSize": 15,
    "git.checkoutType": "local",
    "go.formatTool": "goimports",
    "go.autocompleteUnimportedPackages": true,
    "git.confirmSync": false,
    "go.useCodeSnippetsOnFunctionSuggest": true,
    "workbench.startupEditor": "newUntitledFile",
    "files.autoSave": "off",
    "javascript.format.enable": false,
    "go.lintOnSave": "off",
    "go.vetOnSave": "off",
    "go.formatOnSave": true,
    "go.buildOnSave": "workspace",
    "go.testOnSave": false,
    "go.coverOnSave": false
}

The problems tab looks like this (I just wrote some gibberish on a random file to get a build error):

screen shot 2017-09-19 at 17 14 17

And these are the contents of the output tab:

Finished running tool: /usr/local/go/bin/go test -i -c -o /var/folders/3k/_4m7yyl97y71y4kcb8zhbr3h0000gr/T/go-code-check github.com/mendelics/abcd-api
/Users/vitor/src/github.com/mendelics/abcd-api/consensus_old.go:20: undefined: asdahsgfdhagfsdasdadasd

Finished running tool: /usr/local/go/bin/go test -i -c -o /var/folders/3k/_4m7yyl97y71y4kcb8zhbr3h0000gr/T/go-code-check github.com/mendelics/abcd-api/repository
/Users/vitor/src/github.com/mendelics/abcd-api/consensus_old.go:20: undefined: asdahsgfdhagfsdasdadasd

Finished running tool: /usr/local/go/bin/go test -i -c -o /var/folders/3k/_4m7yyl97y71y4kcb8zhbr3h0000gr/T/go-code-check github.com/mendelics/abcd-api/cmd/abcdworker
/Users/vitor/src/github.com/mendelics/abcd-api/consensus_old.go:20: undefined: asdahsgfdhagfsdasdadasd

Finished running tool: /usr/local/go/bin/go test -i -c -o /var/folders/3k/_4m7yyl97y71y4kcb8zhbr3h0000gr/T/go-code-check github.com/mendelics/abcd-api/handler
/Users/vitor/src/github.com/mendelics/abcd-api/consensus_old.go:20: undefined: asdahsgfdhagfsdasdadasd

Finished running tool: /usr/local/go/bin/go test -i -c -o /var/folders/3k/_4m7yyl97y71y4kcb8zhbr3h0000gr/T/go-code-check github.com/mendelics/abcd-api/cmd/abcdserver
/Users/vitor/src/github.com/mendelics/abcd-api/consensus_old.go:20: undefined: asdahsgfdhagfsdasdadasd

Finished running tool: /usr/local/go/bin/go test -i -c -o /var/folders/3k/_4m7yyl97y71y4kcb8zhbr3h0000gr/T/go-code-check github.com/mendelics/abcd-api/cmd/abcdscheduler
/Users/vitor/src/github.com/mendelics/abcd-api/consensus_old.go:20: undefined: asdahsgfdhagfsdasdadasd

Finished running tool: /usr/local/go/bin/go test -i -c -o /var/folders/3k/_4m7yyl97y71y4kcb8zhbr3h0000gr/T/go-code-check github.com/mendelics/abcd-api/middleware

Let me know if there's anything else I can add to this.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions