-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error importing a library when using the plugin #503
Comments
Looks like #194 is related to this |
It works in IntelliJ, but not on GoLand 2018.3.3. Looks like GoLand isn't picking up the pb.go files that are generated by Bazel. |
@nisdas After further investigation, looks like IntelliJ with Go plugin doesn't enable Vgo support by default but GoLand does. Disabling Vgo support for the project in GoLand resolved the above issue for me. |
Same issue here. Enableing/disabling Vgo did not help (was not enabled by default in Goland for my project). This seems to only affect go libs that use cgo, since most of the imports are recognized correctly. |
Any update on this? I'm using GoLand 2019.2.5 and v2019.12.02 of the Bazel plugin. |
+1 Still failing. |
I have same issue with
some libs are just are red in the editor however I can successfully build the project with no issues. |
Could you try updating to the newest IntelliJ/GoLand, and updating the plugin? There's been quite a bit of work on .pb.go files lately. |
We are closing this issue now as it is fixed in the latest plugin and IDE releases. Please check and let us know , with complete steps, if you are still seeing the same observation. Thanks! |
Despite the libraries existing in my workspace , I keep on getting this error
Build constraints exclude all Go files in //path/to/library
. I am not sure exactly how to interpret this error correctly as I have no issues importing other libraries. This has lead to syntax highlighting being red over all my source files as the ide keeps on showing the import as invalid.To reproduce this issue locally:
beacon-chain/blockchain/service.go
) which imports this package:github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1
Build constraints exclude all Go files
, which leads to syntax highlighting of any obejct used from that package being red as it is regarded as invalid.The text was updated successfully, but these errors were encountered: