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

Dokka failing for email-like string in angle brackets #3329

Closed
atyrin opened this issue Nov 10, 2023 · 2 comments · Fixed by #3409 or #3476
Closed

Dokka failing for email-like string in angle brackets #3329

atyrin opened this issue Nov 10, 2023 · 2 comments · Fixed by #3409 or #3476
Assignees
Labels
bug regression An issue/bug that appeared after recent changes
Milestone

Comments

@atyrin
Copy link
Contributor

atyrin commented Nov 10, 2023

/**
 * <me@mail.com>
 */
class Kclass {
}

dokka generation fails with

Caused by: java.lang.NoSuchMethodError: it.unimi.dsi.fastutil.ints.IntArrayList.pop()Ljava/lang/Integer;
	at org.intellij.markdown.flavours.gfm.lexer._GFMLexer.advance(_GFMLexer.kt:456)
	at org.intellij.markdown.lexer.MarkdownLexer.advanceBase(MarkdownLexer.kt:60)
	at org.intellij.markdown.lexer.MarkdownLexer.calcNextType(MarkdownLexer.kt:55)
	at org.intellij.markdown.lexer.MarkdownLexer.locateToken(MarkdownLexer.kt:48)
	at org.intellij.markdown.lexer.MarkdownLexer.advance(MarkdownLexer.kt:38)
	at org.intellij.markdown.parser.sequentialparsers.LexerBasedTokensCache$Companion.cacheTokens(LexerBasedTokensCache.kt:51)
	at org.intellij.markdown.parser.sequentialparsers.LexerBasedTokensCache$Companion.access$cacheTokens(LexerBasedTokensCache.kt:25)
	at org.intellij.markdown.parser.sequentialparsers.LexerBasedTokensCache.<init>(LexerBasedTokensCache.kt:15)
	at org.intellij.markdown.parser.MarkdownParser.doParseInline(MarkdownParser.kt:80)
	at org.intellij.markdown.parser.MarkdownParser.parseInline(MarkdownParser.kt:38)
	at org.intellij.markdown.parser.MarkdownParser$InlineExpandingASTNodeBuilder.createLeafNodes(MarkdownParser.kt:110)
	at org.intellij.markdown.parser.TopLevelBuilder.createASTNodeOnClosingEvent(TopLevelBuilder.kt:21)
	at org.intellij.markdown.parser.TreeBuilder.buildTree(TreeBuilder.kt:40)
	at org.intellij.markdown.parser.MarkdownParser.doParse(MarkdownParser.kt:74)
	at org.intellij.markdown.parser.MarkdownParser.parse(MarkdownParser.kt:26)
	at org.intellij.markdown.parser.MarkdownParser.buildMarkdownTreeFromString(MarkdownParser.kt:21)
	at org.jetbrains.dokka.analysis.markdown.jb.MarkdownParser.parseStringToDocNode(MarkdownParser.kt:37)
	at org.jetbrains.dokka.analysis.kotlin.descriptors.compiler.translator.KdocMarkdownParserKt.parseFromKDocTag$parseStringToDocNode(KdocMarkdownParser.kt:27)
	at org.jetbrains.dokka.analysis.kotlin.descriptors.compiler.translator.KdocMarkdownParserKt.parseFromKDocTag(KdocMarkdownParser.kt:39)
	at org.jetbrains.dokka.analysis.kotlin.descriptors.compiler.translator.KdocMarkdownParserKt.parseFromKDocTag$default(KdocMarkdownParser.kt:17)
	at org.jetbrains.dokka.analysis.kotlin.descriptors.compiler.translator.DokkaDescriptorVisitor.resolveDocumentation(DefaultDescriptorToDocumentableTranslator.kt:1056)
	at org.jetbrains.dokka.analysis.kotlin.descriptors.compiler.translator.DokkaDescriptorVisitor.resolveDescriptorData(DefaultDescriptorToDocumentableTranslator.kt:926)
	at org.jetbrains.dokka.analysis.kotlin.descriptors.compiler.translator.DokkaDescriptorVisitor.access$resolveDescriptorData(DefaultDescriptorToDocumentableTranslator.kt:152)
	at org.jetbrains.dokka.analysis.kotlin.descriptors.compiler.translator.DokkaDescriptorVisitor$resolveClassDescriptionData$2.invokeSuspend(DefaultDescriptorToDocumentableTranslator.kt:961)
	at org.jetbrains.dokka.analysis.kotlin.descriptors.compiler.translator.DokkaDescriptorVisitor$resolveClassDescriptionData$2.invoke(DefaultDescriptorToDocumentableTranslator.kt)
	at org.jetbrains.dokka.analysis.kotlin.descriptors.compiler.translator.DokkaDescriptorVisitor$resolveClassDescriptionData$2.invoke(DefaultDescriptorToDocumentableTranslator.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
	at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:264)
	at org.jetbrains.dokka.analysis.kotlin.descriptors.compiler.translator.DokkaDescriptorVisitor.resolveClassDescriptionData(DefaultDescriptorToDocumentableTranslator.kt:958)
	at org.jetbrains.dokka.analysis.kotlin.descriptors.compiler.translator.DokkaDescriptorVisitor.classDescriptor(DefaultDescriptorToDocumentableTranslator.kt:413)
	at org.jetbrains.dokka.analysis.kotlin.descriptors.compiler.translator.DokkaDescriptorVisitor.visitClassDescriptor(DefaultDescriptorToDocumentableTranslator.kt:201)
	at org.jetbrains.dokka.analysis.kotlin.descriptors.compiler.translator.DokkaDescriptorVisitor$visitClasslikes$2$invokeSuspend$$inlined$parallelMap$1$1.invokeSuspend(parallelCollectionOperations.kt:28)

Installation

  • Dokka version: 1.9.20
@atyrin atyrin added the bug label Nov 10, 2023
@IgnatBeresnev IgnatBeresnev added the regression An issue/bug that appeared after recent changes label Nov 23, 2023
@IgnatBeresnev IgnatBeresnev added this to the Dokka 1.9.20 milestone Nov 23, 2023
@IgnatBeresnev
Copy link
Member

This is a regression from #3231.

The markdown parsing library probably needs a different version of it.unimi.dsi.fastutil.ints.IntArrayList than what's provided by our analysis, so it can't find the method it was compiled against.

@atyrin
Copy link
Contributor Author

atyrin commented Jan 23, 2024

N.B. The fix leads to a new required dependency for generating html output with CLI runner: https://repo1.maven.org/maven2/it/unimi/dsi/fastutil/8.5.12/fastutil-8.5.12.jar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug regression An issue/bug that appeared after recent changes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants