Skip to content
This repository has been 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
Pacane opened this issue Apr 10, 2015 · 4 comments
Open

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

Pacane opened this issue Apr 10, 2015 · 4 comments

Comments

@Pacane
Copy link

Pacane commented Apr 10, 2015

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 method addItem() - 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.

@saden1
Copy link

saden1 commented Apr 20, 2015

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
Copy link
Author

Pacane commented Apr 20, 2015

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
#1709 (comment)
.

@ewot
Copy link

ewot commented Apr 21, 2015

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

@rkirov
Copy link
Contributor

rkirov commented Apr 23, 2015

64df6b8 fixed that issue.

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants