Structure view impl package not found

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.