Class not found - attempting to use TypeScript PSI in Idea Ultimate plugin
Hi,
I'm adding “javascript-impl” (JavaScriptLanguage seems to be gone as of 2023) to the classpath of the IDEA SDK. Annotation/code editing is fine, everything seems to be in order until the relevant code runs, where it says
> Caused by: java.lang.ClassNotFoundException: com.intellij.lang.typescript.psi.TypeScriptPsiUtil
This happens for com.intellij.lang.javascript.psi.ecma6.impl.TypeScriptFunctionImpl too, and I assume everything that's from javascript-impl.
Does anyone know what might I be missing? I've set the platform type to IU and added “JavaScript” to plugins (under the assumption that JavaScript now points to javascript-impl--could not find anywhere any kind of reference to exactly which jar “JavaScript” points to or what the jar points to)
Please sign in to leave a comment.
Please follow guide from https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
Never edit the SDK/libraries manually, this must all be configured from proper Gradle setup.
This page helped a lot, thanks, I somehow missed it when I was going over things again to debug. I was missing <Depends> for it in the XML.
I was also using the Intellij IDEA IU SDK rather than an Amazon Coretto 18. Not entirely sure how to use DevKit/SDK then (the instructions on this page says that I _should_ add it directly to that SDK's classpath), but it doesn't matter I suppose, I'll follow just the Gradle instructions from here on out, it works now. Thanks!