You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using JTE plugin with K2 compiler in a maven project, all @import statements are underlined in red. When hovering a mouse over one of those offending lines, the system says "Package directive and imports are forbidden in code fragments".
To fix the problem, I have to revert the IDE back to legacy compiler. Then the import statements work as it should.
Software
Version
Kotlin
2.1.20
JTE
3.2.0
plugin
2.2.1
IntelliJ IDEA 2024.3.5 (Community Edition)
Build #IC-243.26053.27, built on March 16, 2025
Runtime version: 21.0.6+8-b631.39 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 11.0
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4096M
Cores: 16
Registry:
ide.experimental.ui=true
llm.show.ai.promotion.window.on.start=false
Non-Bundled Plugins:
com.redhat.devtools.intellij.telemetry (1.2.1.62)
Docker (243.26053.27)
org.jusecase.jte-intellij (2.2.1)
mobi.hsz.idea.gitignore (4.5.6)
Kotlin: 243.26053.27-IJ
The text was updated successfully, but these errors were encountered:
When using JTE plugin with K2 compiler in a maven project, all
@import
statements are underlined in red. When hovering a mouse over one of those offending lines, the system says "Package directive and imports are forbidden in code fragments".To fix the problem, I have to revert the IDE back to legacy compiler. Then the import statements work as it should.
The text was updated successfully, but these errors were encountered: