Skip to content

CPLAT-6014 Fix Dart2 RTE #299

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

Merged
merged 3 commits into from
Jun 11, 2019
Merged

CPLAT-6014 Fix Dart2 RTE #299

merged 3 commits into from
Jun 11, 2019

Conversation

aaronlademann-wf
Copy link
Contributor

@aaronlademann-wf aaronlademann-wf commented Jun 5, 2019

Problem

A RTE is encountered by consumers when utilizing dart_dev's TaskProcess in Dart 2.

List<dynamic> is not a valid subtype of List<String>

This is thrown as a result of the args generated within _getChildPids being passed to the TaskProcess constructor.

Solution

6900490

Boy Scoutin'

  1. 915cce5 Update .gitignore to include the .dart_tool directory

@evanweible-wf @corwinsheahan-wf @greglittlefield-wf

List<dynamic> is not a valid subtype of List<String> was being thrown when the `args` generated within `_getChildPids` was passed to the `TaskProcess` constructor.
@aviary3-wk
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

@aaronlademann-wf aaronlademann-wf changed the title Fix Dart2 RTE CPLAT-6014 Fix Dart2 RTE Jun 5, 2019
Copy link
Contributor

@greglittlefield-wf greglittlefield-wf left a comment

Choose a reason for hiding this comment

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

+1

Not sure if the build failure is related to these changes, so I'm rerunning Travis.

@@ -77,7 +77,7 @@ class TaskProcess {
pids = pids ?? [_process.pid];
String executable = 'pgrep';
List<TaskProcess> pgreps = [];
var args = [];
List<String> args = [];
Copy link
Contributor

Choose a reason for hiding this comment

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

fyi the other option here would be var/final args = <String>[];

@evanweible-wf
Copy link
Contributor

QA +1

  • CI passes

@Workiva/release-management-p

@rmconsole7-wk rmconsole7-wk merged commit 9cb1ff6 into master Jun 11, 2019
@rmconsole7-wk rmconsole7-wk deleted the fix-dart2-rte branch June 11, 2019 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants