It may be similar. I agree that the Open JFX Gradle code is unwieldy, but in
terms of the project structure it is organized. The source for the module
sub-projects is at a relative path, but only as a subdirectories off the parent
project. The sub-projects are contained within the root project. No “../“ just
an extra folder “modules”. I think this case should be handled.
Scott
> On Sep 22, 2019, at 1:16 AM, Laszlo Kishalmi
> wrote:
>
>
> I fear the issue is on OpenJFX side. You might experiencing NETBEANS-2629
> (https://issues.apache.org/jira/browse/NETBEANS-2629) Please read my comments
> there.
>
> IMHO openjdk-jfx shall improve it's build. 5000+ line of gradle/groovy
> scripts in one place does not seem to be rational to me no matter what.
>
> But generally the Error node is displayed by NetBeans if the source root is
> outside of the project directory, meaning that an other project can claim
> the ownership of a file.
>
>> On 9/21/19 4:55 PM, Scott Palmer wrote:
>> I’m using NB 11.1 with OpenJDK 12.0.2 and Gradle 5.3 on macOS 10.15 (public
>> beta)
>> (also tried without "Prefer to use Gradle Wrapper that comes with the
>> Project” selected”, and a Gradle version of 5.6.2)
>>
>> I’m opening the OpenJFX project from
>> https://github.com/javafxports/openjdk-jfx.git
>>
>> This was working at one point a few days ago...
>> Oddly, having left NB open for a day or so, I noticed that the graphics
>> module project (which I also had opened and was working on) went to a weird
>> state, after many successful sleep/wake cycles of my laptop.
>> Now I recall that once before the ‘javafx.graphics’ module sub-project did
>> not appear in the list of sub-projects, and this appears to be happening
>> again.
>> When I open it explicitly it is in the same weird state that it seemed to
>> get into on it’s own while NB was open. After a few restarts and tweaking
>> Gradle settings (which version to use, though I don’t think that was the
>> issue), I managed to get NB to load the main project and show the
>> ‘javafx.graphics’ sub-project again. It was listed differently than other
>> projects which showed a ‘modules:javafx.’ prefix. I don’t think that prefix
>> is supposed to be there, based on the settings.gradle file. I suspect it ws
>> listed differently because I had some Java source files from it still opened
>> in editor tabs.
>>
>> When I load it, it shows with what I believe to be the correct name,
>> 'openjdk-jfx:graphics’, but the project is in a strange state.
>> All of the sub-nodes in the project tree, under the graphics project (where
>> it should show source roots, resources, etc) don’t show an icon anymore and
>> are prefixed with the text “Error Node:” - and they show as leaf-nodes so I
>> can’t look into the files.
>> I’ll attach a screenshot.
>>
>> I don’t have “Use Project Project Description as Project Name” checked in
>> the Java->Gradle settings. (That shouldn’t even be an option in my opinion
>> - it make little sense to me. The description is a big thing that doesn’t
>> fit, and the project has a definite name used in gradle commands that is
>> nothing related to the description string.)
>>
>> The “Experimental” option “use on-disk cache” is checked - I don’t remember
>> if I did that or it defaults to being selected.
>>
>> Regards,
>>
>> Scott
>>