Cannot resolve option 'go_package'
See original GitHub issueThe text go_package in the line appears in red in the editor. Previously it did not. Not sure when it started happening. I am using 2.1 version.
option go_package = "somepackage"
When I hover over, I see the text: Cannot resolve option ‘go_package’ how can I resolve?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:20 (6 by maintainers)
Top Results From Across the Web
Cannot resolve option 'go_package' : GO-9832
When I hover over the word go_package, I get a tool tip saying "Cannot resolve option 'go_package'". How can resolve this problem?
Read more >Cannot resolve import in .proto file - Stack Overflow
First of all, your import path is better to be like this : import "domain/repository.proto";. You must add the path of your proto...
Read more >Go support for Protocol Buffers
The protocol buffer compiler will attempt to derive a package name and import path if a go_package option is not present, but it...
Read more >Question about Go protobufs and import_prefix - Google Groups
I don't know the background of the Go import system or go_package option. However this statement concerns me a little: > We have...
Read more >Go Protobuf Tips - Johan Brandhorst
... need to specify -I. , which also means the protoc will resolve all proto import paths relative to the current directory. ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For me, it helped to uncheck the “Configure automatically” and remove “google/protobuf/” from the default Descriptor Path. Was: google/protobuf/descriptor.proto Now: descriptor.proto
In the meantime before this is fixed by JetBrains, a fix was pointed out by Veniamin Albaev in IDEA-274732 - you should uncheck “Configure automatically” and set the prefix
google/protobuf
for the default location. This approach also makes sure that files importinggoogle/protobuf/descriptor.proto
are linted correctly (e.g. files that define custom file or field options).