Fix the crash when Autocompletion is triggered on output port of watch node.#11668
Fix the crash when Autocompletion is triggered on output port of watch node.#11668reddyashish merged 2 commits intoDynamoDS:masterfrom
Conversation
This comment was marked as spam.
This comment was marked as spam.
|
hi @reddyashish , I think we can also try trim the output port type at https://github.com/DynamoDS/Dynamo/blob/master/src/Libraries/CoreNodeModels/Watch.cs#L19 to be just |
|
Yes that would be much better. @QilongTang Do you think changing the output port type of the watch node to just "var" cause any behavior change. I wasn't completely sure about it. |
I think it should be fine. We can open a different PR for that and use self serve to validate |
|
I have made the changes in this PR only and running the self-serve. If anything fails, I will revert it. |
Thanks, if everything pass, feel free to merge |
|
The self-serve validation has passed and tested it manually. Merging this. |
Purpose
This PR is to fix the crash that was happening when Autocompletion was triggered on output port of watch node. The reason for the crash was the output port type returned for the Watch node is something like "Node Output:var". When this was passed into the parser, it would throw an exception. So we will just be stripping that unnecessary string from the port type. Aabishkar has found that this was happening only for this particular node. I tried looking any other similar nodes but couldn't find any.
For now, we will be showing the default output suggestions for the Watch node.
Declarations
Check these if you believe they are true
*.resxfilesReviewers
@QilongTang @zeusongit @mjkkirschner