From 6900490421ea32d8440221e13461c14b838c66e0 Mon Sep 17 00:00:00 2001 From: Aaron Lademann Date: Wed, 5 Jun 2019 05:31:55 -0700 Subject: [PATCH 1/2] Fix Dart 2 RTE List is not a valid subtype of List was being thrown when the `args` generated within `_getChildPids` was passed to the `TaskProcess` constructor. --- lib/src/task_process.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/task_process.dart b/lib/src/task_process.dart index 76df7694..6f5a677e 100644 --- a/lib/src/task_process.dart +++ b/lib/src/task_process.dart @@ -77,7 +77,7 @@ class TaskProcess { pids = pids ?? [_process.pid]; String executable = 'pgrep'; List pgreps = []; - var args = []; + List args = []; List cpids = []; for (int pid in pids) { args = []; From 915cce5e46a04dcdf09ca3de4ddf9515d770fec9 Mon Sep 17 00:00:00 2001 From: Aaron Lademann Date: Wed, 5 Jun 2019 08:33:37 -0700 Subject: [PATCH 2/2] Update .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index a9eea254..522a6b28 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .packages .pub +.dart_tool packages pubspec.lock build/