Hello,
A simple test case that runs myfixture.doHighlighting() fails as shown below.
What needs to be done to resolve this?
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild=251
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
platformType=PY
platformVersion=2025.1.1
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformPlugins = com.jetbrains.php:203.4449.22, org.intellij.scala:2023.3.27@EAP
platformPlugins =
# Example: platformBundledPlugins = Pythonid com.intellij.java
platformBundledPlugins=Pythonid
# Example: platformBundledModules = intellij.spellchecker
platformBundledModules =
package com.github.chbndrhnns.intellijplatformplugincopy
import com.intellij.testFramework.LightProjectDescriptor
import com.intellij.testFramework.fixtures.BasePlatformTestCase
import jetbrains.python.fixtures.PyLightProjectDescriptor
import com.jetbrains.python.psi.LanguageLevel
class IntentionReproTest : BasePlatformTestCase() {
override fun getProjectDescriptor(): LightProjectDescriptor =
PyLightProjectDescriptor(LanguageLevel.getLatest())
fun testIntentionAvailableAfterHighlighting() {
myFixture.configureByText(
"a.py",
"""
from pathlib import Path
a: str = Path(<caret>"val")
""".trimIndent()
)
myFixture.doHighlighting()
}
}
Fails with:
/Users/jo/.gradle/caches/9.0.0/transforms/0a02ab88e0cb4993fe516a7c26a57f10/transformed/pycharm-professional-2025.1.1-aarch64/plugins/python/lib/modules should be lib directory
java.lang.IllegalStateException: /Users/jo/.gradle/caches/9.0.0/transforms/0a02ab88e0cb4993fe516a7c26a57f10/transformed/pycharm-professional-2025.1.1-aarch64/plugins/python/lib/modules should be lib directory
at com.intellij.ide.plugins.PluginManagerCoreKt.getPluginDistDirByClass(PluginManagerCore.kt:1119)
at com.jetbrains.python.PythonHelpersLocator.findRootByJarPath(PythonHelpersLocator.kt:142)
at com.jetbrains.python.p.m(p.java:27)
at com.jetbrains.python.PythonProHelpersLocator.getHelpersRoot(PythonProHelpersLocator.kt:21)
at com.jetbrains.python.PythonProHelpersLocator.m(PythonProHelpersLocator.kt:36)
at com.jetbrains.python.PythonProHelpersLocator.getRoot(PythonProHelpersLocator.kt:13)
at com.jetbrains.python.PythonHelpersLocator$Companion.getHelpersRoots(PythonHelpersLocator.kt:52)
at com.jetbrains.python.PythonHelpersLocator$Companion.findPathInHelpers(PythonHelpersLocator.kt:72)