speckleworks / SpeckleCore

Check a brand new Speckle at: https://github.com/specklesystems
https://speckle.systems
MIT License
38 stars 16 forks source link

SpeckleCore.SpecklePlaceholder instead of List(int) #113

Closed alfonsomonedero closed 5 years ago

alfonsomonedero commented 5 years ago

Expected Behaviour

I feed a list in integers in Grasshopper with repeated numbers. What I should receive on Dynamo is the List(int)

Actual Behaviour

Every time an integer is repeated in the List, speckle is substituting it with SpeckleCore.SpecklePlaceholder. In principle is great as it reduces the data online, but it fails in the de-serialisation.

image

image

didimitrie commented 5 years ago

hm, so both gh and dynamo ignore duplicate values? damn. i can reproduce it:

image

but there is a workaround (at least for gh, i think possibly dynamo too):

image

using the "create speckle object" component + encapsulate list, you get rid of this behaviour. On the other side you'll need to expand speckle object in gh. Dynamo I believe should handle the dictionaries easier...

I've flagged this as a bug and will get to it asap!

alexander-barwick commented 5 years ago

Any advice for when this happens going from dynamo to grasshopper?

didimitrie commented 5 years ago

So, after a couple of months, this is finally fixed - for the brave, you can get the pre release from here: https://github.com/speckleworks/SpeckleInstaller/releases/tag/v1.4.0