Open GoogleCodeExporter opened 8 years ago
Example doesn't compile; am I missing something?
C:\Users\mgravell\Desktop\Bug\Protobuf-issue\IntegrationTests.cs(28,10): error
CS1061: 'Ditmer.Everest.Sporgeskema.Skema' does not contain a definition for
'DeserializeXml' and no extension method 'DeserializeXml' accepting a first
argument
of type 'Ditmer.Everest.Sporgeskema.Skema' could be found (are you missing a
using
directive or an assembly reference?)
C:\Users\mgravell\Desktop\Bug\Protobuf-issue\IntegrationTests.cs(31,35): error
CS1061: 'Ditmer.Everest.Sporgeskema.Skema' does not contain a definition for
'SerializeXml' and no extension method 'SerializeXml' accepting a first
argument of
type 'Ditmer.Everest.Sporgeskema.Skema' could be found (are you missing a using
directive or an assembly reference?)
C:\Users\mgravell\Desktop\Bug\Protobuf-issue\IntegrationTests.cs(34,32): error
CS1061: 'string' does not contain a definition for 'FindFirstDifference' and no
extension method 'FindFirstDifference' accepting a first argument of type
'string'
could be found (are you missing a using directive or an assembly reference?)
C:\Users\mgravell\Desktop\Bug\Protobuf-issue\IntegrationTests.cs(37,31): error
CS1061: 'Ditmer.Everest.Sporgeskema.Skema' does not contain a definition for
'SerializeProtoBuffer' and no extension method 'SerializeProtoBuffer' accepting
a
first argument of type 'Ditmer.Everest.Sporgeskema.Skema' could be found (are
you
missing a using directive or an assembly reference?)
C:\Users\mgravell\Desktop\Bug\Protobuf-issue\IntegrationTests.cs(40,11): error
CS1061: 'Ditmer.Everest.Sporgeskema.Skema' does not contain a definition for
'DeserializeProtoBuffer' and no extension method 'DeserializeProtoBuffer'
accepting a
first argument of type 'Ditmer.Everest.Sporgeskema.Skema' could be found (are
you
missing a using directive or an assembly reference?)
C:\Users\mgravell\Desktop\Bug\Protobuf-issue\IntegrationTests.cs(42,35): error
CS1061: 'Ditmer.Everest.Sporgeskema.Skema' does not contain a definition for
'SerializeXml' and no extension method 'SerializeXml' accepting a first
argument of
type 'Ditmer.Everest.Sporgeskema.Skema' could be found (are you missing a using
directive or an assembly reference?)
C:\Users\mgravell\Desktop\Bug\Protobuf-issue\IntegrationTests.cs(45,27): error
CS1061: 'string' does not contain a definition for 'FindFirstDifference' and no
extension method 'FindFirstDifference' accepting a first argument of type
'string'
could be found (are you missing a using directive or an assembly reference?)
Original comment by marc.gravell
on 16 Nov 2009 at 8:56
Sorry, Marc, here's the updated solution...
Original comment by badmot...@gmail.com
on 17 Nov 2009 at 10:32
Attachments:
OK ta; will look later today.
Original comment by marc.gravell
on 17 Nov 2009 at 11:05
It's a fairly complex scenario with both inheritance and custom collection
types. I'd
be happy to help you get started debugging.
Just tell me what you need, I am eager to find a solution.
Original comment by badmot...@gmail.com
on 19 Nov 2009 at 1:31
Sorry, I haven't had chance to look at this yet; I intended looking at this on
the
train, but: http://twitter.com/marcgravell/status/5852411890
Will look at this later today - honest!
Original comment by marc.gravell
on 19 Nov 2009 at 2:30
So far, the difference I'm seeing is relating to DateTime; 1994-03-01T00:00:00
vs 1994-
03-01T00:00:00+00:00; I'm just trying to find where that data is in the model
(it isn't
100% clear with an unfamilar model...)
Original comment by marc.gravell
on 19 Nov 2009 at 8:56
Assuming I'm looking at the same bug as you, it seems to come down to
DateTime.Kind -
the original returns "unspecified", and protobuf-net *should* return
"unspecified", but
seems to be "local" in some case; I'm still investigating why this could be. It
may
also relate to the constructor usage; we shall see...
Original comment by marc.gravell
on 19 Nov 2009 at 10:01
Yes, I'm using local dates, hence the +01:00 timezone. I can live with that
because
in this current application I only need day accuracy.
My real problem is that, in some cases, Collection<UploadedFileId> is empty.
Also,
some of my Nullable<DateTime>s don't get serialized at all. Mostly they do, but
once
in a while far down into the graph, they don't. And the weird thing is, the
mapping
does not differ. It's the same property on the same class that sometimes work
and
sometimes doesn't.
Original comment by badmot...@gmail.com
on 20 Nov 2009 at 7:36
Oddly enough, the datetime issue was "there" last night and not today... very
odd! I'm
still looking; re the upload - yes, that is what I saw today; the trick then is
finding
the data that is funky ;-p A quick inspector shows me that:
.Sektioner[1].Sporgsmalr[0].Svartype.Svar[0].Sporgsmalr[3].Svartype.Svar[0]
is playing up, so I'll have a look at that... getting there... but yes, some
odd things
happening.
Original comment by marc.gravell
on 20 Nov 2009 at 7:52
Original issue reported on code.google.com by
badmot...@gmail.com
on 16 Nov 2009 at 1:42Attachments: