angular.dart
angular.dart copied to clipboard
Pub not catching changes done to files when the app is using Angular
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 :
- Take this project, on master branch. https://github.com/Pacane/grocery-store
- pub upgrade
- pub serve
- Go in dartium and press "Add item" (an item should be added to the list)
- Now go in
grocery_list_component.dart
and comment the body of the methodaddItem()
- it should prevent the item to be added to the list - Refresh and Dartium
- Page never refreshes -- it keeps spinning
- If you're lucky, you should see errors in pub (doesn't always happen) Related Issues - has a similar issue been reported before? I haven't seen any.
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.
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?
I'm also on mint. On Apr 19, 2015 10:37 PM, "Sharmarke Aden" [email protected] 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 .
I see this issue on Ubuntu 14.10 64bit, DartEditor 1.9.3. Downgrading to Angular 1.1.0 fixes it.
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.