Re: [protobuf] what is TypeModel.cs and why is it missing ?

2018-01-30 Thread Marc Gravell
This is protobuf-net, so I suppose I should chime in :)

Can you please give a precise copy of the error message? And how did you
reference the library? Did you just add the NuGet package as normal? Or did
you do something more exotic? .NET libraries are almost usually distributed
as compiled assemblies - not as source code, so there is no reason for it
to be looking for TypeModel.cs - a source file. To understand the problem,
I'd need to see the actual error message.

No, this isn't expected.



On 31 Jan 2018 1:51 am, "Erick Treetops"  wrote:

Writing my first GTFS Realtime app in .net..  I had some issues getting out
of our proxy but now I'm stuck because the protobuf is looking for a file
called TypeModel.cs  and can't find it.  I've searched and haven't found
anyone else with this issue.  The error occurs when I try and serialize the
request (last line).
Can anyone point me in the right direction


WebRequest req = HttpWebRequest.Create("https://gtfsrt.api.translink.com.au/
Feed/SEQ");

IWebProxy proxy = req.Proxy;

proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;

FeedMessage feed = Serializer.Deserialize(req.GetResponse().
GetResponseStream());



Erick Treetops

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


[protobuf] what is TypeModel.cs and why is it missing ?

2018-01-30 Thread Erick Treetops
Writing my first GTFS Realtime app in .net..  I had some issues getting out 
of our proxy but now I'm stuck because the protobuf is looking for a file 
called TypeModel.cs  and can't find it.  I've searched and haven't found 
anyone else with this issue.  The error occurs when I try and serialize the 
request (last line).
Can anyone point me in the right direction


WebRequest req = HttpWebRequest.Create(
"https://gtfsrt.api.translink.com.au/Feed/SEQ";);

IWebProxy proxy = req.Proxy;

proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;

FeedMessage feed = Serializer.Deserialize(req.GetResponse().GetResponseStream());



Erick Treetops

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] "unwrap descriptor class before comparison of RepeatedField types" into release

2018-01-30 Thread x
Absolutely amazing - please can we land this in 3.5.2 then?

On Tuesday, January 30, 2018 at 11:39:31 PM UTC, Feng Xiao wrote:
>
>
>
> On Tue, Jan 30, 2018 at 3:22 PM, > wrote:
>
>> Hey,
>>
>> I'm trying to get https://github.com/google/protobuf/pull/2519 into a 
>> release - as it was merged into master, I think it's been forgotten! :(
>>
>> I've opened https://github.com/google/protobuf/pull/4254 to try and get 
>> the patch into the next 3.5.x release, but I'm grasping at straws here.
>>
>> Please can someone take a look at this situation, and help me get this 
>> merged? My original patch was opened on the 20th of December 2016, so I'd 
>> really like to put this to bed.
>>
> +Jisi is making a 3.5.2 release based off the 3.5.x branch. 
>  
>
>>
>>
>> Thanks,
>> @rubynerd
>>
>> -- 
>> 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+u...@googlegroups.com .
>> To post to this group, send email to prot...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/protobuf.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] "unwrap descriptor class before comparison of RepeatedField types" into release

2018-01-30 Thread 'Feng Xiao' via Protocol Buffers
On Tue, Jan 30, 2018 at 3:22 PM,  wrote:

> Hey,
>
> I'm trying to get https://github.com/google/protobuf/pull/2519 into a
> release - as it was merged into master, I think it's been forgotten! :(
>
> I've opened https://github.com/google/protobuf/pull/4254 to try and get
> the patch into the next 3.5.x release, but I'm grasping at straws here.
>
> Please can someone take a look at this situation, and help me get this
> merged? My original patch was opened on the 20th of December 2016, so I'd
> really like to put this to bed.
>
+Jisi is making a 3.5.2 release based off the 3.5.x branch.


>
>
> Thanks,
> @rubynerd
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


[protobuf] "unwrap descriptor class before comparison of RepeatedField types" into release

2018-01-30 Thread x
Hey,

I'm trying to get https://github.com/google/protobuf/pull/2519 into a 
release - as it was merged into master, I think it's been forgotten! :(

I've opened https://github.com/google/protobuf/pull/4254 to try and get the 
patch into the next 3.5.x release, but I'm grasping at straws here.

Please can someone take a look at this situation, and help me get this 
merged? My original patch was opened on the 20th of December 2016, so I'd 
really like to put this to bed.


Thanks,
@rubynerd

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


[protobuf] Some reminder from benchmark results

2018-01-30 Thread yilunchong via Protocol Buffers
Currently, the benchmark result shows that CPP implementation is slower 
than Java implementation. This is mainly caused by malloc things.
Some solution is linking tcmalloc 
 library which can 
be built from gperftools  repo. 
 This will make the CPP 
implementation about 2.0x faster.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] Precompiled Version of probuf for VS2017

2018-01-30 Thread 'Frank Willen' via Protocol Buffers
Hi Stuart,

I will take a look at vcpkg and decide, which way we will proceed. 

Thank you

Regards,
Frank


Am Montag, 29. Januar 2018 17:49:58 UTC+1 schrieb Stuart Dootson:
>
> Hi Frank
>
> One option might be to use Microsoft's vcpkg package manager for Visual 
> C++ (https://github.com/Microsoft/vcpkg 
> ).
>  
> That does steps 1-5 for you (once you've done the couple of steps of 
> installing vcpkg...). If you're using other open source C++ libraries, they 
> might be available through vcpkg as well, giving you a consistent process 
> for third party libraries...
>
> Stuart Dootson
>
> On 29 January 2018 at 11:59, 'Frank Willen' via Protocol Buffers <
> prot...@googlegroups.com > wrote:
>
>> Hi Marc,
>>
>> many thanks for your reply. I already found the versions for different 
>> languages on github but didn't found a way to use these directly. But this 
>> can be based on my ignorance of probuffer ;-).
>>
>> Actually I would proceed this way:
>> 1.: download and extract protobuf-all-3.5.1.zip
>> 2.: Generate Makefile with CMake
>> 3.: Generate Protoc.exe, libs and Headers with 
>> 4.: test the build with 
>> 5.: generate with 
>> 6.: Create Proto-File and translate it into code with protoc.exe
>> 7.: C++: include generated files and headers from install-Folder
>> 8.: C#: include generated files and select the correct version of 
>> protobuffer in NuGet.
>>
>>
>> Instead of steps 1 - 5 I only want to download a zip-file with 
>> Protoc.exe, the libs and headers for C++ and want to proceed with step 6. 
>> In C# this is possible (NuGet). Is there any way in C++ I don't know?
>>
>> Regards,
>> Frank
>>
>>
>>
>> Am Freitag, 26. Januar 2018 16:52:42 UTC+1 schrieb Marc Gravell:
>>>
>>> Protoc is available for multiple OSes here: 
>>> https://github.com/google/protobuf/releases/tag/v3.5.1
>>>
>>> Note sure about pre-compiled libs; for Java, they're on mvnrepository; 
>>> for C# they're on NuGet, etc.
>>>
>>> On 26 January 2018 at 15:22, 'Frank Willen' via Protocol Buffers <
>>> prot...@googlegroups.com> wrote:
>>>
 Hi,

 I want to use the protocol buffers for a mixed solution (C+, C#, both 
 in VS2017). Where can I download precompiled libs, headers and the 
 protoc.exe? Or is it neccessary to build the probuffers for everyone?

 Thanks for your support?

 Grettings 
 Frank

 -- 
>>> Regards, 
>>>
>>> Marc
>>>
>> -- 
>>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.