-
Notifications
You must be signed in to change notification settings - Fork 59
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
Run possibly not working correctly / Integration with Intellij IDEA #80
Comments
This might have something to do with the way how Gradle is using their daemon. Normally a task does not require any deep interaction, it's for "working"-stuff. As you are using Gradle 4, which has even more daemon-stuff, this might be a gradle4-problem. I suspect the daemon does something my plugin doesn't like. Please add the verbose-switch to see more output (just inside the jfx-block), maybe you will get more details about what is happening. |
If I causing exceptions to be I also got this (text right after exceptions output)
I put JAVA_TOOL_OPTIONS in system variables because I got errors with russian commentaries in my code, not sure that it have an effect on, but extra info may be useful. |
@Aqluse can you check if adding
|
@FibreFoX |
No, as I wrote, just calling it from CLI
|
@FibreFoX |
Can you try to set this: jfx {
verbose = true
} There should be more valuable stuff printed out. |
@FibreFoX
Not Commented:
|
This means when having "verbose" being active (which should be the default while developing) and |
@FibreFoX
I don't understand very well P.S. I put |
As far as I understood this issue, you wanted to know what happened when calling |
@FibreFoX I don't really wanted to know why my application code didn't work right, because before Gradle setup it worked perfectly, but I wanted to figure out why Run/Debug (especially debug) tools started to fail. I'll check my project with latest Gradle 3.x version, as you said plugin isn't very optimised for newest version, then do some brainstorming if preceding won't help (it could be a way easier with debug), then I'll get you project sources. UPD: All the same with Gradle 3.5.1 |
@Aqluse I've downloaded your project, you can delete it now. When I find something, I will report back to you. |
Maybe this will be helpful too
|
The same problems with non-fx Java Gradle project in Intellij, in which I copied sources, libs and build.gradle text |
Now you lost me ... you are still using the gradle daemon. The task "jfxRun" is not compatible with the daemon, as that task was never thought of a real development-way, more than a quick-command for lazy execution. So is this stil an issue with the plugin, or just related to your IDE/project? |
@FibreFoX |
Currently there is no IDE-support, yes. This plugin was ment for the bundling-process, but I can see a lot of devs using this for more than just bundling. Nevertheless you can use your normal IDE-features for running/debugging. |
@FibreFoX Okay, it changes problem a little bit. I wanted to use Gradle to simplify online libs dependencies setting, so if it would work like that - it's ok. Do you plan to integrate plugin deeper with IDE's? |
I stuck after I decided to move my Intellij IDEA JavaFX project to Gradle JavaFX.
When I try to run app with jfxRun task, I got this in console (and nothing else, app don't show)
Immediately after I stop running
A little time after I stop
Tried to debug it - not even reach start() in main class. But if I change string parameter passed to getResource(), it throwing exceptions, so it is executed well, strange but still isn't reaching breakpoints in this line.
The text was updated successfully, but these errors were encountered: