my plugin use this import:
import com.intellij.ide.structureView.impl.common.PsiTreeElementBase
but package impl is not found, which is the module that I need to add to my plugin.xml to reach this package?
my plugin use this import:
import com.intellij.ide.structureView.impl.common.PsiTreeElementBase
but package impl is not found, which is the module that I need to add to my plugin.xml to reach this package?
How do you configure your plugin dependencies? Do you use <depends> or <plugin>/<module> inside dependencies?
Are you trying to compile with 262-EAP ?
this is the solution:
<dependencies>
<module name="intellij.platform.lang"/>
<module name="intellij.platform.structureView.impl"/>
</dependencies>
Yes, if you switched to plugin format v2 you will need to add new modules one by one.
Recently, we have started a big modularization project, so your plugin may require more explicit module dependencies. Plugins using depends are not affected with this change
@yuriy.artamonov Well, I think you need to check something because I had to migrate from depends to dependencies because my plugin was not able to reach this class:
import com.intellij.ide.structureView.impl.common.PsiTreeElementBase Iâm compiling to 262 EAP
Hi! Iâm facing a similar issue where the plugin verifier is now failing because Package âcom.intellij.ide.structureView.impl.commonâ is not found.
You say: âPlugins using depends are not affected with this changeâ, well this is my case, and Iâm not willing to migrate to modular plugins (if that is indeed what you mean by âplugin format v2â) as it looks like itâs still experimental and even not recommended in its documentation.
Is there any way to fix this without migrating to modular plugins? Currently this is what I have:
<depends>com.intellij.modules.platform</depends>
<depends>com.intellij.modules.lang</depends>
The compilation problem can be solved with bundledModule("intellij.platform.structureView.impl") in the Gradle build.
In my setup with the latest 2026.2 eap, class âStructureAwareNavBarModelExtensionâ became unavailable unless I add the new dependency.
Iâve not yet tested runtime dependencies, but hopefully no changes are necessary.
This commit made the changes to 2026.2: IJPL-203325: register structureView.impl model as content, drop lang-⌠¡ JetBrains/intellij-community@c725e8e ¡ GitHub
Thanks a lot @jansorg ! However in my case this fails with Specified bundledModule âintellij.platform.structureView.implâ doesnât exist.
Maybe I need to bump my sinceBuild (currently 252) for this to work? (Which I wasnât really ready to do right nowâŚ)
The module is only in 2026.2. Adding it in the build is not possible for earlier build versions.
I use one-build-per-major-version and enable it conditionally in the build setup.
Your problem is probably something else, as itâs raised by the verifier.
Iâd say itâs a problem of the 2026.2 eap because the verifier should see what the IDE does at runtime, but only JetBrains can confirm if thatâs the case.
Does it work within a 2026.2 eap IDE or do you get exceptions at runtime?
I tried this with the latest 2026.2 eap and I think itâs broken.
In the Gradle file, I added this (but IMHO this shouldnât be needed):
bundledModule("intellij.platform.structureView.impl")
Now the code compiles again, but when I add the dependency itâs not found at runtime:
<dependencies>
<module name="intellij.platform.lang"/>
<module name="intellij.platform.structureView.impl"/>
</dependencies>
idea.log:
module intellij.platform.structureView.impl (namespace=jetbrains) is not resolved
â dependent module intellij.json.structureView, module intellij.xml.structureView.impl, module intellij.platform.lsp.impl.structureView excluded
If I donât add the dependency, this returns null in a test, which breaks lots of tests:
StructureViewFactory.getInstance(project) // returns null with latest 2026.2 eap
Currently, I donât know how to make the tests work again and think that the EAP is somehow broken.
All right I just tested with 2026.2 EAP, and my plugin seems to work fine. So in my case, only the plugin verifier is a problem.
I temporarily suppressed it for now, but I worry that it will prevent me from publishing to the store though.
Hi all,
We expect that all current plugins will work as before in runtime without recompilation need, let us recheck the compatibility checks and depends in v1 plugin format.
Still, I am sorry, for compilation with 2026.2 platform there will be changes needed
Update with todayâs EAP:
Now itâs apparently bundledModule("intellij.platform.structureView"), I still need to test if tests are still broken or if theyâre working again.
Tests are still broken with todayâs EAP:
Compilation succeeds, but tests fail because (for unknown reasons) the module can not be resolved at runtime in tests:
module intellij.platform.structureView (namespace=jetbrains) is not resolved
â dependent module intellij.json.structureView, module intellij.xml.structureView.impl, module intellij.platform.lsp.impl.structureView excluded
The above was with a V2 module.
Now, with a V1 plugin building against the current 262 eap, thereâs the same error and also a few more (idea.log):
module intellij.platform.structureView (namespace=jetbrains) is not resolved
â dependent module intellij.xml.structureView.impl, module intellij.platform.lsp.impl.structureView excluded
module intellij.platform.testRunner (namespace=jetbrains) is not resolved
â dependent module intellij.platform.coverage excluded
Either the gradle-intellij-platform plugin is creating an invalid test classpath or something else is wrong. For now, Iâm unable to test against 2026.2 eaps.