dart-archive / sdk

The Dartino project was an experiment seeking to improve productivity when writing application code for embedded devices.
https://dartino.org
Other
331 stars 36 forks source link

Persistent process ignores changes to packages if not restarted #366

Open ricowind opened 8 years ago

ricowind commented 8 years ago

@peter-ahe-google @wibling @sgjesse

Version: 0.2.0-edge.50ffce48a0d44ac290c2623543a01d5051039c71 OS: Linux

How to reproduce the problem: Create a test.dart file with the following content:

import 'package:file/file.dart';

main() {
  var f = new File.open("/tmp/foobar.txt", mode: File.WRITE);
  f.close();
}

As expected, the output of running:

$ out/DebugX64/fletch run test.dart

is no output on the console

Add this line in pkg/file/lib/file.dart in the close method:

    print("closing file");

Run:

$ out/DebugX64/fletch run test.dart

Still no output.

Run:

$ out/DebugX64/fletch quit
$ out/DebugX64/fletch run test.dart
closing file

we now have output.

sgjesse commented 8 years ago

Can this be related to incremental compilation? Can you try to change

"incremental_mode": "production"

to

"incremental_mode": "none"

in the .fletch-settings file?

ricowind commented 8 years ago

@sgjesse same result with incremental_mode set to none