Comments (4)
I was not using master. Updating proteus to master and have the following error instead:
➜ sdk git:(a1f8dde) ✗ proteus -f $GOPATH/src/github.com/bblfsh/sdk/protos -p github.com/bblfsh/sdk/protocol -p github.com/bblfsh/sdk/uast --verbose
WARN: ignoring type interface{Next() /home/smola/dev/go/src/github.com/bblfsh/sdk/uast.Path}
WARN: ignoring type interface{Step(); /home/smola/dev/go/src/github.com/bblfsh/sdk/uast.PathIter}
INFO: Generated proto: /home/smola/dev/go/src/github.com/bblfsh/sdk/protos/github.com/bblfsh/sdk/protocol/generated.proto
INFO: Generated proto: /home/smola/dev/go/src/github.com/bblfsh/sdk/protos/github.com/bblfsh/sdk/uast/generated.proto
github.com/bblfsh/sdk/uast/generated.proto: File not found.
github.com/bblfsh/sdk/protos/github.com/bblfsh/sdk/protocol/generated.proto: Import "github.com/bblfsh/sdk/uast/generated.proto" was not found or had errors.
github.com/bblfsh/sdk/protos/github.com/bblfsh/sdk/protocol/generated.proto:24:9: "github.com.bblfsh.sdk.uast.Node" is not defined.
github.com/bblfsh/sdk/protos/github.com/bblfsh/sdk/protocol/generated.proto:40:9: "github.com.bblfsh.sdk.uast.Node" is not defined.
error generating Go files from "/home/smola/dev/go/src/github.com/bblfsh/sdk/protos/github.com/bblfsh/sdk/protocol/generated.proto": exit status 1
from proteus.
When calling protoc for the second package (protocol
) it does not find the proto file for the first package (uast
). My workaround is calling:
proteus -f $GOPATH/src -p github.com/bblfsh/sdk/uast -p github.com/bblfsh/sdk/protocol --verbose
so that path for Go code and proto files are the same.
And then I'm back to the original error of this issue, which I'm patching manually.
from proteus.
PR sent to gogo/protobuf with the fix gogo/protobuf#336
from proteus.
It's working correctly now, I think it can be closed.
Thanks @erizocosmico for the fix!
from proteus.
Related Issues (20)
- How can I add paths to the scan path used by proteus? HOT 1
- type ... will be ignored because it was not present on the scan path.
- Error calling proteus under Windows
- Example of kallax and Proteus used together ? HOT 2
- could not import fmt HOT 5
- map[string][]string is converted to map<string, string>
- Go modules support HOT 13
- copy pasta in ARCHITECTURE.md
- m.XXX_unrecognized undefined HOT 1
- Proteus is no longer maintained HOT 11
- Does not worker with time.Time field
- error: github.com/gogo/protobuf is not installed HOT 2
- zsh: command not found: proteus
- Clearly mark that this repo is dead and direct people to elsewhere HOT 1
- Windows?
- Don't inline fields of embedded messages, keep them as separated messages HOT 1
- Wrong message field type in generated proto file for a named type of []byte
- Proteus is generating a proto message even when the struct is not marked for generation: HOT 1
- Some files in multi-file package ignored
- How to use FieldMask type?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proteus.