You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I could not reproduce the crash seen in #14192 in master (2.19).
I did notice however that checking customNode outputs frequently throws thousands of exceptions and also fails to find results even when the type name is a valid type!
I've made two changes I think will improve the situation a small bit.
When we encounter a space in a custom node output port name, we just use the first word, it at least has a non zero chance of being a type name.
when we look for matching types we use the Type.Name instead of Type.ToString()ToString will also include rank, like var[]..[] - this is not a valid class name that can be found in the class table, and so we never make any matches with types that include rank. After this PR we'll better match different ranks of type, and also derived types.
Note how more valid results are returned in the tests I have updated. Also less exceptions are thrown, so the results are computed a bit faster.
@QilongTang I don't think so -
next run has one of these awesome failures:
setUp : System.Exception : Could not load geometry library binaries from : C:\Jenkins\workspace\Dynamo\DynamoSelfServe\pullRequestValidation\Dynamo\bin\AnyCPU\Release\libg_229_0_0 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.SEHException: External component has thrown an exception.
--- End of inner exception stack trace ---
I'm going to merge this, if we see an increase in failures after this is merged, we can revert it.
…oDS#14218)
* update tests
dont use type string, use name
dont use name with spaces, it will never be correct.
* add a new test
* comments
* review comments and new test
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
I could not reproduce the crash seen in #14192 in master (2.19).
I did notice however that checking customNode outputs frequently throws thousands of exceptions and also fails to find results even when the type name is a valid type!
I've made two changes I think will improve the situation a small bit.
Type.Name
instead ofType.ToString()
ToString
will also include rank, likevar[]..[]
- this is not a valid class name that can be found in the class table, and so we never make any matches with types that include rank. After this PR we'll better match different ranks of type, and also derived types.Note how more valid results are returned in the tests I have updated. Also less exceptions are thrown, so the results are computed a bit faster.
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Return more results for object based node autocomplete when using custom node output ports.
Reviewers
(FILL ME IN) Reviewer 1 (If possible, assign the Reviewer for the PR)
(FILL ME IN, optional) Any additional notes to reviewers or testers.
FYIs
(FILL ME IN, Optional) Names of anyone else you wish to be notified of