This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
Pub not catching changes done to files when the app is using Angular #1709
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels