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

Do not crash when documenting an export with '//' #2254

Merged
merged 1 commit into from
Jul 8, 2020

Conversation

srawlins
Copy link
Member

@srawlins srawlins commented Jul 8, 2020

Fixes dart-lang/sdk#43467

When a library exports another with a double slash, like export "src//a.dart";, dartdoc may crash.

This avoids that crash. It's not a great fix, but can be addressed again later.

@srawlins srawlins requested a review from scheglov July 8, 2020 14:20
@googlebot googlebot added the cla: yes Google CLA check succeeded. label Jul 8, 2020
Copy link
Member

@devoncarew devoncarew left a comment

Choose a reason for hiding this comment

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

lgtm

Should we add a hint (in the analyzer) if import urls aren't normalized? Or, if there's some trivial normalization that could occur (if for some reason there are use cases for non-normalized urls)? So that would be for things like foo//bar.dart, or, foo/bar/../baz.dart.

@srawlins
Copy link
Member Author

srawlins commented Jul 8, 2020

I think dart-lang/sdk#57700 is such a request.

@srawlins srawlins merged commit ed8ac3c into dart-lang:master Jul 8, 2020
@srawlins srawlins deleted the fix-2242 branch July 8, 2020 15:17
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.

NPE while scanning instance methods
3 participants