Comments (10)
Yip, I was too stupid. Fixed it.
However, the issue remains, doesn't it?
btw, I love you for this project. ❤️
from protobuf.js.
There has been some progress on this lately: #38
Are you already using ProtoBuf.js >=1.1.1 (1.1.4 is latest)?
from protobuf.js.
Yes, I do. If you want, you can test it with node lib/schemas
.
from protobuf.js.
I am sorry but I am still not sure what's the actual issue. Would you create a simple test case for me?
from protobuf.js.
This looks like the imports
statements are not working... I'm trying a similar thing, using the same builder for each proto file gives the error:
Duplicate name in namespace Namespace .spotify.playlist4.proto: ListChecksum
whereas using a separate builder for each file gets one proto file further and gives the error:
Unresolvable type reference in Message.Field .spotify.playlist4.proto.Item.attributes: ItemAttributes
I'm trying to read and understand the docs and code, do we need to do anything special to use the import statements?
from protobuf.js.
If would already be sufficient if you could supply me with a simple test case that fails because I, unfortunately, have no understanding of the inheritance used in the spotify protos. I'll fix it then!
from protobuf.js.
I'm experiencing this problem using the proto2js command line utility. The issue arises when two proto files share a dependency. The depended-upon messages get loaded in twice.
Example:
in main.proto
package My;
import public "dep1.proto";
import public "dep2.proto";
message main {
optional dep1 test1 = 0;
optional dep2 test2 = 0;
}
in dep1.proto
package My;
import public "dep2.proto";
message dep1 {
optional dep2 test1 = 0;
}
in dep2.proto
package My;
message dep2 {
optional uint64 test1 = 0;
}
When I run proto2js main.proto -class='my' I get
my = dcodeIO.ProtoBuf.newBuilder().import(/* dep1 */).import(/* dep2 */).import(/* dep2 */)
Notice how dep2 gets loaded in duplicate.
from protobuf.js.
@adambom Nice repro steps!
from protobuf.js.
So, is this related to proto2js only?
from protobuf.js.
Have not attempted to repro the issue experienced by op.
Sent from my iPhone
On Aug 8, 2013, at 4:20 PM, dcode [email protected] wrote:
So, is this related to proto2js only?
—
Reply to this email directly or view it on
GitHubhttps://github.com//issues/40#issuecomment-22365587
.
from protobuf.js.
Related Issues (20)
- Protobuf sources can't contain doxygen tags
- Parsing camelCase and snake_case JSON objects into protobuf.js messages HOT 1
- I found that @protobufjs/utf8 on npm or yarn is still the old code version. HOT 1
- "Invalid wire type n" "index out of range: n + 1 > n" HOT 5
- Is 6.11.4 an official release? HOT 2
- --target static-module --es6 --wrap es6 produces a code that fails to run HOT 3
- npm ERR! The "file" argument must be of type string
- When sending a payload I'm getting trailing NULLs
- not throw Error: illegal token ';' when loadSync with about 30+ proto files
- Bug in convert Root to object with solution
- camelCasing failing when key includes numbers HOT 1
- Cesium is not building due to protobufjs error HOT 2
- Project health? HOT 3
- Enumeration of OneOf field
- Reader.read_uint32 causes reader head misalignment when consuming oversized VARINTs in some cases
- not provide an export named 'load'
- Will support HarmonyOS (ArtTS)in the future?
- Generated proto doesn't use class inheritance
- order of imports matters? HOT 1
- Decode delimited is getting the message length wrong
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 protobuf.js.