Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search for IElements in all assemblies #104

Closed
wants to merge 3 commits into from
Closed

Conversation

wynged
Copy link
Member

@wynged wynged commented Feb 16, 2019

rather than the just the Hypar Elements library

@ikeough
Copy link
Contributor

ikeough commented Feb 20, 2019

Seems like this is failing because number of tests related to structural framing are failing during deserialization of json. In the future I recommend doing dotnet test and it'll show you this on your end before you create the PR. The tests are failing with the following:

Could not load type 'Microsoft.VisualStudio.TestPlatform.ObjectModel.Navigation.DiaSourceClass' from assembly 'Microsoft.VisualStudio.TestPlatform.ObjectModel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

This happens when you try to reflect on an assembly that can't be loaded for reflection. So our logic for loading is too broad. This is noted here. The assembly that it's trying to load is one that is used for testing. So this error would only happen during testing.

@ikeough
Copy link
Contributor

ikeough commented Feb 20, 2019

What is the expectation with this work? Is the expectation that you'll be able to serialize a model containing your Element types to JSON and have that be deserialized by another instance of Elements? If so, the deserializing instance would have to have access to your type. How we allow arbitrary elements to be serialized and deserialized into a Model requires some design.

@wynged
Copy link
Member Author

wynged commented Feb 22, 2019 via email

@ikeough
Copy link
Contributor

ikeough commented Feb 25, 2019

Restating the problem: we need a way for those who write types which extend the Elements library to serialize and deserialize those types as part of a Model. What I believe we need to do is implement an extensions schema which allows you to specify that your types come from and extension. And the deserializing system has to support that extension or reject the request to deserialize. This is similar to what glTF has with extensions. I'm opening a new issue to track the addition of this functionality.

@ikeough
Copy link
Contributor

ikeough commented Feb 25, 2019

Tracking in #107.

@ikeough ikeough mentioned this pull request Feb 25, 2019
This was referenced Mar 8, 2019
@ikeough
Copy link
Contributor

ikeough commented Mar 8, 2019

@wynged A slightly more robust fix is proposed in #115. Does that work for you? If so, I'm going to close this and merge that.

@wynged
Copy link
Member Author

wynged commented Mar 10, 2019 via email

@wynged
Copy link
Member Author

wynged commented Mar 11, 2019

so, because this is solved in the extensions pull request, I"m closing this one to tidy up.

@wynged wynged closed this Mar 11, 2019
@ikeough
Copy link
Contributor

ikeough commented Mar 12, 2019

Thanks. I'll merge the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants