Unclear that pub build stopped because of conflict of files on disk #861
Labels
closed-duplicate
Closed in favor of an existing report
type-enhancement
A request for a change that isn't a bug
<img src="https://avatars.githubusercontent.com/u/5479?v=3" align="left" width="96" height="96"hspace="10"> Issue by sethladd
Originally opened as dart-lang/sdk#16748
Hi,
I tried running pub build, and it stopped before overwriting files. (In my case, I was running dart2js manually to test lazy loading, so my web/ dir had compiled files in it)
Pub build did the right thing, however it's a bit unclear what the error is. I'm wondering if developers new to Dart will understand how to take action. I'd like to propose a strawman for your consideration, in order to help new developers address the issue.
Actual:
Build error:
Transforms {Dart2JS on lazyloadtest|web/lazyloadtest.dart} all emitted asset lazyloadtest|web/lazyloadtest.dart.js.map.
Build error:
Transforms {Dart2JS on lazyloadtest|web/lazyloadtest.dart} all emitted asset lazyloadtest|web/lazyloadtest.dart.precompiled.js.
Build failed.
Can we add:
", but asset was also found on filesystem at [path]. Skipping transform to avoid overwriting file."
(just a strawman)
If you like the idea, I can submit the patch for your consideration. Suggestions for better message very welcome.
Thanks!
The text was updated successfully, but these errors were encountered: