Skip to content

Fix crash on invalid prefix imports. #1899

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

Merged
merged 3 commits into from
Jan 11, 2019
Merged

Fix crash on invalid prefix imports. #1899

merged 3 commits into from
Jan 11, 2019

Conversation

jcollins-g
Copy link
Contributor

Fixes #1896.

@isoos

Ideally, we'd be able to use analyzer warnings/errors to put out a nice error message here, but there are a lot of complications and blocking issues for doing that internally to dartdoc. For now, just drop the invalid prefix import to avoid the crash and assume the fact that the package doesn't work at all will supercede people from caring about minor inaccuracies in the generated docs.

@jcollins-g jcollins-g requested a review from pq January 11, 2019 18:59
@googlebot googlebot added the cla: yes Google CLA check succeeded. label Jan 11, 2019
@coveralls
Copy link

coveralls commented Jan 11, 2019

Coverage Status

Coverage remained the same at 93.808% when pulling 82f1a01 on dartdoc-crash-vint into a6b4e7d on master.

Copy link
Member

@pq pq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💎

@jcollins-g jcollins-g merged commit ca6a56d into master Jan 11, 2019
@jcollins-g jcollins-g deleted the dartdoc-crash-vint branch January 14, 2019 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dartdoc crashes on invalid prefix imports
4 participants