Skip to content

JTE IntelliJ Plug-in doesn't work with Kotlin's K2 compiler #446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
boonyasukd opened this issue Apr 2, 2025 · 1 comment
Open

JTE IntelliJ Plug-in doesn't work with Kotlin's K2 compiler #446

boonyasukd opened this issue Apr 2, 2025 · 1 comment

Comments

@boonyasukd
Copy link

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".

Image

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
@sureshg
Copy link

sureshg commented Apr 14, 2025

Some discussion is happening here - casid/jte-intellij#49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants