Skip to content
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

confusing error message when package: import fails #5059

Closed
jmesserly opened this issue Sep 10, 2012 · 5 comments
Closed

confusing error message when package: import fails #5059

jmesserly opened this issue Sep 10, 2012 · 5 comments
Labels
area-vm type-enhancement A request for a change that isn't a bug

Comments

@jmesserly
Copy link

this came up on the mailing list, but I've noticed it myself too. If you forget to run "pub install" the error message is confusing:

  Error: line 1 pos 1: library handler failed
  #import('package:unittest/unittest.dart');

The VM doesn't know about "pub" but maybe it could print something more like:

  Error: line 1 pos 1: could not find library in the root packages directory, did you forget to install it?
  #import('package:unittest/unittest.dart');

That would give users a better idea of what went wrong and how to fix it.

A related issue: when one library import fails deep down, the VM reports a cascade of failures. It isn't immediately clear which one had the typo.

@iposva-google
Copy link
Contributor

Added this to the Later milestone.

@iposva-google
Copy link
Contributor

Removed Priority-Medium label.
Added Priority-Unassigned label.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the Later milestone.
Added Oldschool-Milestone-Later label.

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-Later label.

@jmesserly
Copy link
Author

Assumed Stale

@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed triaged labels Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants