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

Fix warning message for indexing into lists, display fully qualified classname in warnings #9861

Merged
merged 4 commits into from
Jul 29, 2019

Conversation

aparajit-pratap
Copy link
Contributor

@aparajit-pratap aparajit-pratap commented Jul 27, 2019

Purpose

JIRA: https://jira.autodesk.com/browse/DYN-1487, https://jira.autodesk.com/browse/DYN-1044

The warning on the node no longer mentions Get.ValueAtIndex and displays the appropriate error message:
image

image

image

Declarations

Check these if you believe they are true

  • The code base is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning, and are documented in the API Changes document.

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

@@ -408,7 +416,7 @@ private void GetLocationByGraphNode(ref int line, ref int col)
var argsJoined = string.Join(", ", arguments.Select(GetTypeName));

var fep = funcGroup.FunctionEndPoints[0];
var formalParamsJoined = string.Join(", ", fep.FormalParams.Select(x => x.ToShortString()));
var formalParamsJoined = string.Join(", ", fep.FormalParams);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this going to use full class names when throwing function not found exceptions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is the intended fix for https://jira.autodesk.com/browse/DYN-1044.

@mjkkirschner
Copy link
Member

This looks good, just one comment.

@aparajit-pratap aparajit-pratap merged commit 0786921 into DynamoDS:master Jul 29, 2019
@aparajit-pratap aparajit-pratap deleted the indexingWarning branch July 29, 2019 23:30
aparajit-pratap added a commit to aparajit-pratap/Dynamo that referenced this pull request Jul 30, 2019
…classname in warnings (DynamoDS#9861)

* fix warning message for indexing into lists, display fully qualified classname in warnings

* display fully qualified class names in type mismatch and method resolution warnings

* add resource strings for null reference exceptions with lists, strings and dictionaries

* add comments
aparajit-pratap added a commit that referenced this pull request Jul 30, 2019
…ay fully qualified … (#9865)

* Fix warning message for indexing into lists, display fully qualified classname in warnings (#9861)

* fix warning message for indexing into lists, display fully qualified classname in warnings

* display fully qualified class names in type mismatch and method resolution warnings

* add resource strings for null reference exceptions with lists, strings and dictionaries

* add comments

* update test cases
aparajit-pratap added a commit that referenced this pull request Jul 30, 2019
* fix warning message for indexing into lists, display fully qualified classname in warnings

* display fully qualified class names in type mismatch and method resolution warnings

* add resource strings for null reference exceptions with lists, strings and dictionaries

* add comments

* update test cases
mjkkirschner pushed a commit that referenced this pull request Aug 3, 2019
…classname in warnings (#9861)

* fix warning message for indexing into lists, display fully qualified classname in warnings

* display fully qualified class names in type mismatch and method resolution warnings

* add resource strings for null reference exceptions with lists, strings and dictionaries

* add comments
mjkkirschner pushed a commit that referenced this pull request Aug 3, 2019
* fix warning message for indexing into lists, display fully qualified classname in warnings

* display fully qualified class names in type mismatch and method resolution warnings

* add resource strings for null reference exceptions with lists, strings and dictionaries

* add comments

* update test cases
@horatiubota horatiubota added the error/warning/crash Issues mentioning a Dynamo error, warning or crash message label Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error/warning/crash Issues mentioning a Dynamo error, warning or crash message
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants