-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Improve error messages when transformer plugins fail to load #17200
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
Added Pkg-Barback, Area-Pkg, Triaged labels. |
I can't reproduce this locally. Can you confirm this is still happening on the latest bleeding edge pub version, and if so can you provide a tarball of an app where this happens? |
Added CannotReproduce label. |
So, it turns out I was incorrectly referring to the transformer. I needed to specify full path to the file where the transformer is defined, but instead I just used the package name. Bob N. says for that to work I have to name the file transformer.dart. I'll try that later. However, that's not an excuse to produce illegible errors. It should clearly say "your transformer cannot be found" or sth like that, preferably w/o stack traces. So, I tried again. I cannot reproduce the exact same error, but I get a different error, this time even less legible that the last. Attaching both the stderr and the archived sample projects. Dart VM version: 1.3.0-dev.3.2 (Mon Mar 10 11:06:13 2014) on "macos_x64" Attachments: |
It would be nice to improve these error messages, but currently the IsolateSpawnException API doesn't expose any information we can use to do so. I've filed issue #17492 to track that. Removed Pkg-Barback, Area-Pkg labels. |
Issue #15594 has been merged into this issue. |
Issue #19961 has been merged into this issue. |
This issue has been moved to dart-lang/pub#896. |
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Expecting 'pub serve' not to crash. Instead, it crashes (stderr output from pub --trace 'serve' attached).
What version of the product are you using? On what operating system?
barback 0.11.1
Tried two Dart VM versions:
1.3.0-dev.0.0 (Wed Feb 26 07:39:42 2014) on "macos_x64"
1.2.0-dev.5.15 (Mon Feb 24 02:12:58 2014) on "macos_x64"
Attachment:
barback-sterr.log (146.37 KB)
The text was updated successfully, but these errors were encountered: