-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Automatically reload transformers when the pubspec changes #19163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Please include the --verbose log of the errors you're receiving. Added NeedsInfo label. |
This was reported by me via the Editor feedback. I just happened to see it roll by the issues list, but you should know there's no way for Steve to get you more info from [user feedback]. Anyway, I didn't receive any errors from pub, I received errors from Polymer because pub didn't run the transformer I added, it just happily used the stale configuration from the previous version of my pubspec.yaml. Added Triaged label. |
Removed Priority-Unassigned label. |
Issue #19214 has been merged into this issue. |
Marked this as blocking #14206. |
This comment was originally written by @zoechi Currently I had the case today where I had to add a transformer to a dependency (path dependency). In this case See also https://code.google.com/p/dart/issues/detail?id=20673 |
It's an Editor feature. Pub serve itself doesn't currently check for this (though we would like it to).
Ah, yes. I don't think the Editor considers that case. Removed Area-Pub label. |
Seems reasonable to restart pub serve when a change to pubspec.yaml is detected. Set owner to @keertip. |
Added this to the 1.7 milestone. |
My understanding is that the Editor does that now when it's your own pubspec that changed. What it doesn't do, that gzoechi is talking about, is monitor the pubspecs of your path dependencies for changes. |
ah, thanks for the clarification. |
Would it be reasonable for Going to close this for Editor, but would love to see a discussion around reloading and pub serve. Added NotPlanned label. |
[user feedback]
Adding transformers to a pubspec requires me to manually kill pub serve.
I added the polymer transformer, but was still getting errors in my app resulting from not having the transformer. Killing pub serve fixed the problem.
////////////////////////////////////////////////////////////////////////////////////
Editor: 1.5.0.dev_02_00 (2014-05-26)
OS: Mac OS X - x86_64 (10.9.2)
JVM: 1.6.0_65
projects: 26
open dart files: 8
auto-run pub: true
localhost resolves to: 127.0.0.1
mem max/total/free: 1983 / 1983 / 237 MB
thread count: 55
index: 5630817 relationships in 418107 keys in 4146 sources
SDK installed: true
Dartium installed: true
The text was updated successfully, but these errors were encountered: