Skip to content

RangeError (end): Invalid value: Not in inclusive range 7..8: 1 #2808

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

Closed
isoos opened this issue Sep 27, 2021 · 4 comments · Fixed by #2813
Closed

RangeError (end): Invalid value: Not in inclusive range 7..8: 1 #2808

isoos opened this issue Sep 27, 2021 · 4 comments · Fixed by #2813
Assignees
Labels
P1 A high priority bug; for example, a single project is unusable or has many test failures type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@isoos
Copy link
Contributor

isoos commented Sep 27, 2021

RangeError (end): Invalid value: Not in inclusive range 7..8: 1
#0      RangeError.checkValidRange (dart:core/errors.dart:338:9)
#1      _StringBase.substring (dart:core-patch/string_patch.dart:393:27)
#2      CommentReferenceParser._tryParseOperator (package:dartdoc/src/comment_references/parser.dart:219:20)
#3      CommentReferenceParser._parseIdentifier (package:dartdoc/src/comment_references/parser.dart:231:25)
#4      CommentReferenceParser._parseRawCommentReference (package:dartdoc/src/comment_references/parser.dart:114:30)
#5      CommentReferenceParser.parse (package:dartdoc/src/comment_references/parser.dart:85:20)
#6      _ModelCommentReferenceImpl.parsed (package:dartdoc/src/comment_references/model_comment_reference.dart:122:51)
#7      _ModelCommentReferenceImpl._initAllowCache (package:dartdoc/src/comment_references/model_comment_reference.dart:38:27)
#8      _ModelCommentReferenceImpl.allowUnnamedConstructor (package:dartdoc/src/comment_references/model_comment_reference.dart:62:7)
#9      _getMatchingLinkElementCommentReferable (package:dartdoc/src/markdown_processor.dart:197:24)
#10     getMatchingLinkElement (package:dartdoc/src/markdown_processor.dart:261:16)
#11     _makeLinkNode (package:dartdoc/src/markdown_processor.dart:230:16)
#12     new MarkdownDocument.withElementLinkResolver.linkResolver (package:dartdoc/src/markdown_processor.dart:333:14)
#13     LinkSyntax._resolveReferenceLink (package:markdown/src/inline_parser.dart:1057:34)
#14     LinkSyntax._tryCreateReferenceLink (package:markdown/src/inline_parser.dart:1085:12)
#15     LinkSyntax.close (package:markdown/src/inline_parser.dart:1028:12)
#16     InlineParser._linkOrImage (package:markdown/src/inline_parser.dart:152:29)
#17     InlineParser.parse (package:markdown/src/inline_parser.dart:108:9)
#18     MarkdownDocument._parseInlineContent (package:dartdoc/src/markdown_processor.dart:382:67)
#19     MarkdownDocument._parseInlineContent (package:dartdoc/src/markdown_processor.dart:387:9)
#20     MarkdownDocument.parseMarkdownText (package:dartdoc/src/markdown_processor.dart:372:5)
#21     Documentation._parseDocumentation (package:dartdoc/src/model/documentation.dart:73:21)
#22     Documentation._renderDocumentation (package:dartdoc/src/model/documentation.dart:48:23)
#23     Documentation.asOneLiner (package:dartdoc/src/model/documentation.dart:40:7)
#24     ModelElement.oneLineDoc (package:dartdoc/src/model/model_element.dart:932:43)
#25     renderClass (package:dartdoc/src/generator/templates.aot_renderers_for_html.dart:1580:34)
#26     HtmlAotTemplates.renderClass (package:dartdoc/src/generator/templates.dart:128:7)
#27     DartdocGeneratorBackend.generateClass (package:dartdoc/src/generator/dartdoc_generator_backend.dart:157:29)
#28     GeneratorFrontEnd._generateDocs (package:dartdoc/src/generator/generator_frontend.dart:60:29)
#29     GeneratorFrontEnd.generate (package:dartdoc/src/generator/generator_frontend.dart:21:5)
#30     Dartdoc.generateDocsBase (package:dartdoc/dartdoc.dart:214:21)
<asynchronous suspension>
#31     Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:251:24)
@jcollins-g jcollins-g added P1 A high priority bug; for example, a single project is unusable or has many test failures type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Sep 27, 2021
@jcollins-g
Copy link
Contributor

Apparently, the string Funvas.u crashes the parser.

@jcollins-g
Copy link
Contributor

will publish this Monday next week.

@isoos
Copy link
Contributor Author

isoos commented Sep 28, 2021

thank you!

@creativecreatorormaybenot

thank you @jcollins-g ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 A high priority bug; for example, a single project is unusable or has many test failures type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants