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

NoClassDefFoundError: org/jetbrains/kotlin/resolve/source/PsiSourceElementKt indexing square/okhttp repo #9

Open
olafurpg opened this issue Oct 19, 2021 · 1 comment

Comments

@olafurpg
Copy link
Member

Running lsif-java index in the square/okhttp repo

e: java.lang.NoClassDefFoundError: org/jetbrains/kotlin/resolve/source/PsiSourceElementKt
	at com.sourcegraph.semanticdb_kotlinc.GlobalSymbolsCache.getAllMethods(SymbolsCache.kt:253)
	at com.sourcegraph.semanticdb_kotlinc.GlobalSymbolsCache.methodDisambiguator(SymbolsCache.kt:197)
	at com.sourcegraph.semanticdb_kotlinc.GlobalSymbolsCache.semanticdbDescriptor(SymbolsCache.kt:178)
	at com.sourcegraph.semanticdb_kotlinc.GlobalSymbolsCache.uncachedSemanticdbSymbol-BfSPOvA(SymbolsCache.kt:109)
	at com.sourcegraph.semanticdb_kotlinc.GlobalSymbolsCache.getSymbol-BfSPOvA(SymbolsCache.kt:71)
	at com.sourcegraph.semanticdb_kotlinc.GlobalSymbolsCache.emitSymbols(SymbolsCache.kt:51)
	at com.sourcegraph.semanticdb_kotlinc.GlobalSymbolsCache.access$emitSymbols(SymbolsCache.kt:30)
	at com.sourcegraph.semanticdb_kotlinc.GlobalSymbolsCache$get$1.invokeSuspend(SymbolsCache.kt:40)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlin.sequences.SequenceBuilderIterator.hasNext(SequenceBuilder.kt:140)
	at kotlin.sequences.TransformingSequence$iterator$1.hasNext(Sequences.kt:214)
	at kotlin.sequences.TransformingSequence$iterator$1.hasNext(Sequences.kt:214)
	at kotlin.sequences.TransformingSequence$iterator$1.hasNext(Sequences.kt:214)

@Strum355 This looks like a Kotlin compiler version incompatibility. Do you think we'll need to cross-build/cross-publish the semanticdb-kotlinc compiler plugin?

@Strum355
Copy link
Member

From what I could tell, theyre using a version I had tested with https://github.com/square/okhttp/blob/master/buildSrc/src/main/kotlin/deps.kt#L24, will have to take a closer look 🧐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants