It did not work for me :-(
I had that checked, I tried unchecking it, I reloaded projects, checked it 
again, reloaded projects.. it didn’t seem to have any effect. I don’t even know 
what it is supposed to do, but it didn’t solve the issue.

Has anyone tried to reproduce the auto-complete issue?  That doesn’t involve 
any non-core NetBeans stuff.

Scott


> On Jan 7, 2019, at 3:05 PM, Florian Vogler <[email protected]> wrote:
> 
> Hi,
> I had the same issue with syntax highlighting in gradle projects.
> After playing around with the "Allow Modules" option of the gradle
> plugin it goes away.
> (Preferences -> Misc -> Gradle -> Java Modules -> Allow Modules)
> Hope that works for you.
> Regards
> Florian
> 
> Am Mo., 7. Jan. 2019 um 20:35 Uhr schrieb Scott Palmer <[email protected]>:
>> 
>> Okay, my experiments with java.logging were messed up.  I don’t need the 
>> --add-modules, for javac either… I suspect that happened while I had some 
>> other confusion, maybe I was trying to use a module-info.java file before I 
>> realized you can’t use those for non-trivial applications because 
>> “dependencies”
>> 
>> But the auto-complete thing is real.  It also remains a mystery why 
>> java.util.logging is shown as an error for Gradle projects.
>> 
>> Scott
>> 
>> 
>>> On Jan 7, 2019, at 1:49 PM, Jan Lahoda <[email protected]> wrote:
>>> 
>>> Sorry, I am a bit puzzled: I assumed we are talking about a project that is
>>> in the unnamed Jigsaw module, right? Then that should see java.logging even
>>> without any --add-modules?
>>> 
>>> Jan
>>> 
>>> On Mon, Jan 7, 2019 at 7:02 PM Scott Palmer <[email protected]> wrote:
>>> 
>>>> What about the auto-complete not working in the Ant-Based project?
>>>> How do you tell an Ant-based project which optional modules to include?
>>>> 
>>>> Scott
>>>> 
>>>> 
>>>>> On Jan 7, 2019, at 12:59 PM, Geertjan Wielenga
>>>> <[email protected]> wrote:
>>>>> 
>>>>>> 
>>>>>> I can make the changes to my Gradle build script to have these options
>>>>>> set, but NetBeans remains ignorant of the added modules
>>>>>> 
>>>>> 
>>>>> NetBeans does not support Gradle at this point.
>>>>> 
>>>>> Gj
>>>>> 
>>>>> On Mon, Jan 7, 2019 at 6:32 PM Scott Palmer <[email protected]> wrote:
>>>>> 
>>>>>> I’m copying both the users and dev lists because  1) I tried a similar
>>>>>> question on the users list where I think this belongs and got no
>>>> response,
>>>>>> 2) something is wrong and there should be a discussion with  devs.
>>>>>> 
>>>>>> Netbeans does not seem to have any place to add modules for non-modular
>>>>>> applications.
>>>>>> 
>>>>>> (I assert that most significantly complex applications cannot be
>>>>>> modularized at this point because sooner or later the dependency chain
>>>> will
>>>>>> hit a non-modularized library.)
>>>>>> 
>>>>>> For example the java.logging module is part of the JDK but needs to be
>>>>>> added as a dependency using "--add-module java.logging”.
>>>>>> 
>>>>>> I can make the changes to my Gradle build script to have these options
>>>>>> set, but NetBeans remains ignorant of the added modules and thus
>>>> highlights
>>>>>> the code as if it contains errors.  Everything builds fine though.  I
>>>> can’t
>>>>>> find any place in NetBeans to add this information.  I even tried
>>>> editing
>>>>>> the etc/netbeans.conf file to add a -J--add-modules=ALL-SYSTEM to the
>>>>>> default options, but that didn’t seem to have any effect on whatever
>>>> code
>>>>>> is determining where all those red squiggles go.
>>>>>> 
>>>>>> Thinking maybe this was just a Gradle integration issue, I tried an
>>>>>> Ant-based project (which is not an option for my real work).  There I
>>>>>> noticed different behaviour.  I was able to import java.util.logging.*
>>>>>> without it showing as an error, but curiously the auto-complete would
>>>> not
>>>>>> suggest that there was such a package called ‘logging’ after typing
>>>>>> java.util.  Though once I typed it manually, suggestions for classes in
>>>> the
>>>>>> java.util.logging package were made.
>>>>>> 
>>>>>> It seems there are still a lot of rough edges regarding the module
>>>> system.
>>>>>> I didn’t find anything in JIRA, but I can’t imagine that this isn’t a
>>>> known
>>>>>> issue.  What am I missing?
>>>>>> 
>>>>>> Regards,
>>>>>> 
>>>>>> Scott
>>>>>> 
>>>>>> 
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: [email protected]
>>>>>> For additional commands, e-mail: [email protected]
>>>>>> 
>>>>>> For further information about the NetBeans mailing lists, visit:
>>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [email protected]
>>>> For additional commands, e-mail: [email protected]
>>>> 
>>>> For further information about the NetBeans mailing lists, visit:
>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>> 
>>>> 
>>>> 
>>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>> 
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>> 
>> 
>> 
> 
> 
> -- 
> Software Engineer and Developer
> Java User Group am Bodensee
> NetBeans Dream Team Member and Contributor
> 
> http://www.jug-bodensee.de/
> http://wiki.netbeans.org/wiki/view/NetBeansDreamTeam
> http://www.netbeans.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to