Plugin build error: cannot find symbol com.intellij.execution.configurations.JavaCommandLineState

Answered

Hello,
I have a plugin project. When I build this project with Gradle I get an error:

/data-weave-plugin/src/main/java/org/mule/tooling/lang/dw/launcher/configuration/runner/WeaveRunnerCommandLine.java:4: error: cannot find symbol
import com.intellij.execution.configurations.JavaCommandLineState;
^
symbol: class JavaCommandLineState
location: package com.intellij.execution.configurations

At the same time, IntelliJ IDEA source files contain this class.

Link on the repository: https://github.com/karnilaev/mule-intellij-plugins
Please help me. How can I fix this error?

1
2 comments

You must define dependency on Java plugin to use its classes in your plugin. https://blog.jetbrains.com/platform/2019/06/java-functionality-extracted-as-a-plugin/

1

Thank you very much!

It works! ))

0

Please sign in to leave a comment.