saibing / bingo

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

Spurious error messages (as if checking on a corrupted/truncated file) #78

Closed harikb closed 5 years ago

harikb commented 5 years ago

Just installed bingo yesterday and using with vscode with the following settings. The entire settings file is given below (in case some conflicting setting exists). There is no way a line like return nil should give an error for undefined variable n. Also the second picture will show that the error message seems to skip a character from the middle of the variable name

{
    "editor.fontSize": 16,
    "window.zoomLevel": 0,
    "editor.formatOnSave": true,
    "git.autofetch": true,
    "go.useLanguageServer": true,
    "go.alternateTools": {
        "go-langserver": "bingo",
    },
    "go.languageServerExperimentalFeatures": {
        "format": true,
        "autoComplete": true
    },
    "extensions.ignoreRecommendations": false,
    "breadcrumbs.enabled": true,
    "go.installDependenciesWhenBuilding": false,
    "workbench.colorTheme": "Solarized Light",
    //"go.languageServerFlags": [
    //    "-pprof",
    //    ":6060"
    //],
    "[go]": {},
}

image

image