Andrzej Borucki | 23 Apr 10:10 2014
Picon

Compiler errors in library

In package com.google.protobuf are errors: 
- in Descriptors.java not found import com.google.protobuf.DescriptorProtos.*;
- in AbstractMessage, DynamicMessage, ExtensionRegistry, TextFormat - is error field.getContainingType().getOptions()

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Empi | 22 Apr 17:03 2014
Picon

A first chance exception of type 'System.IO.EndOfStreamException' occurred in protobuf-net.DLL

Hi and thanks for this lovely serializer.

I'm working on  aproject on which local desktop application is "talking" tcp/ip with local window 8 application (metro) through loopback.
I did of course loopback exemption, and all worked great!!! until... yesterday I've added an additional String field to the serialized class... and I get the above error. 
If I remove the String it works great again.

Can you help me solve this mystery?

The classes I serialize has the following structure (last field is a class on which the string is added, I removed field's name and left only the types).

    [ProtoContract]
    public class cMessage
    {
        [ProtoMember(1)]
        public uint nPacketNumber { get; set; }
        [ProtoMember(2)]
        public int nBatteryStatus { get; set; }
        [ProtoMember(3)]
        public Boolean isCharging { get; set; }
        [ProtoMember(4)]
        public COMM_STATUS commStatus { get; set; }
        [ProtoMember(5)]
        public Boolean isDownloading { get; set; } 
        [ProtoMember(6)]
        public COMM_ERRORS commErrorCode { get; set; } //
        [ProtoMember(10)]
        public cGeneralInfo cInfo; 
    }

    [ProtoContract]
    public class cGeneralInfo 
    {
        [ProtoMember(100)]
        public DateTime dtLastPacket;
        [ProtoMember(101)]
        public uint unBatteryStatus;
        [ProtoMember(102)]
        public uint unChargingStatus;
        [ProtoMember(103)]
        public double dSoftwareVersion;
        [ProtoMember(104)]
        public String sInfo1
        [ProtoMember(105)]
        public uint 
        [ProtoMember(106)]
        public uint 
        [ProtoMember(107)]
        public uint
        [ProtoMember(108)]
        public uint 
        [ProtoMember(109)]
        public uint 
        [ProtoMember(110)]
        public uint 
        [ProtoMember(111)]
        public double 
        [ProtoMember(112)]
        public int 
        [ProtoMember(113)]
        public int 
        [ProtoMember(114)]
        public int 
        [ProtoMember(115)]
        public int 
        [ProtoMember(116)]
        public int
        [ProtoMember(117)]
        public int 
        [ProtoMember(118)]
        public int
        [ProtoMember(119)]
        public int 
        [ProtoMember(120)]
        public int 
        [ProtoMember(121)]
        public int 
        [ProtoMember(122)]
        public int 
        [ProtoMember(123)]
        public int 
        [ProtoMember(124)]
        public int 
        [ProtoMember(125)]
        public int
        [ProtoMember(126)]
        public string 
        [ProtoMember(127)]
        public int
        [ProtoMember(128)]
        public String             ////   This is the filed started causing the error.
}


Thanks!!!.


Empi



--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
protobuf | 22 Apr 15:04 2014

Issue 633 in protobuf: Double encoded as length-delimited wire-type

Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 633 by stijnsan... <at> gmail.com: Double encoded as length-delimited  
wire-type
http://code.google.com/p/protobuf/issues/detail?id=633

What steps will reproduce the problem?
1. Using  
https://github.com/rethinkdb/rethinkdb/blob/next/src/rdb_protocol/ql2.proto
2. Using a Datum with r_num=1.0
3. Serializing to binary for network transport

What is the expected output?
somewhere in the binary data:
0x19 and 8 bytes for the double r_num

What do you see instead?
0x1A and 8 bytes, typically the first one being 0x00 throwing off readers  
that depend on the 3-bit wire-type-indicator.

See also

https://github.com/rethinkdb/rethinkdb/issues/2286

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

-- 
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

protobuf | 21 Apr 17:38 2014

Issue 632 in protobuf: Protocol buffer library fails to build if download directory path contains a space.

Status: New
Owner: liujisi <at> google.com
Labels: Type-Defect Priority-Medium

New issue 632 by tom.ritc... <at> gmail.com: Protocol buffer library fails to  
build if download directory path contains a space.
http://code.google.com/p/protobuf/issues/detail?id=632

What steps will reproduce the problem?
1. Download protocol buffer source.
2. Rename directory to contain a space character (i.e.  
~/Downloads/"protobuf-2.5.0 2")
3. Attempt to build protocol buffer library.

What is the expected output? What do you see instead?

I expect a completed build.  I get the following error:

/bin/sh ../libtool --tag=CXX   --mode=link g++ -D_THREAD_SAFE  -Wall  
-Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG  
-D_THREAD_SAFE   -o protoc main.o  libprotobuf.la libprotoc.la -lz
libtool: link: cannot find the library `2/src/libprotobuf.la' or unhandled  
argument `2/src/libprotobuf.la'
make[2]: *** [protoc] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

What version of the product are you using? On what operating system?

I'm using protocol buffers 2.5.0 on Mac OS/X 10.9 ("Mavericks")

Please provide any additional information below.

This is almost certainly a shell problem caused by not quoting the  
arguments to libtool.  Easy workaround - rename or move the download  
directory so it doesn't have a space in the path.

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

-- 
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

protobuf | 19 Apr 22:01 2014

Issue 631 in protobuf: Fixing issue #641

Status: New
Owner: ----
Labels: Type-Patch

New issue 631 by Omer.d... <at> gmail.com: Fixing issue #641
http://code.google.com/p/protobuf/issues/detail?id=631

I surrounded the print statements with parenthesis.
Hopefully thats it.

Attachments:
	setup.py.patch  782 bytes

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

-- 
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Justin | 18 Apr 20:28 2014
Picon

C++11 for each loops with RepeatedField

I assume there is a simple answer to this, but I'm having trouble finding it and my searches for similar questions have come up empty ... Perhaps it being Friday afternoon is also reducing my ability to solve this :)

I want to be able to use C++11 range-based for loops on a repeated field in my message, but I can't seem to get it to compile properly. This is true for mutable and const references.

So, for example:

for (message_item &curr_message : data.mutable_message_item())

does not work, nor can I do so without the mutable, but I would think it should. 

Is this because RepeatedField does not support the appropriate operators?




--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Damian | 17 Apr 08:29 2014

build protobuf-net

I want to build protobuf-net from sources http://protobuf-net.googlecode.com/svn/trunk/ ?
I am only interested in the desktop version.

When I open Proto 2013.sln in Visual Studio 2013 I can't open some projects because I am missing Mono and Phone.
Some projects target Windows 8, which is means that Tools for Maintaining Store apps for Windows 8 is not installed. My machine is running Windows 8.1.


Unsupported
This version of Visual Studio is unable to open the following projects. The project types may not be installed or this version of Visual Studio may not support them. 
For more information on enabling these project types or otherwise migrating your assets, please see the details in the "Migration Report" displayed after clicking OK.
- TestWcfServer, "D:\dev\3rdparty\protobuf-net\TestWcfServer\TestWcfServer.csproj"
- protobuf-net_MonoDroid, "D:\dev\3rdparty\protobuf-net\protobuf-net_MonoDroid\protobuf-net_MonoDroid.csproj"
- MonoDroid_DevRig, "D:\dev\3rdparty\protobuf-net\MonoDroid_DevRig\MonoDroid_DevRig.csproj"
- MonoDto, "D:\dev\3rdparty\protobuf-net\MonoDto\MonoDto.csproj"
- protobuf-net_Phone7, "D:\dev\3rdparty\protobuf-net\protobuf-net_Phone7\protobuf-net_Phone7.csproj"
- protobuf-net_Phone8, "D:\dev\3rdparty\protobuf-net\protobuf-net_Phone8\protobuf-net_Phone8.csproj"
- Phone8Dto, "D:\dev\3rdparty\protobuf-net\Phone8Dto\Phone8Dto.csproj"
- Phone8_DevRig, "D:\dev\3rdparty\protobuf-net\Phone8_DevRig\Phone8_DevRig.csproj"


and when I continue I get these message in the output:

D:\dev\3rdparty\protobuf-net\protobuf-net_Silverlight\protobuf-net_Silverlight.csproj : error  : The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  D:\dev\3rdparty\protobuf-net\protobuf-net_Silverlight\protobuf-net_Silverlight.csproj

D:\dev\3rdparty\protobuf-net\SilverlightExtended\SilverlightExtended.csproj : error  : The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  D:\dev\3rdparty\protobuf-net\SilverlightExtended\SilverlightExtended.csproj

D:\dev\3rdparty\protobuf-net\demo-rpc-client-silverlight\demo-rpc-client-silverlight.csproj : error  : The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  D:\dev\3rdparty\protobuf-net\demo-rpc-client-silverlight\demo-rpc-client-silverlight.csproj

D:\dev\3rdparty\protobuf-net\ProtoBufGenerator\ProtoBufGenerator.csproj : error  : The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v9.0\VSSDK\Microsoft.VsSDK.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  D:\dev\3rdparty\protobuf-net\ProtoBufGenerator\ProtoBufGenerator.csproj

D:\dev\3rdparty\protobuf-net\SilverDto\SilverDto.csproj : error  : The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  D:\dev\3rdparty\protobuf-net\SilverDto\SilverDto.csproj

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Patrick Wendell | 16 Apr 22:24 2014
Picon

protobuf-java 2.4.X and 2.5.0 are incompatible

Hi All,

I work on Apache Spark which is an open source project. We have recently been dealing with a lot of pain due to the fact that the Java Protobuf libraries for 2.4.X and 2.5.0 are not binary compatible. This makes it really difficult for users to include two dependencies A and B that depend on different versions of protobuf-java.

Are these incompatibilities an omission, or is this an intentional policy that protobuf is okay making API-breaking changes in minor versions? This violates typical semantic-versioning conventions and makes it pretty tough for downstream users.

I don't see any references to library compatibility in the Java protobuf page or the FAQ - apologies if this is covered somewhere...
https://developers.google.com/protocol-buffers/docs/javatutorial
https://developers.google.com/protocol-buffers/docs/faq

- Patrick

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
protobuf | 15 Apr 21:47 2014

Issue 630 in protobuf: Java: initializing bitFields variables

Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 630 by kral.voj... <at> gmail.com: Java: initializing bitFields  
variables
http://code.google.com/p/protobuf/issues/detail?id=630

What steps will reproduce the problem?
1. Generate Java class

What is the expected output? What do you see instead?
In the message class in the init method there are all the variables  
initialized but not the bitFields. This issue does not propagate itself  
when normally used because the bitFields are populate by JVM automatically  
to zeros when new instance is created. However, I thought I would report it  
since it does not seem to me the way it was intended to be. I discovered it  
when I was implementing changes to the generated class to have it behave  
more in "SAX" style than "DOM". So I was reusing one message object  
multiple times and I needed to reset the variables before every usage.

Please use labels and text to provide additional information.
Java, initMethod, bitfields

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

-- 
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

protobuf | 15 Apr 04:38 2014

Re: Issue 57 in protobuf: null values should be treated as no value


Comment #46 on issue 57 by ag.coolg... <at> gmail.com: null values should be  
treated as no value
http://code.google.com/p/protobuf/issues/detail?id=57

To have null in proto buffer, can workaround be something like wrapping the  
value and type of value(null/non-null) into a message and then send it  
over. Need opinion.

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

-- 
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

protobuf | 15 Apr 04:36 2014

Re: Issue 57 in protobuf: null values should be treated as no value


Comment #45 on issue 57 by ankit.ga... <at> gmail.com: null values should be  
treated as no value
http://code.google.com/p/protobuf/issues/detail?id=57

To have null in proto buffer, can workaround me something like wrapping the  
value and type of value(null/non-null) into a message and then send it  
over. Need opinion.

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

-- 
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Gmane