dart-archive / angular.dart

Legacy source repository. See github.com/dart-lang/angular
https://webdev.dartlang.org/angular/
1.24k stars 248 forks source link

Pub not catching changes done to files when the app is using Angular #1709

Open Pacane opened 9 years ago

Pacane commented 9 years ago

Overview of the Issue - When I launch the project, it works fine. When I change a line of the code, and press Refresh in Dartium, it will just never refresh.

If I take a look at pub's log sometimes I can see errors like this after editing a file:

Build error:
Failed to load source asset grocery_store|lib/grocery_list_component.dart___jb_bak___: Could not find asset grocery_store|lib/grocery_list_component.dart___jb_bak___.
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub/lib/src/barback/pub_package_provider.dart 82  PubPackageProvider._assertExists
/mnt/data/b/build/slave/dart-editor-linux-dev/build/dart/sdk/lib/_internal/pub/lib/src/barback/pub_package_provider.dart 76  PubPackageProvider.getAsset.<async>
dart:isolate 

Use case - It does it with 2 of my Angular apps, and doesn't do it with other apps that don't use Angular. Angular Version(s) - 1.1.1 Dart Version - 1.9.1 Browsers and Operating System - is this a problem with all browsers? Dartium stable Reproduce the Error :

Suggest a Fix - if you can't fix the bug yourself, perhaps you can point to what might be causing the problem (line of code or commit) - A current work around is to restart pub, but this is not viable.

saden1 commented 9 years ago

I am also experiencing this issue. I am running Dart/DartEditor version 1.9.3 on Linux Mint 17.1 64bit system. I tried completely re-install of Dart SDK, Dart Editor, clearing all caches, and even JetBrain's Dart Plugin. Nothing worked. I finally tried an older versions of angular and it appears the issue only occurs when using angular 1.1.1.

Downgrading to angular 1.1.0 is not ideal but it's a much more palatable proposition/workaround than having to restart pub server a billion times just to test your changes.

p.s. this issue reared it's ugly head fairly recently (2 weeks ago). I have been using angular 1.1.1 since it came out without any issue so perhaps the issue is with a dependency of angular 1.1.1?

Pacane commented 9 years ago

I'm also on mint. On Apr 19, 2015 10:37 PM, "Sharmarke Aden" notifications@github.com wrote:

I am also experiencing this issue. I am running Dart/DartEditor version 1.9.3 on Linux Mint 17.1 64bit system. I tried completely re-install of Dart SDK, Dart Editor, clearing all caches, and even JetBrain's Dart Plugin. Nothing worked. I finally tried an older versions of angular and it appears the issue only occurs when using angular 1.1.1.

Downgrading to angular 1.1.0 is not ideal but it's a much more palatable proposition/workaround than having to restart pub server a billion times just to test your changes.

— Reply to this email directly or view it on GitHub https://github.com/angular/angular.dart/issues/1709#issuecomment-94342801 .

ewot commented 9 years ago

I see this issue on Ubuntu 14.10 64bit, DartEditor 1.9.3. Downgrading to Angular 1.1.0 fixes it.

rkirov commented 9 years ago

https://github.com/angular/angular.dart/commit/64df6b802bfc7491bd72839f16fd7f07ac9d8178 fixed that issue.

We will release a bugfix 1.1.2 in the next few days. Stay tuned.