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

It seems that the integration with gopls stops working if there is a custom build tag #2477

Closed
wtask opened this issue Apr 26, 2019 · 2 comments
Labels
upstream-gopls Issue for gopls

Comments

@wtask
Copy link

wtask commented Apr 26, 2019

I have intergration test. First line is:
// +build integration

All features (autocomplete, hovers, ...) of vscode-go 0.10.1 are working until suddenly moment, after which I only have stay with syntax highlighting without any other Go support.

I use modules and gopls.
When I try to get hover tooltip for standard function, gopls reports error like this (part of file path is hidden with '...'):

Request textDocument/definition failed.
  Message: no file information for file:///c:/dev/go/src/github.com/.../mysql/mysql_test.go
  Code: 0 

But when I removed build tag and save file, extension is became alive and started to work as usual...

@stamblerre
Copy link
Contributor

This is a known issue that we are working on handling: golang/go#29202.

@ramya-rao-a
Copy link
Contributor

Thanks for the link @stamblerre

@ramya-rao-a ramya-rao-a added upstream-gopls Issue for gopls bug labels Apr 29, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Jun 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
upstream-gopls Issue for gopls
Projects
None yet
Development

No branches or pull requests

3 participants