Open RaphaelTarita opened 3 years ago
I tried a lot of other things (like removing the imports and all references to javafx.scene.paint.Color/Paint
), but ultimately, uninstalling and re-installing the TornadoFX Plugin resolved the problem. I still don't know why it happened or how long it will take until I run into the same issue again, but it is a working quick fix.
Edit: Nope, wrong. Apparently, after uninstalling and reinstalling the plugin, it was still set to "disabled". That's why everything worked fine. Re-enabling the plugin brought back all problems.
I'm having the same issue exactly. Hope this gets fixed soon, as it's a major annoyance.
I'm having the same issue. Could it be related to the package name change in Java 9 (com.sun.javafx
to javafx
)? As far as I know, the bundled JRE is Java 8, so it wouldn't have the new package.
I'm not sure about this. The javafx
change in Java 9 is a major topic in tornadofx, but it has been addressed. Now of course, this does not necessarily have to be the case for the IntelliJ plugin, but the logical implication of this would be that the plugin would fail for any symbol imported from javafx. Which is not the case AFAIK.
But on the other hand it would be a reasonable explanation. I really don't know.
use IDEA with java8 bundled can fix the issue
Yeah. I can't keep using java8 as the javafx community has moved on. I will have to disable the plugin :(
Yeah. I can't keep using java8 as the javafx community has moved on. I will have to disable the plugin :(
you can delete that feature from your plugin jar file:
<annotator language="kotlin" implementationClass="no.tornado.tornadofx.idea.annotator.CSSColorAnnotator" order="first"/>
tornadofx-idea-plugin\lib\tornadofx-idea-plugin-1.7.17.2.jar\META-INF\plugin.xml
if use java 8 copy jdk1.8.0/jre/lib/ext/jfxrt.jar to IntelliJIdea/plugins/tornadofx-idea-plugin/lib restart idea
if use java 9+
install JavaFX Runtime for plugins
restart idea
I don't know what exactly I've done to cause this, but as of now, I can't perform the standard IntelliJ code analysis in my TornadoFX project as long as the TornadoFX plugin is active. I've tried everything, from restarting the IDE, disabling and enabling the plugin and also restarting the PC.
The IDE Error Log shows the following stacktrace of the error caused by the TornadoFX plugin:
This error apparently causes the IDE code analysis to freeze or hang. In the top right corner of the editor, you normally see a badge with the number of warnings and errors in the current file. This badge is stuck to just displaying "Analyzing...". The "Problems" pane also just shows "Analyzing [File]". While this analysis is stuck, I don't have any error highlighting and also a greatly reduced syntax highlighting (just like the version you ususally see when you just opened up a project).
As I said, I don't really know what caused the error, but it seems to be linked to the file I was working on. For further information, here's that file:
Some version data: