When opening a Go project with LSP mode, spacemacs / flycheck only shows errors in the current package, not including tests files. For example, in the following project:

|- pkg1
|- pkg2
|- cmd

When I'm in the pkg1/file.go file all of the following functions won't display errors from pkg2, cmd nor test files in pkg1:

  • next-error, flycheck-next-error, flycheck-projectile-list-errors, flycheck-list-errors.

The only function which displays all error is: lsp-treemacs-errors-list, but it's not very friendly: there is no way to jump to the next error without going to the lsp-treemacs-errors-list buffer, scrolling, unfolding and entering the error.

My setup: emacs 26.3, spacemacs @develop (latest), go layer with LSP mode + flycheck layer. (LSP mode works perfectly).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.