saibing / bingo

Bingo is a Go language server that speaks Language Server Protocol.
MIT License
495 stars 25 forks source link

Duplicate error in VSCode #146

Closed nezorflame closed 5 years ago

nezorflame commented 5 years ago

Almost every error is duplicated in the Problems section (cc @ramya-rao-a):

image

ramya-rao-a commented 5 years ago

@saibing Does bingo report any errors that the vscode-go extension doesnt? If not, then I'll be updating the extension to ignore the diagnostics from bingo

saibing commented 5 years ago

@nezorflame

The second error come from 'go build' command that "go.buildOnSave" flag can turn on or turn off.

or else you can set flag -diagnostics-style=none to turn off bingo's error report.

saibing commented 5 years ago

@ramya-rao-a

no, bingo only report the same error as 'go build' command.

nezorflame commented 5 years ago

Thanks @saibing @ramya-rao-a I'll use -diagnostics-style=none for the time being (since it's broken right now anyway, see #89)

ramya-rao-a commented 5 years ago

@nezorflame Is that a flag to be passed to bingo?

nezorflame commented 5 years ago

@ramya-rao-a yes, in the "go.languageServerFlags" option.

ramya-rao-a commented 5 years ago

Ah, understood.

inliquid commented 5 years ago

Strange, but in my case I don't see any LSP compiler errors with latest version of bingo, I thought it was disabled for some reason... -diagnostics-style unset.