sourcegraph / go-langserver

Go language server to add Go support to editors and other tools that use the Language Server Protocol (LSP)
https://sourcegraph.com
MIT License
1.17k stars 89 forks source link

Output window opens on error, but no error in log #341

Open Dbz opened 5 years ago

Dbz commented 5 years ago

When I open a new file, langserver-go will open up a window in my vim terminal with output after attempting to run my file. It happens because the output window will be opened when language server log errors by default. However, there don't seem to be errors in the log. This was discussed: https://github.com/neoclide/coc.nvim/issues/179

Steps to reproduce the behavior:

  1. Create file touch main.go
  2. open file vim main.go You will see output below the status line: [coc.nvim] service languageserver.golang started
  3. Start typing package main and a window will be created with debug output

image

Expected behavior Nothing will happen as I am typing in a new file

Note:

This also happens randomly when working on files, but it is very consistent when opening a new file. I don't know if it has to do my my directory structure. Here is my directory and path variables:

directory: /Users/dbz/development/go/src/github.com/udemy_channels $GOPATH: /Users/dbz/development/go ($GOPATH is appended onto the very end of $PATH) $PATH: /Users/dbz/apache-cassandra-3.11.2/bin:./bin:/Users/dbz/bin:/Users/dbz/.rbenv/bin:/Users/dbz/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Postgres.app/Contents/Versions/9.4/bin:/usr/local/mysql/bin:/Users/dbz/bin:/Users/dbz/development/go/bin