Skip to content

Commit ff4928c

Browse files
md-webermt-tadayon
andauthored
changed the path to a absolute / relative combination and changed the spawn function (#13)
Co-authored-by: Flutter Explained <[email protected]>
1 parent b438881 commit ff4928c

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

bin/main.dart

+8-5
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,24 @@ main(List<String> arguments) async {
77

88
final manager = ProcessManager();
99
await manager.spawn(
10-
"pub",
11-
["run", "--enable-asserts", path.relative("./bin/dart_koans_runner.dart")],
10+
"dart",
11+
[
12+
"--enable-asserts",
13+
path.absolute(path.relative("./bin/dart_koans_runner.dart"))
14+
],
1215
);
1316

1417
print("Debug: Watcher is watching!");
1518
watcher.events.listen((event) async {
1619
final manager = ProcessManager();
1720

1821
try {
22+
print("test");
1923
await manager.spawn(
20-
"pub",
24+
"dart",
2125
[
22-
"run",
2326
"--enable-asserts",
24-
path.relative("./bin/dart_koans_runner.dart")
27+
path.absolute(path.relative("./bin/dart_koans_runner.dart"))
2528
],
2629
);
2730
} catch (e) {

0 commit comments

Comments
 (0)