You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Ty Young <yo...@gmail.com> on 2020/03/05 15:12:35 UTC
Preview features not enabling
Preview features in Netbeans 11.2(and above) aren't being activated
despite being enabled in the maven build file:
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.2</version>
<configuration>
<release>15</release> <!-- <release>13</release> -->
<compilerArg>--enable-preview</compilerArg>
<compilerArg>--add-modules
jdk.incubator.foreign</compilerArg>
<compilerArg>--open-modules
jdk.incubator.foreign.unsafe</compilerArg>
</configuration>
Or at least there is no indication that it is and I can't make a record.
Is there a way to tell if preview features are enabled?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Preview features not enabling
Posted by Geertjan Wielenga <ge...@apache.org>.
Anything you find, just file an issue so it can be tracked.
Gj
On Fri, 6 Mar 2020 at 18:49, Ty Young <yo...@gmail.com> wrote:
>
> On 3/6/20 11:27 AM, Ty Young wrote:
>
>
> On 3/5/20 10:29 AM, Ty Young wrote:
>
>
> On 3/5/20 10:13 AM, Geertjan Wielenga wrote:
>
> And, also, make sure to uninstall nb-javac, if it is installed.
>
>
> nb-javac strikes again. Works perfectly fine without it installed.
>
>
> And it looks like the bugs caused by not having nb-javac installed where
> fixed in 11.3, so it's actually usable. Nice.
>
>
> Take that back a little bit. It seems like the "this" keyword is slightly
> borked when used in a record context. You won't get any code completion
> suggestions.
>
>
> ...and the editor indention level detection is really screwy.
>
>
>
>
>
> Gj
>
> On Thu, Mar 5, 2020 at 5:06 PM Geertjan Wielenga <ge...@apache.org>
> wrote:
>
>> on JDK 14, we do not have a nb-javac for JDK 14, which means the editor
>> will use the javac from the JDK it runs on.
>>
>> Gj
>>
>> On Thu, Mar 5, 2020 at 5:05 PM Geertjan Wielenga <ge...@apache.org>
>> wrote:
>>
>>> Yes, but you are now -- after the release of 11.3 -- providing feedback
>>> on the NetBeans support of records.
>>>
>>> Any problem you find at this stage is too late to be fixed in 11.3...
>>> while there have been betas and all kinds of developments going on for
>>> months now, your help would have been very useful.
>>>
>>> Make sure you're running NetBeans itself on JDK
>>>
>>> On Thu, Mar 5, 2020 at 5:01 PM Ty Young <yo...@gmail.com> wrote:
>>>
>>>>
>>>> On 3/5/20 9:52 AM, Geertjan Wielenga wrote:
>>>>
>>>> But there seems to be JDK 15 referenced here, which is not supported by
>>>> NetBeans:
>>>>
>>>> https://github.com/BlueGoliath/Crosspoint/blob/master/pom.xml
>>>>
>>>>
>>>> Records themselves are already in Netbeans so why does the version
>>>> matter? Are they hardcoded to 14 or something? The IDE works just fine
>>>> otherwise...
>>>>
>>>>
>>>>
>>>> In general, though, how do you see this approach working out for you --
>>>> waiting for a release to come out and then trying it out and providing
>>>> feedback, instead of doing it during the development cycle, there have been
>>>> several beta releases for you to provide feedback on.
>>>>
>>>>
>>>> I'm not providing feedback on records, but Project Panama.
>>>>
>>>>
>>>>
>>>> Gj
>>>>
>>>> On Thu, Mar 5, 2020 at 4:50 PM Ty Young <yo...@gmail.com> wrote:
>>>>
>>>>>
>>>>> On 3/5/20 9:42 AM, Geertjan Wielenga wrote:
>>>>>
>>>>> Probably you don't have JDK 14 set in the project.
>>>>>
>>>>>
>>>>> It's set to JDK 15, the same as the boot JDK.
>>>>>
>>>>>
>>>>>
>>>>> Anyway, impossible to help if you don't put a sample project with the
>>>>> problem somewhere for someone to take a look at.
>>>>>
>>>>>
>>>>> Actual project is here:
>>>>>
>>>>>
>>>>> https://github.com/BlueGoliath/Crosspoint
>>>>>
>>>>>
>>>>> requires Project Panama JDK build from the foreign-jextract branch to
>>>>> build.
>>>>>
>>>>>
>>>>>
>>>>> Gj
>>>>>
>>>>> On Thu, Mar 5, 2020 at 4:40 PM Ty Young <yo...@gmail.com> wrote:
>>>>>
>>>>>>
>>>>>> On 3/5/20 9:18 AM, Geertjan Wielenga wrote:
>>>>>>
>>>>>> https://netbeans.apache.org/download/nb113/index.html
>>>>>>
>>>>>> Read the above, thanks.
>>>>>>
>>>>>>
>>>>>> Going by naming <compilerArg> should do the same thing, but it looks
>>>>>> like it doesn't.
>>>>>>
>>>>>>
>>>>>> Oh well. Preview features are enabled now but records aren't working.
>>>>>> The java.lang.Record class is visible so records are apart of the JDK, it's
>>>>>> just I can't make one:
>>>>>>
>>>>>>
>>>>>> public record Foo(String x)
>>>>>> {
>>>>>>
>>>>>> }
>>>>>>
>>>>>>
>>>>>> errors on record.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Gj
>>>>>>
>>>>>> On Thu, Mar 5, 2020 at 4:12 PM Ty Young <yo...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Preview features in Netbeans 11.2(and above) aren't being activated
>>>>>>> despite being enabled in the maven build file:
>>>>>>>
>>>>>>> <groupId>org.apache.maven.plugins</groupId>
>>>>>>> <artifactId>maven-compiler-plugin</artifactId>
>>>>>>> <version>3.6.2</version>
>>>>>>> <configuration>
>>>>>>> <release>15</release> <!--
>>>>>>> <release>13</release> -->
>>>>>>> <compilerArg>--enable-preview</compilerArg>
>>>>>>> <compilerArg>--add-modules
>>>>>>> jdk.incubator.foreign</compilerArg>
>>>>>>> <compilerArg>--open-modules
>>>>>>> jdk.incubator.foreign.unsafe</compilerArg>
>>>>>>> </configuration>
>>>>>>>
>>>>>>> Or at least there is no indication that it is and I can't make a
>>>>>>> record.
>>>>>>> Is there a way to tell if preview features are enabled?
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>>>>>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>>>>>
>>>>>>> For further information about the NetBeans mailing lists, visit:
>>>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>>>>
>>>>>>>
Re: Preview features not enabling
Posted by Ty Young <yo...@gmail.com>.
On 3/6/20 11:27 AM, Ty Young wrote:
>
>
> On 3/5/20 10:29 AM, Ty Young wrote:
>>
>>
>> On 3/5/20 10:13 AM, Geertjan Wielenga wrote:
>>> And, also, make sure to uninstall nb-javac, if it is installed.
>>
>>
>> nb-javac strikes again. Works perfectly fine without it installed.
>>
>>
>> And it looks like the bugs caused by not having nb-javac installed
>> where fixed in 11.3, so it's actually usable. Nice.
>>
>
> Take that back a little bit. It seems like the "this" keyword is
> slightly borked when used in a record context. You won't get any code
> completion suggestions.
>
...and the editor indention level detection is really screwy.
>
>>
>>>
>>> Gj
>>>
>>> On Thu, Mar 5, 2020 at 5:06 PM Geertjan Wielenga
>>> <geertjan@apache.org <ma...@apache.org>> wrote:
>>>
>>> on JDK 14, we do not have a nb-javac for JDK 14, which means the
>>> editor will use the javac from the JDK it runs on.
>>>
>>> Gj
>>>
>>> On Thu, Mar 5, 2020 at 5:05 PM Geertjan Wielenga
>>> <geertjan@apache.org <ma...@apache.org>> wrote:
>>>
>>> Yes, but you are now -- after the release of 11.3 --
>>> providing feedback on the NetBeans support of records.
>>>
>>> Any problem you find at this stage is too late to be fixed
>>> in 11.3... while there have been betas and all kinds of
>>> developments going on for months now, your help would have
>>> been very useful.
>>>
>>> Make sure you're running NetBeans itself on JDK
>>>
>>> On Thu, Mar 5, 2020 at 5:01 PM Ty Young
>>> <youngty1997@gmail.com <ma...@gmail.com>> wrote:
>>>
>>>
>>> On 3/5/20 9:52 AM, Geertjan Wielenga wrote:
>>>> But there seems to be JDK 15 referenced here, which is
>>>> not supported by NetBeans:
>>>>
>>>> https://github.com/BlueGoliath/Crosspoint/blob/master/pom.xml
>>>
>>>
>>> Records themselves are already in Netbeans so why does
>>> the version matter? Are they hardcoded to 14 or
>>> something? The IDE works just fine otherwise...
>>>
>>>
>>>>
>>>> In general, though, how do you see this approach
>>>> working out for you -- waiting for a release to come
>>>> out and then trying it out and providing feedback,
>>>> instead of doing it during the development cycle, there
>>>> have been several beta releases for you to provide
>>>> feedback on.
>>>
>>>
>>> I'm not providing feedback on records, but Project Panama.
>>>
>>>
>>>>
>>>> Gj
>>>>
>>>> On Thu, Mar 5, 2020 at 4:50 PM Ty Young
>>>> <youngty1997@gmail.com <ma...@gmail.com>>
>>>> wrote:
>>>>
>>>>
>>>> On 3/5/20 9:42 AM, Geertjan Wielenga wrote:
>>>>> Probably you don't have JDK 14 set in the project.
>>>>
>>>>
>>>> It's set to JDK 15, the same as the boot JDK.
>>>>
>>>>
>>>>>
>>>>> Anyway, impossible to help if you don't put a
>>>>> sample project with the problem somewhere for
>>>>> someone to take a look at.
>>>>
>>>>
>>>> Actual project is here:
>>>>
>>>>
>>>> https://github.com/BlueGoliath/Crosspoint
>>>>
>>>>
>>>> requires Project Panama JDK build from the
>>>> foreign-jextract branch to build.
>>>>
>>>>
>>>>>
>>>>> Gj
>>>>>
>>>>> On Thu, Mar 5, 2020 at 4:40 PM Ty Young
>>>>> <youngty1997@gmail.com
>>>>> <ma...@gmail.com>> wrote:
>>>>>
>>>>>
>>>>> On 3/5/20 9:18 AM, Geertjan Wielenga wrote:
>>>>>> https://netbeans.apache.org/download/nb113/index.html
>>>>>>
>>>>>> Read the above, thanks.
>>>>>
>>>>>
>>>>> Going by naming <compilerArg> should do the
>>>>> same thing, but it looks like it doesn't.
>>>>>
>>>>>
>>>>> Oh well. Preview features are enabled now but
>>>>> records aren't working. The java.lang.Record
>>>>> class is visible so records are apart of the
>>>>> JDK, it's just I can't make one:
>>>>>
>>>>>
>>>>> public record Foo(String x)
>>>>> {
>>>>>
>>>>> }
>>>>>
>>>>>
>>>>> errors on record.
>>>>>
>>>>>
>>>>>>
>>>>>> Gj
>>>>>>
>>>>>> On Thu, Mar 5, 2020 at 4:12 PM Ty Young
>>>>>> <youngty1997@gmail.com
>>>>>> <ma...@gmail.com>> wrote:
>>>>>>
>>>>>> Preview features in Netbeans 11.2(and
>>>>>> above) aren't being activated
>>>>>> despite being enabled in the maven build
>>>>>> file:
>>>>>>
>>>>>> <groupId>org.apache.maven.plugins</groupId>
>>>>>> <artifactId>maven-compiler-plugin</artifactId>
>>>>>> <version>3.6.2</version>
>>>>>> <configuration>
>>>>>> <release>15</release> <!--
>>>>>> <release>13</release> -->
>>>>>> <compilerArg>--enable-preview</compilerArg>
>>>>>> <compilerArg>--add-modules
>>>>>> jdk.incubator.foreign</compilerArg>
>>>>>> <compilerArg>--open-modules
>>>>>> jdk.incubator.foreign.unsafe</compilerArg>
>>>>>> </configuration>
>>>>>>
>>>>>> Or at least there is no indication that
>>>>>> it is and I can't make a record.
>>>>>> Is there a way to tell if preview
>>>>>> features are enabled?
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail:
>>>>>> users-unsubscribe@netbeans.apache.org
>>>>>> <ma...@netbeans.apache.org>
>>>>>> For additional commands, e-mail:
>>>>>> users-help@netbeans.apache.org
>>>>>> <ma...@netbeans.apache.org>
>>>>>>
>>>>>> For further information about the
>>>>>> NetBeans mailing lists, visit:
>>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>>>
Re: Preview features not enabling
Posted by Ty Young <yo...@gmail.com>.
On 3/5/20 10:29 AM, Ty Young wrote:
>
>
> On 3/5/20 10:13 AM, Geertjan Wielenga wrote:
>> And, also, make sure to uninstall nb-javac, if it is installed.
>
>
> nb-javac strikes again. Works perfectly fine without it installed.
>
>
> And it looks like the bugs caused by not having nb-javac installed
> where fixed in 11.3, so it's actually usable. Nice.
>
Take that back a little bit. It seems like the "this" keyword is
slightly borked when used in a record context. You won't get any code
completion suggestions.
>
>>
>> Gj
>>
>> On Thu, Mar 5, 2020 at 5:06 PM Geertjan Wielenga <geertjan@apache.org
>> <ma...@apache.org>> wrote:
>>
>> on JDK 14, we do not have a nb-javac for JDK 14, which means the
>> editor will use the javac from the JDK it runs on.
>>
>> Gj
>>
>> On Thu, Mar 5, 2020 at 5:05 PM Geertjan Wielenga
>> <geertjan@apache.org <ma...@apache.org>> wrote:
>>
>> Yes, but you are now -- after the release of 11.3 --
>> providing feedback on the NetBeans support of records.
>>
>> Any problem you find at this stage is too late to be fixed in
>> 11.3... while there have been betas and all kinds of
>> developments going on for months now, your help would have
>> been very useful.
>>
>> Make sure you're running NetBeans itself on JDK
>>
>> On Thu, Mar 5, 2020 at 5:01 PM Ty Young
>> <youngty1997@gmail.com <ma...@gmail.com>> wrote:
>>
>>
>> On 3/5/20 9:52 AM, Geertjan Wielenga wrote:
>>> But there seems to be JDK 15 referenced here, which is
>>> not supported by NetBeans:
>>>
>>> https://github.com/BlueGoliath/Crosspoint/blob/master/pom.xml
>>
>>
>> Records themselves are already in Netbeans so why does
>> the version matter? Are they hardcoded to 14 or
>> something? The IDE works just fine otherwise...
>>
>>
>>>
>>> In general, though, how do you see this approach working
>>> out for you -- waiting for a release to come out and
>>> then trying it out and providing feedback, instead of
>>> doing it during the development cycle, there have been
>>> several beta releases for you to provide feedback on.
>>
>>
>> I'm not providing feedback on records, but Project Panama.
>>
>>
>>>
>>> Gj
>>>
>>> On Thu, Mar 5, 2020 at 4:50 PM Ty Young
>>> <youngty1997@gmail.com <ma...@gmail.com>>
>>> wrote:
>>>
>>>
>>> On 3/5/20 9:42 AM, Geertjan Wielenga wrote:
>>>> Probably you don't have JDK 14 set in the project.
>>>
>>>
>>> It's set to JDK 15, the same as the boot JDK.
>>>
>>>
>>>>
>>>> Anyway, impossible to help if you don't put a
>>>> sample project with the problem somewhere for
>>>> someone to take a look at.
>>>
>>>
>>> Actual project is here:
>>>
>>>
>>> https://github.com/BlueGoliath/Crosspoint
>>>
>>>
>>> requires Project Panama JDK build from the
>>> foreign-jextract branch to build.
>>>
>>>
>>>>
>>>> Gj
>>>>
>>>> On Thu, Mar 5, 2020 at 4:40 PM Ty Young
>>>> <youngty1997@gmail.com
>>>> <ma...@gmail.com>> wrote:
>>>>
>>>>
>>>> On 3/5/20 9:18 AM, Geertjan Wielenga wrote:
>>>>> https://netbeans.apache.org/download/nb113/index.html
>>>>>
>>>>> Read the above, thanks.
>>>>
>>>>
>>>> Going by naming <compilerArg> should do the
>>>> same thing, but it looks like it doesn't.
>>>>
>>>>
>>>> Oh well. Preview features are enabled now but
>>>> records aren't working. The java.lang.Record
>>>> class is visible so records are apart of the
>>>> JDK, it's just I can't make one:
>>>>
>>>>
>>>> public record Foo(String x)
>>>> {
>>>>
>>>> }
>>>>
>>>>
>>>> errors on record.
>>>>
>>>>
>>>>>
>>>>> Gj
>>>>>
>>>>> On Thu, Mar 5, 2020 at 4:12 PM Ty Young
>>>>> <youngty1997@gmail.com
>>>>> <ma...@gmail.com>> wrote:
>>>>>
>>>>> Preview features in Netbeans 11.2(and
>>>>> above) aren't being activated
>>>>> despite being enabled in the maven build file:
>>>>>
>>>>> <groupId>org.apache.maven.plugins</groupId>
>>>>> <artifactId>maven-compiler-plugin</artifactId>
>>>>> <version>3.6.2</version>
>>>>> <configuration>
>>>>> <release>15</release> <!--
>>>>> <release>13</release> -->
>>>>> <compilerArg>--enable-preview</compilerArg>
>>>>> <compilerArg>--add-modules
>>>>> jdk.incubator.foreign</compilerArg>
>>>>> <compilerArg>--open-modules
>>>>> jdk.incubator.foreign.unsafe</compilerArg>
>>>>> </configuration>
>>>>>
>>>>> Or at least there is no indication that it
>>>>> is and I can't make a record.
>>>>> Is there a way to tell if preview features
>>>>> are enabled?
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail:
>>>>> users-unsubscribe@netbeans.apache.org
>>>>> <ma...@netbeans.apache.org>
>>>>> For additional commands, e-mail:
>>>>> users-help@netbeans.apache.org
>>>>> <ma...@netbeans.apache.org>
>>>>>
>>>>> For further information about the NetBeans
>>>>> mailing lists, visit:
>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>>
Re: Preview features not enabling
Posted by Ty Young <yo...@gmail.com>.
On 3/5/20 10:41 AM, Geertjan Wielenga wrote:
> If you want to make it less wordy, please do so. :-)
"In order to use JDK 14 features, such as records, you will need to run
Netbeans 11.3 on JDK 14 and have the nb-javac plugin uninstalled."
Where "nb-javac plugin uninstalled" should probably link to a wiki page
on how to uninstall it, if one exists.
>
> And though newer JDKs than 14 may work with NetBeans right now, we
> haven't tried that out or targeted those releases, so best to leave it
> so that we don't imply that we have.
Fair enough.
>
> Gj
>
> On Thu, Mar 5, 2020 at 5:39 PM Ty Young <youngty1997@gmail.com
> <ma...@gmail.com>> wrote:
>
>
> On 3/5/20 10:31 AM, Geertjan Wielenga wrote:
>> Awesome, this is great news.
>>
>> And have added this note in the below, if it can be clearer
>> please say so:
>>
>> "To use JDK 14 features, such as the new 'record' keyword, in the
>> Java Editor, you’ll need to run Apache NetBeans 11.3 itself on
>> JDK 14, so that Apache NetBeans will use the Java compiler from
>> JDK 14 for code recognition, syntax coloring, etc. Also, make
>> sure to uninstall nb-javac, if it is installed, and not to
>> install and use it, when prompted, so that the Java compiler from
>> JDK 14 will be used, rather than nb-javac, which does not support
>> JDK 14."
>
>
> Personally I think it should be changed to "JDK 14 or newer".
> Netbeans doesn't seem to be overly dependant on the exact JDK
> version(i've used in-development builds for years now) and records
> are going to exists in the future. Otherwise it does the job even
> if a bit wordy.
>
>
>>
>> https://netbeans.apache.org/download/nb113/index.html
>>
>> Gj
>>
>> On Thu, Mar 5, 2020 at 5:29 PM Ty Young <youngty1997@gmail.com
>> <ma...@gmail.com>> wrote:
>>
>>
>> On 3/5/20 10:13 AM, Geertjan Wielenga wrote:
>>> And, also, make sure to uninstall nb-javac, if it is installed.
>>
>>
>> nb-javac strikes again. Works perfectly fine without it
>> installed.
>>
>>
>> And it looks like the bugs caused by not having nb-javac
>> installed where fixed in 11.3, so it's actually usable. Nice.
>>
>>
>>>
>>> Gj
>>>
>>> On Thu, Mar 5, 2020 at 5:06 PM Geertjan Wielenga
>>> <geertjan@apache.org <ma...@apache.org>> wrote:
>>>
>>> on JDK 14, we do not have a nb-javac for JDK 14, which
>>> means the editor will use the javac from the JDK it runs
>>> on.
>>>
>>> Gj
>>>
>>> On Thu, Mar 5, 2020 at 5:05 PM Geertjan Wielenga
>>> <geertjan@apache.org <ma...@apache.org>> wrote:
>>>
>>> Yes, but you are now -- after the release of 11.3 --
>>> providing feedback on the NetBeans support of records.
>>>
>>> Any problem you find at this stage is too late to be
>>> fixed in 11.3... while there have been betas and all
>>> kinds of developments going on for months now, your
>>> help would have been very useful.
>>>
>>> Make sure you're running NetBeans itself on JDK
>>>
>>> On Thu, Mar 5, 2020 at 5:01 PM Ty Young
>>> <youngty1997@gmail.com
>>> <ma...@gmail.com>> wrote:
>>>
>>>
>>> On 3/5/20 9:52 AM, Geertjan Wielenga wrote:
>>>> But there seems to be JDK 15 referenced here,
>>>> which is not supported by NetBeans:
>>>>
>>>> https://github.com/BlueGoliath/Crosspoint/blob/master/pom.xml
>>>
>>>
>>> Records themselves are already in Netbeans so
>>> why does the version matter? Are they hardcoded
>>> to 14 or something? The IDE works just fine
>>> otherwise...
>>>
>>>
>>>>
>>>> In general, though, how do you see this
>>>> approach working out for you -- waiting for a
>>>> release to come out and then trying it out and
>>>> providing feedback, instead of doing it during
>>>> the development cycle, there have been several
>>>> beta releases for you to provide feedback on.
>>>
>>>
>>> I'm not providing feedback on records, but
>>> Project Panama.
>>>
>>>
>>>>
>>>> Gj
>>>>
>>>> On Thu, Mar 5, 2020 at 4:50 PM Ty Young
>>>> <youngty1997@gmail.com
>>>> <ma...@gmail.com>> wrote:
>>>>
>>>>
>>>> On 3/5/20 9:42 AM, Geertjan Wielenga wrote:
>>>>> Probably you don't have JDK 14 set in the
>>>>> project.
>>>>
>>>>
>>>> It's set to JDK 15, the same as the boot JDK.
>>>>
>>>>
>>>>>
>>>>> Anyway, impossible to help if you don't
>>>>> put a sample project with the problem
>>>>> somewhere for someone to take a look at.
>>>>
>>>>
>>>> Actual project is here:
>>>>
>>>>
>>>> https://github.com/BlueGoliath/Crosspoint
>>>>
>>>>
>>>> requires Project Panama JDK build from the
>>>> foreign-jextract branch to build.
>>>>
>>>>
>>>>>
>>>>> Gj
>>>>>
>>>>> On Thu, Mar 5, 2020 at 4:40 PM Ty Young
>>>>> <youngty1997@gmail.com
>>>>> <ma...@gmail.com>> wrote:
>>>>>
>>>>>
>>>>> On 3/5/20 9:18 AM, Geertjan Wielenga
>>>>> wrote:
>>>>>> https://netbeans.apache.org/download/nb113/index.html
>>>>>>
>>>>>> Read the above, thanks.
>>>>>
>>>>>
>>>>> Going by naming <compilerArg> should
>>>>> do the same thing, but it looks like
>>>>> it doesn't.
>>>>>
>>>>>
>>>>> Oh well. Preview features are enabled
>>>>> now but records aren't working. The
>>>>> java.lang.Record class is visible so
>>>>> records are apart of the JDK, it's
>>>>> just I can't make one:
>>>>>
>>>>>
>>>>> public record Foo(String x)
>>>>> {
>>>>>
>>>>> }
>>>>>
>>>>>
>>>>> errors on record.
>>>>>
>>>>>
>>>>>>
>>>>>> Gj
>>>>>>
>>>>>> On Thu, Mar 5, 2020 at 4:12 PM Ty
>>>>>> Young <youngty1997@gmail.com
>>>>>> <ma...@gmail.com>> wrote:
>>>>>>
>>>>>> Preview features in Netbeans
>>>>>> 11.2(and above) aren't being
>>>>>> activated
>>>>>> despite being enabled in the
>>>>>> maven build file:
>>>>>>
>>>>>> <groupId>org.apache.maven.plugins</groupId>
>>>>>> <artifactId>maven-compiler-plugin</artifactId>
>>>>>>
>>>>>> <version>3.6.2</version>
>>>>>> <configuration>
>>>>>>
>>>>>> <release>15</release> <!--
>>>>>> <release>13</release> -->
>>>>>> <compilerArg>--enable-preview</compilerArg>
>>>>>>
>>>>>> <compilerArg>--add-modules
>>>>>> jdk.incubator.foreign</compilerArg>
>>>>>>
>>>>>> <compilerArg>--open-modules
>>>>>> jdk.incubator.foreign.unsafe</compilerArg>
>>>>>> </configuration>
>>>>>>
>>>>>> Or at least there is no
>>>>>> indication that it is and I can't
>>>>>> make a record.
>>>>>> Is there a way to tell if preview
>>>>>> features are enabled?
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail:
>>>>>> users-unsubscribe@netbeans.apache.org
>>>>>> <ma...@netbeans.apache.org>
>>>>>> For additional commands, e-mail:
>>>>>> users-help@netbeans.apache.org
>>>>>> <ma...@netbeans.apache.org>
>>>>>>
>>>>>> For further information about the
>>>>>> NetBeans mailing lists, visit:
>>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>>>
Re: Preview features not enabling
Posted by Geertjan Wielenga <ge...@apache.org>.
If you want to make it less wordy, please do so. :-)
And though newer JDKs than 14 may work with NetBeans right now, we haven't
tried that out or targeted those releases, so best to leave it so that we
don't imply that we have.
Gj
On Thu, Mar 5, 2020 at 5:39 PM Ty Young <yo...@gmail.com> wrote:
>
> On 3/5/20 10:31 AM, Geertjan Wielenga wrote:
>
> Awesome, this is great news.
>
> And have added this note in the below, if it can be clearer please say so:
>
> "To use JDK 14 features, such as the new 'record' keyword, in the Java
> Editor, you’ll need to run Apache NetBeans 11.3 itself on JDK 14, so that
> Apache NetBeans will use the Java compiler from JDK 14 for code
> recognition, syntax coloring, etc. Also, make sure to uninstall nb-javac,
> if it is installed, and not to install and use it, when prompted, so that
> the Java compiler from JDK 14 will be used, rather than nb-javac, which
> does not support JDK 14."
>
>
> Personally I think it should be changed to "JDK 14 or newer". Netbeans
> doesn't seem to be overly dependant on the exact JDK version(i've used
> in-development builds for years now) and records are going to exists in the
> future. Otherwise it does the job even if a bit wordy.
>
>
>
> https://netbeans.apache.org/download/nb113/index.html
>
> Gj
>
> On Thu, Mar 5, 2020 at 5:29 PM Ty Young <yo...@gmail.com> wrote:
>
>>
>> On 3/5/20 10:13 AM, Geertjan Wielenga wrote:
>>
>> And, also, make sure to uninstall nb-javac, if it is installed.
>>
>>
>> nb-javac strikes again. Works perfectly fine without it installed.
>>
>>
>> And it looks like the bugs caused by not having nb-javac installed where
>> fixed in 11.3, so it's actually usable. Nice.
>>
>>
>>
>> Gj
>>
>> On Thu, Mar 5, 2020 at 5:06 PM Geertjan Wielenga <ge...@apache.org>
>> wrote:
>>
>>> on JDK 14, we do not have a nb-javac for JDK 14, which means the editor
>>> will use the javac from the JDK it runs on.
>>>
>>> Gj
>>>
>>> On Thu, Mar 5, 2020 at 5:05 PM Geertjan Wielenga <ge...@apache.org>
>>> wrote:
>>>
>>>> Yes, but you are now -- after the release of 11.3 -- providing feedback
>>>> on the NetBeans support of records.
>>>>
>>>> Any problem you find at this stage is too late to be fixed in 11.3...
>>>> while there have been betas and all kinds of developments going on for
>>>> months now, your help would have been very useful.
>>>>
>>>> Make sure you're running NetBeans itself on JDK
>>>>
>>>> On Thu, Mar 5, 2020 at 5:01 PM Ty Young <yo...@gmail.com> wrote:
>>>>
>>>>>
>>>>> On 3/5/20 9:52 AM, Geertjan Wielenga wrote:
>>>>>
>>>>> But there seems to be JDK 15 referenced here, which is not supported
>>>>> by NetBeans:
>>>>>
>>>>> https://github.com/BlueGoliath/Crosspoint/blob/master/pom.xml
>>>>>
>>>>>
>>>>> Records themselves are already in Netbeans so why does the version
>>>>> matter? Are they hardcoded to 14 or something? The IDE works just fine
>>>>> otherwise...
>>>>>
>>>>>
>>>>>
>>>>> In general, though, how do you see this approach working out for you
>>>>> -- waiting for a release to come out and then trying it out and providing
>>>>> feedback, instead of doing it during the development cycle, there have been
>>>>> several beta releases for you to provide feedback on.
>>>>>
>>>>>
>>>>> I'm not providing feedback on records, but Project Panama.
>>>>>
>>>>>
>>>>>
>>>>> Gj
>>>>>
>>>>> On Thu, Mar 5, 2020 at 4:50 PM Ty Young <yo...@gmail.com> wrote:
>>>>>
>>>>>>
>>>>>> On 3/5/20 9:42 AM, Geertjan Wielenga wrote:
>>>>>>
>>>>>> Probably you don't have JDK 14 set in the project.
>>>>>>
>>>>>>
>>>>>> It's set to JDK 15, the same as the boot JDK.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Anyway, impossible to help if you don't put a sample project with the
>>>>>> problem somewhere for someone to take a look at.
>>>>>>
>>>>>>
>>>>>> Actual project is here:
>>>>>>
>>>>>>
>>>>>> https://github.com/BlueGoliath/Crosspoint
>>>>>>
>>>>>>
>>>>>> requires Project Panama JDK build from the foreign-jextract branch to
>>>>>> build.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Gj
>>>>>>
>>>>>> On Thu, Mar 5, 2020 at 4:40 PM Ty Young <yo...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>>
>>>>>>> On 3/5/20 9:18 AM, Geertjan Wielenga wrote:
>>>>>>>
>>>>>>> https://netbeans.apache.org/download/nb113/index.html
>>>>>>>
>>>>>>> Read the above, thanks.
>>>>>>>
>>>>>>>
>>>>>>> Going by naming <compilerArg> should do the same thing, but it looks
>>>>>>> like it doesn't.
>>>>>>>
>>>>>>>
>>>>>>> Oh well. Preview features are enabled now but records aren't
>>>>>>> working. The java.lang.Record class is visible so records are apart of the
>>>>>>> JDK, it's just I can't make one:
>>>>>>>
>>>>>>>
>>>>>>> public record Foo(String x)
>>>>>>> {
>>>>>>>
>>>>>>> }
>>>>>>>
>>>>>>>
>>>>>>> errors on record.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Gj
>>>>>>>
>>>>>>> On Thu, Mar 5, 2020 at 4:12 PM Ty Young <yo...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Preview features in Netbeans 11.2(and above) aren't being activated
>>>>>>>> despite being enabled in the maven build file:
>>>>>>>>
>>>>>>>> <groupId>org.apache.maven.plugins</groupId>
>>>>>>>> <artifactId>maven-compiler-plugin</artifactId>
>>>>>>>> <version>3.6.2</version>
>>>>>>>> <configuration>
>>>>>>>> <release>15</release> <!--
>>>>>>>> <release>13</release> -->
>>>>>>>> <compilerArg>--enable-preview</compilerArg>
>>>>>>>> <compilerArg>--add-modules
>>>>>>>> jdk.incubator.foreign</compilerArg>
>>>>>>>> <compilerArg>--open-modules
>>>>>>>> jdk.incubator.foreign.unsafe</compilerArg>
>>>>>>>> </configuration>
>>>>>>>>
>>>>>>>> Or at least there is no indication that it is and I can't make a
>>>>>>>> record.
>>>>>>>> Is there a way to tell if preview features are enabled?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>>>>>>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>>>>>>
>>>>>>>> For further information about the NetBeans mailing lists, visit:
>>>>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>>>>>
>>>>>>>>
Re: Preview features not enabling
Posted by Ty Young <yo...@gmail.com>.
On 3/5/20 10:31 AM, Geertjan Wielenga wrote:
> Awesome, this is great news.
>
> And have added this note in the below, if it can be clearer please say so:
>
> "To use JDK 14 features, such as the new 'record' keyword, in the Java
> Editor, you’ll need to run Apache NetBeans 11.3 itself on JDK 14, so
> that Apache NetBeans will use the Java compiler from JDK 14 for code
> recognition, syntax coloring, etc. Also, make sure to uninstall
> nb-javac, if it is installed, and not to install and use it, when
> prompted, so that the Java compiler from JDK 14 will be used, rather
> than nb-javac, which does not support JDK 14."
Personally I think it should be changed to "JDK 14 or newer". Netbeans
doesn't seem to be overly dependant on the exact JDK version(i've used
in-development builds for years now) and records are going to exists in
the future. Otherwise it does the job even if a bit wordy.
>
> https://netbeans.apache.org/download/nb113/index.html
>
> Gj
>
> On Thu, Mar 5, 2020 at 5:29 PM Ty Young <youngty1997@gmail.com
> <ma...@gmail.com>> wrote:
>
>
> On 3/5/20 10:13 AM, Geertjan Wielenga wrote:
>> And, also, make sure to uninstall nb-javac, if it is installed.
>
>
> nb-javac strikes again. Works perfectly fine without it installed.
>
>
> And it looks like the bugs caused by not having nb-javac installed
> where fixed in 11.3, so it's actually usable. Nice.
>
>
>>
>> Gj
>>
>> On Thu, Mar 5, 2020 at 5:06 PM Geertjan Wielenga
>> <geertjan@apache.org <ma...@apache.org>> wrote:
>>
>> on JDK 14, we do not have a nb-javac for JDK 14, which means
>> the editor will use the javac from the JDK it runs on.
>>
>> Gj
>>
>> On Thu, Mar 5, 2020 at 5:05 PM Geertjan Wielenga
>> <geertjan@apache.org <ma...@apache.org>> wrote:
>>
>> Yes, but you are now -- after the release of 11.3 --
>> providing feedback on the NetBeans support of records.
>>
>> Any problem you find at this stage is too late to be
>> fixed in 11.3... while there have been betas and all
>> kinds of developments going on for months now, your help
>> would have been very useful.
>>
>> Make sure you're running NetBeans itself on JDK
>>
>> On Thu, Mar 5, 2020 at 5:01 PM Ty Young
>> <youngty1997@gmail.com <ma...@gmail.com>> wrote:
>>
>>
>> On 3/5/20 9:52 AM, Geertjan Wielenga wrote:
>>> But there seems to be JDK 15 referenced here, which
>>> is not supported by NetBeans:
>>>
>>> https://github.com/BlueGoliath/Crosspoint/blob/master/pom.xml
>>
>>
>> Records themselves are already in Netbeans so why
>> does the version matter? Are they hardcoded to 14 or
>> something? The IDE works just fine otherwise...
>>
>>
>>>
>>> In general, though, how do you see this approach
>>> working out for you -- waiting for a release to come
>>> out and then trying it out and providing feedback,
>>> instead of doing it during the development cycle,
>>> there have been several beta releases for you to
>>> provide feedback on.
>>
>>
>> I'm not providing feedback on records, but Project
>> Panama.
>>
>>
>>>
>>> Gj
>>>
>>> On Thu, Mar 5, 2020 at 4:50 PM Ty Young
>>> <youngty1997@gmail.com
>>> <ma...@gmail.com>> wrote:
>>>
>>>
>>> On 3/5/20 9:42 AM, Geertjan Wielenga wrote:
>>>> Probably you don't have JDK 14 set in the project.
>>>
>>>
>>> It's set to JDK 15, the same as the boot JDK.
>>>
>>>
>>>>
>>>> Anyway, impossible to help if you don't put a
>>>> sample project with the problem somewhere for
>>>> someone to take a look at.
>>>
>>>
>>> Actual project is here:
>>>
>>>
>>> https://github.com/BlueGoliath/Crosspoint
>>>
>>>
>>> requires Project Panama JDK build from the
>>> foreign-jextract branch to build.
>>>
>>>
>>>>
>>>> Gj
>>>>
>>>> On Thu, Mar 5, 2020 at 4:40 PM Ty Young
>>>> <youngty1997@gmail.com
>>>> <ma...@gmail.com>> wrote:
>>>>
>>>>
>>>> On 3/5/20 9:18 AM, Geertjan Wielenga wrote:
>>>>> https://netbeans.apache.org/download/nb113/index.html
>>>>>
>>>>> Read the above, thanks.
>>>>
>>>>
>>>> Going by naming <compilerArg> should do the
>>>> same thing, but it looks like it doesn't.
>>>>
>>>>
>>>> Oh well. Preview features are enabled now
>>>> but records aren't working. The
>>>> java.lang.Record class is visible so
>>>> records are apart of the JDK, it's just I
>>>> can't make one:
>>>>
>>>>
>>>> public record Foo(String x)
>>>> {
>>>>
>>>> }
>>>>
>>>>
>>>> errors on record.
>>>>
>>>>
>>>>>
>>>>> Gj
>>>>>
>>>>> On Thu, Mar 5, 2020 at 4:12 PM Ty Young
>>>>> <youngty1997@gmail.com
>>>>> <ma...@gmail.com>> wrote:
>>>>>
>>>>> Preview features in Netbeans 11.2(and
>>>>> above) aren't being activated
>>>>> despite being enabled in the maven
>>>>> build file:
>>>>>
>>>>> <groupId>org.apache.maven.plugins</groupId>
>>>>> <artifactId>maven-compiler-plugin</artifactId>
>>>>> <version>3.6.2</version>
>>>>> <configuration>
>>>>> <release>15</release> <!--
>>>>> <release>13</release> -->
>>>>> <compilerArg>--enable-preview</compilerArg>
>>>>> <compilerArg>--add-modules
>>>>> jdk.incubator.foreign</compilerArg>
>>>>> <compilerArg>--open-modules
>>>>> jdk.incubator.foreign.unsafe</compilerArg>
>>>>> </configuration>
>>>>>
>>>>> Or at least there is no indication
>>>>> that it is and I can't make a record.
>>>>> Is there a way to tell if preview
>>>>> features are enabled?
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail:
>>>>> users-unsubscribe@netbeans.apache.org
>>>>> <ma...@netbeans.apache.org>
>>>>> For additional commands, e-mail:
>>>>> users-help@netbeans.apache.org
>>>>> <ma...@netbeans.apache.org>
>>>>>
>>>>> For further information about the
>>>>> NetBeans mailing lists, visit:
>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>>
Re: Preview features not enabling
Posted by Geertjan Wielenga <ge...@apache.org>.
Awesome, this is great news.
And have added this note in the below, if it can be clearer please say so:
"To use JDK 14 features, such as the new 'record' keyword, in the Java
Editor, you’ll need to run Apache NetBeans 11.3 itself on JDK 14, so that
Apache NetBeans will use the Java compiler from JDK 14 for code
recognition, syntax coloring, etc. Also, make sure to uninstall nb-javac,
if it is installed, and not to install and use it, when prompted, so that
the Java compiler from JDK 14 will be used, rather than nb-javac, which
does not support JDK 14."
https://netbeans.apache.org/download/nb113/index.html
Gj
On Thu, Mar 5, 2020 at 5:29 PM Ty Young <yo...@gmail.com> wrote:
>
> On 3/5/20 10:13 AM, Geertjan Wielenga wrote:
>
> And, also, make sure to uninstall nb-javac, if it is installed.
>
>
> nb-javac strikes again. Works perfectly fine without it installed.
>
>
> And it looks like the bugs caused by not having nb-javac installed where
> fixed in 11.3, so it's actually usable. Nice.
>
>
>
> Gj
>
> On Thu, Mar 5, 2020 at 5:06 PM Geertjan Wielenga <ge...@apache.org>
> wrote:
>
>> on JDK 14, we do not have a nb-javac for JDK 14, which means the editor
>> will use the javac from the JDK it runs on.
>>
>> Gj
>>
>> On Thu, Mar 5, 2020 at 5:05 PM Geertjan Wielenga <ge...@apache.org>
>> wrote:
>>
>>> Yes, but you are now -- after the release of 11.3 -- providing feedback
>>> on the NetBeans support of records.
>>>
>>> Any problem you find at this stage is too late to be fixed in 11.3...
>>> while there have been betas and all kinds of developments going on for
>>> months now, your help would have been very useful.
>>>
>>> Make sure you're running NetBeans itself on JDK
>>>
>>> On Thu, Mar 5, 2020 at 5:01 PM Ty Young <yo...@gmail.com> wrote:
>>>
>>>>
>>>> On 3/5/20 9:52 AM, Geertjan Wielenga wrote:
>>>>
>>>> But there seems to be JDK 15 referenced here, which is not supported by
>>>> NetBeans:
>>>>
>>>> https://github.com/BlueGoliath/Crosspoint/blob/master/pom.xml
>>>>
>>>>
>>>> Records themselves are already in Netbeans so why does the version
>>>> matter? Are they hardcoded to 14 or something? The IDE works just fine
>>>> otherwise...
>>>>
>>>>
>>>>
>>>> In general, though, how do you see this approach working out for you --
>>>> waiting for a release to come out and then trying it out and providing
>>>> feedback, instead of doing it during the development cycle, there have been
>>>> several beta releases for you to provide feedback on.
>>>>
>>>>
>>>> I'm not providing feedback on records, but Project Panama.
>>>>
>>>>
>>>>
>>>> Gj
>>>>
>>>> On Thu, Mar 5, 2020 at 4:50 PM Ty Young <yo...@gmail.com> wrote:
>>>>
>>>>>
>>>>> On 3/5/20 9:42 AM, Geertjan Wielenga wrote:
>>>>>
>>>>> Probably you don't have JDK 14 set in the project.
>>>>>
>>>>>
>>>>> It's set to JDK 15, the same as the boot JDK.
>>>>>
>>>>>
>>>>>
>>>>> Anyway, impossible to help if you don't put a sample project with the
>>>>> problem somewhere for someone to take a look at.
>>>>>
>>>>>
>>>>> Actual project is here:
>>>>>
>>>>>
>>>>> https://github.com/BlueGoliath/Crosspoint
>>>>>
>>>>>
>>>>> requires Project Panama JDK build from the foreign-jextract branch to
>>>>> build.
>>>>>
>>>>>
>>>>>
>>>>> Gj
>>>>>
>>>>> On Thu, Mar 5, 2020 at 4:40 PM Ty Young <yo...@gmail.com> wrote:
>>>>>
>>>>>>
>>>>>> On 3/5/20 9:18 AM, Geertjan Wielenga wrote:
>>>>>>
>>>>>> https://netbeans.apache.org/download/nb113/index.html
>>>>>>
>>>>>> Read the above, thanks.
>>>>>>
>>>>>>
>>>>>> Going by naming <compilerArg> should do the same thing, but it looks
>>>>>> like it doesn't.
>>>>>>
>>>>>>
>>>>>> Oh well. Preview features are enabled now but records aren't working.
>>>>>> The java.lang.Record class is visible so records are apart of the JDK, it's
>>>>>> just I can't make one:
>>>>>>
>>>>>>
>>>>>> public record Foo(String x)
>>>>>> {
>>>>>>
>>>>>> }
>>>>>>
>>>>>>
>>>>>> errors on record.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Gj
>>>>>>
>>>>>> On Thu, Mar 5, 2020 at 4:12 PM Ty Young <yo...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Preview features in Netbeans 11.2(and above) aren't being activated
>>>>>>> despite being enabled in the maven build file:
>>>>>>>
>>>>>>> <groupId>org.apache.maven.plugins</groupId>
>>>>>>> <artifactId>maven-compiler-plugin</artifactId>
>>>>>>> <version>3.6.2</version>
>>>>>>> <configuration>
>>>>>>> <release>15</release> <!--
>>>>>>> <release>13</release> -->
>>>>>>> <compilerArg>--enable-preview</compilerArg>
>>>>>>> <compilerArg>--add-modules
>>>>>>> jdk.incubator.foreign</compilerArg>
>>>>>>> <compilerArg>--open-modules
>>>>>>> jdk.incubator.foreign.unsafe</compilerArg>
>>>>>>> </configuration>
>>>>>>>
>>>>>>> Or at least there is no indication that it is and I can't make a
>>>>>>> record.
>>>>>>> Is there a way to tell if preview features are enabled?
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>>>>>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>>>>>
>>>>>>> For further information about the NetBeans mailing lists, visit:
>>>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>>>>
>>>>>>>
Re: Preview features not enabling
Posted by Ty Young <yo...@gmail.com>.
On 3/5/20 10:13 AM, Geertjan Wielenga wrote:
> And, also, make sure to uninstall nb-javac, if it is installed.
nb-javac strikes again. Works perfectly fine without it installed.
And it looks like the bugs caused by not having nb-javac installed where
fixed in 11.3, so it's actually usable. Nice.
>
> Gj
>
> On Thu, Mar 5, 2020 at 5:06 PM Geertjan Wielenga <geertjan@apache.org
> <ma...@apache.org>> wrote:
>
> on JDK 14, we do not have a nb-javac for JDK 14, which means the
> editor will use the javac from the JDK it runs on.
>
> Gj
>
> On Thu, Mar 5, 2020 at 5:05 PM Geertjan Wielenga
> <geertjan@apache.org <ma...@apache.org>> wrote:
>
> Yes, but you are now -- after the release of 11.3 -- providing
> feedback on the NetBeans support of records.
>
> Any problem you find at this stage is too late to be fixed in
> 11.3... while there have been betas and all kinds of
> developments going on for months now, your help would have
> been very useful.
>
> Make sure you're running NetBeans itself on JDK
>
> On Thu, Mar 5, 2020 at 5:01 PM Ty Young <youngty1997@gmail.com
> <ma...@gmail.com>> wrote:
>
>
> On 3/5/20 9:52 AM, Geertjan Wielenga wrote:
>> But there seems to be JDK 15 referenced here, which is
>> not supported by NetBeans:
>>
>> https://github.com/BlueGoliath/Crosspoint/blob/master/pom.xml
>
>
> Records themselves are already in Netbeans so why does the
> version matter? Are they hardcoded to 14 or something? The
> IDE works just fine otherwise...
>
>
>>
>> In general, though, how do you see this approach working
>> out for you -- waiting for a release to come out and then
>> trying it out and providing feedback, instead of doing it
>> during the development cycle, there have been several
>> beta releases for you to provide feedback on.
>
>
> I'm not providing feedback on records, but Project Panama.
>
>
>>
>> Gj
>>
>> On Thu, Mar 5, 2020 at 4:50 PM Ty Young
>> <youngty1997@gmail.com <ma...@gmail.com>> wrote:
>>
>>
>> On 3/5/20 9:42 AM, Geertjan Wielenga wrote:
>>> Probably you don't have JDK 14 set in the project.
>>
>>
>> It's set to JDK 15, the same as the boot JDK.
>>
>>
>>>
>>> Anyway, impossible to help if you don't put a sample
>>> project with the problem somewhere for someone to
>>> take a look at.
>>
>>
>> Actual project is here:
>>
>>
>> https://github.com/BlueGoliath/Crosspoint
>>
>>
>> requires Project Panama JDK build from the
>> foreign-jextract branch to build.
>>
>>
>>>
>>> Gj
>>>
>>> On Thu, Mar 5, 2020 at 4:40 PM Ty Young
>>> <youngty1997@gmail.com
>>> <ma...@gmail.com>> wrote:
>>>
>>>
>>> On 3/5/20 9:18 AM, Geertjan Wielenga wrote:
>>>> https://netbeans.apache.org/download/nb113/index.html
>>>>
>>>> Read the above, thanks.
>>>
>>>
>>> Going by naming <compilerArg> should do the same
>>> thing, but it looks like it doesn't.
>>>
>>>
>>> Oh well. Preview features are enabled now but
>>> records aren't working. The java.lang.Record
>>> class is visible so records are apart of the
>>> JDK, it's just I can't make one:
>>>
>>>
>>> public record Foo(String x)
>>> {
>>>
>>> }
>>>
>>>
>>> errors on record.
>>>
>>>
>>>>
>>>> Gj
>>>>
>>>> On Thu, Mar 5, 2020 at 4:12 PM Ty Young
>>>> <youngty1997@gmail.com
>>>> <ma...@gmail.com>> wrote:
>>>>
>>>> Preview features in Netbeans 11.2(and
>>>> above) aren't being activated
>>>> despite being enabled in the maven build file:
>>>>
>>>> <groupId>org.apache.maven.plugins</groupId>
>>>> <artifactId>maven-compiler-plugin</artifactId>
>>>> <version>3.6.2</version>
>>>> <configuration>
>>>> <release>15</release> <!--
>>>> <release>13</release> -->
>>>> <compilerArg>--enable-preview</compilerArg>
>>>> <compilerArg>--add-modules
>>>> jdk.incubator.foreign</compilerArg>
>>>> <compilerArg>--open-modules
>>>> jdk.incubator.foreign.unsafe</compilerArg>
>>>> </configuration>
>>>>
>>>> Or at least there is no indication that it
>>>> is and I can't make a record.
>>>> Is there a way to tell if preview features
>>>> are enabled?
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail:
>>>> users-unsubscribe@netbeans.apache.org
>>>> <ma...@netbeans.apache.org>
>>>> For additional commands, e-mail:
>>>> users-help@netbeans.apache.org
>>>> <ma...@netbeans.apache.org>
>>>>
>>>> For further information about the NetBeans
>>>> mailing lists, visit:
>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>
Re: Preview features not enabling
Posted by Geertjan Wielenga <ge...@apache.org>.
And, also, make sure to uninstall nb-javac, if it is installed.
Gj
On Thu, Mar 5, 2020 at 5:06 PM Geertjan Wielenga <ge...@apache.org>
wrote:
> on JDK 14, we do not have a nb-javac for JDK 14, which means the editor
> will use the javac from the JDK it runs on.
>
> Gj
>
> On Thu, Mar 5, 2020 at 5:05 PM Geertjan Wielenga <ge...@apache.org>
> wrote:
>
>> Yes, but you are now -- after the release of 11.3 -- providing feedback
>> on the NetBeans support of records.
>>
>> Any problem you find at this stage is too late to be fixed in 11.3...
>> while there have been betas and all kinds of developments going on for
>> months now, your help would have been very useful.
>>
>> Make sure you're running NetBeans itself on JDK
>>
>> On Thu, Mar 5, 2020 at 5:01 PM Ty Young <yo...@gmail.com> wrote:
>>
>>>
>>> On 3/5/20 9:52 AM, Geertjan Wielenga wrote:
>>>
>>> But there seems to be JDK 15 referenced here, which is not supported by
>>> NetBeans:
>>>
>>> https://github.com/BlueGoliath/Crosspoint/blob/master/pom.xml
>>>
>>>
>>> Records themselves are already in Netbeans so why does the version
>>> matter? Are they hardcoded to 14 or something? The IDE works just fine
>>> otherwise...
>>>
>>>
>>>
>>> In general, though, how do you see this approach working out for you --
>>> waiting for a release to come out and then trying it out and providing
>>> feedback, instead of doing it during the development cycle, there have been
>>> several beta releases for you to provide feedback on.
>>>
>>>
>>> I'm not providing feedback on records, but Project Panama.
>>>
>>>
>>>
>>> Gj
>>>
>>> On Thu, Mar 5, 2020 at 4:50 PM Ty Young <yo...@gmail.com> wrote:
>>>
>>>>
>>>> On 3/5/20 9:42 AM, Geertjan Wielenga wrote:
>>>>
>>>> Probably you don't have JDK 14 set in the project.
>>>>
>>>>
>>>> It's set to JDK 15, the same as the boot JDK.
>>>>
>>>>
>>>>
>>>> Anyway, impossible to help if you don't put a sample project with the
>>>> problem somewhere for someone to take a look at.
>>>>
>>>>
>>>> Actual project is here:
>>>>
>>>>
>>>> https://github.com/BlueGoliath/Crosspoint
>>>>
>>>>
>>>> requires Project Panama JDK build from the foreign-jextract branch to
>>>> build.
>>>>
>>>>
>>>>
>>>> Gj
>>>>
>>>> On Thu, Mar 5, 2020 at 4:40 PM Ty Young <yo...@gmail.com> wrote:
>>>>
>>>>>
>>>>> On 3/5/20 9:18 AM, Geertjan Wielenga wrote:
>>>>>
>>>>> https://netbeans.apache.org/download/nb113/index.html
>>>>>
>>>>> Read the above, thanks.
>>>>>
>>>>>
>>>>> Going by naming <compilerArg> should do the same thing, but it looks
>>>>> like it doesn't.
>>>>>
>>>>>
>>>>> Oh well. Preview features are enabled now but records aren't working.
>>>>> The java.lang.Record class is visible so records are apart of the JDK, it's
>>>>> just I can't make one:
>>>>>
>>>>>
>>>>> public record Foo(String x)
>>>>> {
>>>>>
>>>>> }
>>>>>
>>>>>
>>>>> errors on record.
>>>>>
>>>>>
>>>>>
>>>>> Gj
>>>>>
>>>>> On Thu, Mar 5, 2020 at 4:12 PM Ty Young <yo...@gmail.com> wrote:
>>>>>
>>>>>> Preview features in Netbeans 11.2(and above) aren't being activated
>>>>>> despite being enabled in the maven build file:
>>>>>>
>>>>>> <groupId>org.apache.maven.plugins</groupId>
>>>>>> <artifactId>maven-compiler-plugin</artifactId>
>>>>>> <version>3.6.2</version>
>>>>>> <configuration>
>>>>>> <release>15</release> <!-- <release>13</release>
>>>>>> -->
>>>>>> <compilerArg>--enable-preview</compilerArg>
>>>>>> <compilerArg>--add-modules
>>>>>> jdk.incubator.foreign</compilerArg>
>>>>>> <compilerArg>--open-modules
>>>>>> jdk.incubator.foreign.unsafe</compilerArg>
>>>>>> </configuration>
>>>>>>
>>>>>> Or at least there is no indication that it is and I can't make a
>>>>>> record.
>>>>>> Is there a way to tell if preview features are enabled?
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>>>>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>>>>
>>>>>> For further information about the NetBeans mailing lists, visit:
>>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>>>
>>>>>>
Re: Preview features not enabling
Posted by Geertjan Wielenga <ge...@apache.org>.
on JDK 14, we do not have a nb-javac for JDK 14, which means the editor
will use the javac from the JDK it runs on.
Gj
On Thu, Mar 5, 2020 at 5:05 PM Geertjan Wielenga <ge...@apache.org>
wrote:
> Yes, but you are now -- after the release of 11.3 -- providing feedback on
> the NetBeans support of records.
>
> Any problem you find at this stage is too late to be fixed in 11.3...
> while there have been betas and all kinds of developments going on for
> months now, your help would have been very useful.
>
> Make sure you're running NetBeans itself on JDK
>
> On Thu, Mar 5, 2020 at 5:01 PM Ty Young <yo...@gmail.com> wrote:
>
>>
>> On 3/5/20 9:52 AM, Geertjan Wielenga wrote:
>>
>> But there seems to be JDK 15 referenced here, which is not supported by
>> NetBeans:
>>
>> https://github.com/BlueGoliath/Crosspoint/blob/master/pom.xml
>>
>>
>> Records themselves are already in Netbeans so why does the version
>> matter? Are they hardcoded to 14 or something? The IDE works just fine
>> otherwise...
>>
>>
>>
>> In general, though, how do you see this approach working out for you --
>> waiting for a release to come out and then trying it out and providing
>> feedback, instead of doing it during the development cycle, there have been
>> several beta releases for you to provide feedback on.
>>
>>
>> I'm not providing feedback on records, but Project Panama.
>>
>>
>>
>> Gj
>>
>> On Thu, Mar 5, 2020 at 4:50 PM Ty Young <yo...@gmail.com> wrote:
>>
>>>
>>> On 3/5/20 9:42 AM, Geertjan Wielenga wrote:
>>>
>>> Probably you don't have JDK 14 set in the project.
>>>
>>>
>>> It's set to JDK 15, the same as the boot JDK.
>>>
>>>
>>>
>>> Anyway, impossible to help if you don't put a sample project with the
>>> problem somewhere for someone to take a look at.
>>>
>>>
>>> Actual project is here:
>>>
>>>
>>> https://github.com/BlueGoliath/Crosspoint
>>>
>>>
>>> requires Project Panama JDK build from the foreign-jextract branch to
>>> build.
>>>
>>>
>>>
>>> Gj
>>>
>>> On Thu, Mar 5, 2020 at 4:40 PM Ty Young <yo...@gmail.com> wrote:
>>>
>>>>
>>>> On 3/5/20 9:18 AM, Geertjan Wielenga wrote:
>>>>
>>>> https://netbeans.apache.org/download/nb113/index.html
>>>>
>>>> Read the above, thanks.
>>>>
>>>>
>>>> Going by naming <compilerArg> should do the same thing, but it looks
>>>> like it doesn't.
>>>>
>>>>
>>>> Oh well. Preview features are enabled now but records aren't working.
>>>> The java.lang.Record class is visible so records are apart of the JDK, it's
>>>> just I can't make one:
>>>>
>>>>
>>>> public record Foo(String x)
>>>> {
>>>>
>>>> }
>>>>
>>>>
>>>> errors on record.
>>>>
>>>>
>>>>
>>>> Gj
>>>>
>>>> On Thu, Mar 5, 2020 at 4:12 PM Ty Young <yo...@gmail.com> wrote:
>>>>
>>>>> Preview features in Netbeans 11.2(and above) aren't being activated
>>>>> despite being enabled in the maven build file:
>>>>>
>>>>> <groupId>org.apache.maven.plugins</groupId>
>>>>> <artifactId>maven-compiler-plugin</artifactId>
>>>>> <version>3.6.2</version>
>>>>> <configuration>
>>>>> <release>15</release> <!-- <release>13</release>
>>>>> -->
>>>>> <compilerArg>--enable-preview</compilerArg>
>>>>> <compilerArg>--add-modules
>>>>> jdk.incubator.foreign</compilerArg>
>>>>> <compilerArg>--open-modules
>>>>> jdk.incubator.foreign.unsafe</compilerArg>
>>>>> </configuration>
>>>>>
>>>>> Or at least there is no indication that it is and I can't make a
>>>>> record.
>>>>> Is there a way to tell if preview features are enabled?
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>>>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>>>
>>>>> For further information about the NetBeans mailing lists, visit:
>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>>
>>>>>
Re: Preview features not enabling
Posted by Geertjan Wielenga <ge...@apache.org>.
Yes, but you are now -- after the release of 11.3 -- providing feedback on
the NetBeans support of records.
Any problem you find at this stage is too late to be fixed in 11.3... while
there have been betas and all kinds of developments going on for months
now, your help would have been very useful.
Make sure you're running NetBeans itself on JDK
On Thu, Mar 5, 2020 at 5:01 PM Ty Young <yo...@gmail.com> wrote:
>
> On 3/5/20 9:52 AM, Geertjan Wielenga wrote:
>
> But there seems to be JDK 15 referenced here, which is not supported by
> NetBeans:
>
> https://github.com/BlueGoliath/Crosspoint/blob/master/pom.xml
>
>
> Records themselves are already in Netbeans so why does the version matter?
> Are they hardcoded to 14 or something? The IDE works just fine otherwise...
>
>
>
> In general, though, how do you see this approach working out for you --
> waiting for a release to come out and then trying it out and providing
> feedback, instead of doing it during the development cycle, there have been
> several beta releases for you to provide feedback on.
>
>
> I'm not providing feedback on records, but Project Panama.
>
>
>
> Gj
>
> On Thu, Mar 5, 2020 at 4:50 PM Ty Young <yo...@gmail.com> wrote:
>
>>
>> On 3/5/20 9:42 AM, Geertjan Wielenga wrote:
>>
>> Probably you don't have JDK 14 set in the project.
>>
>>
>> It's set to JDK 15, the same as the boot JDK.
>>
>>
>>
>> Anyway, impossible to help if you don't put a sample project with the
>> problem somewhere for someone to take a look at.
>>
>>
>> Actual project is here:
>>
>>
>> https://github.com/BlueGoliath/Crosspoint
>>
>>
>> requires Project Panama JDK build from the foreign-jextract branch to
>> build.
>>
>>
>>
>> Gj
>>
>> On Thu, Mar 5, 2020 at 4:40 PM Ty Young <yo...@gmail.com> wrote:
>>
>>>
>>> On 3/5/20 9:18 AM, Geertjan Wielenga wrote:
>>>
>>> https://netbeans.apache.org/download/nb113/index.html
>>>
>>> Read the above, thanks.
>>>
>>>
>>> Going by naming <compilerArg> should do the same thing, but it looks
>>> like it doesn't.
>>>
>>>
>>> Oh well. Preview features are enabled now but records aren't working.
>>> The java.lang.Record class is visible so records are apart of the JDK, it's
>>> just I can't make one:
>>>
>>>
>>> public record Foo(String x)
>>> {
>>>
>>> }
>>>
>>>
>>> errors on record.
>>>
>>>
>>>
>>> Gj
>>>
>>> On Thu, Mar 5, 2020 at 4:12 PM Ty Young <yo...@gmail.com> wrote:
>>>
>>>> Preview features in Netbeans 11.2(and above) aren't being activated
>>>> despite being enabled in the maven build file:
>>>>
>>>> <groupId>org.apache.maven.plugins</groupId>
>>>> <artifactId>maven-compiler-plugin</artifactId>
>>>> <version>3.6.2</version>
>>>> <configuration>
>>>> <release>15</release> <!-- <release>13</release>
>>>> -->
>>>> <compilerArg>--enable-preview</compilerArg>
>>>> <compilerArg>--add-modules
>>>> jdk.incubator.foreign</compilerArg>
>>>> <compilerArg>--open-modules
>>>> jdk.incubator.foreign.unsafe</compilerArg>
>>>> </configuration>
>>>>
>>>> Or at least there is no indication that it is and I can't make a
>>>> record.
>>>> Is there a way to tell if preview features are enabled?
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>>
>>>> For further information about the NetBeans mailing lists, visit:
>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>
>>>>
Re: Preview features not enabling
Posted by Ty Young <yo...@gmail.com>.
On 3/5/20 9:52 AM, Geertjan Wielenga wrote:
> But there seems to be JDK 15 referenced here, which is not supported
> by NetBeans:
>
> https://github.com/BlueGoliath/Crosspoint/blob/master/pom.xml
Records themselves are already in Netbeans so why does the version
matter? Are they hardcoded to 14 or something? The IDE works just fine
otherwise...
>
> In general, though, how do you see this approach working out for you
> -- waiting for a release to come out and then trying it out and
> providing feedback, instead of doing it during the development cycle,
> there have been several beta releases for you to provide feedback on.
I'm not providing feedback on records, but Project Panama.
>
> Gj
>
> On Thu, Mar 5, 2020 at 4:50 PM Ty Young <youngty1997@gmail.com
> <ma...@gmail.com>> wrote:
>
>
> On 3/5/20 9:42 AM, Geertjan Wielenga wrote:
>> Probably you don't have JDK 14 set in the project.
>
>
> It's set to JDK 15, the same as the boot JDK.
>
>
>>
>> Anyway, impossible to help if you don't put a sample project with
>> the problem somewhere for someone to take a look at.
>
>
> Actual project is here:
>
>
> https://github.com/BlueGoliath/Crosspoint
>
>
> requires Project Panama JDK build from the foreign-jextract branch
> to build.
>
>
>>
>> Gj
>>
>> On Thu, Mar 5, 2020 at 4:40 PM Ty Young <youngty1997@gmail.com
>> <ma...@gmail.com>> wrote:
>>
>>
>> On 3/5/20 9:18 AM, Geertjan Wielenga wrote:
>>> https://netbeans.apache.org/download/nb113/index.html
>>>
>>> Read the above, thanks.
>>
>>
>> Going by naming <compilerArg> should do the same thing, but
>> it looks like it doesn't.
>>
>>
>> Oh well. Preview features are enabled now but records aren't
>> working. The java.lang.Record class is visible so records are
>> apart of the JDK, it's just I can't make one:
>>
>>
>> public record Foo(String x)
>> {
>>
>> }
>>
>>
>> errors on record.
>>
>>
>>>
>>> Gj
>>>
>>> On Thu, Mar 5, 2020 at 4:12 PM Ty Young
>>> <youngty1997@gmail.com <ma...@gmail.com>> wrote:
>>>
>>> Preview features in Netbeans 11.2(and above) aren't
>>> being activated
>>> despite being enabled in the maven build file:
>>>
>>> <groupId>org.apache.maven.plugins</groupId>
>>> <artifactId>maven-compiler-plugin</artifactId>
>>> <version>3.6.2</version>
>>> <configuration>
>>> <release>15</release> <!-- <release>13</release> -->
>>> <compilerArg>--enable-preview</compilerArg>
>>> <compilerArg>--add-modules
>>> jdk.incubator.foreign</compilerArg>
>>> <compilerArg>--open-modules
>>> jdk.incubator.foreign.unsafe</compilerArg>
>>> </configuration>
>>>
>>> Or at least there is no indication that it is and I
>>> can't make a record.
>>> Is there a way to tell if preview features are enabled?
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail:
>>> users-unsubscribe@netbeans.apache.org
>>> <ma...@netbeans.apache.org>
>>> For additional commands, e-mail:
>>> users-help@netbeans.apache.org
>>> <ma...@netbeans.apache.org>
>>>
>>> For further information about the NetBeans mailing
>>> lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
Re: Preview features not enabling
Posted by Geertjan Wielenga <ge...@apache.org>.
But there seems to be JDK 15 referenced here, which is not supported by
NetBeans:
https://github.com/BlueGoliath/Crosspoint/blob/master/pom.xml
In general, though, how do you see this approach working out for you --
waiting for a release to come out and then trying it out and providing
feedback, instead of doing it during the development cycle, there have been
several beta releases for you to provide feedback on.
Gj
On Thu, Mar 5, 2020 at 4:50 PM Ty Young <yo...@gmail.com> wrote:
>
> On 3/5/20 9:42 AM, Geertjan Wielenga wrote:
>
> Probably you don't have JDK 14 set in the project.
>
>
> It's set to JDK 15, the same as the boot JDK.
>
>
>
> Anyway, impossible to help if you don't put a sample project with the
> problem somewhere for someone to take a look at.
>
>
> Actual project is here:
>
>
> https://github.com/BlueGoliath/Crosspoint
>
>
> requires Project Panama JDK build from the foreign-jextract branch to
> build.
>
>
>
> Gj
>
> On Thu, Mar 5, 2020 at 4:40 PM Ty Young <yo...@gmail.com> wrote:
>
>>
>> On 3/5/20 9:18 AM, Geertjan Wielenga wrote:
>>
>> https://netbeans.apache.org/download/nb113/index.html
>>
>> Read the above, thanks.
>>
>>
>> Going by naming <compilerArg> should do the same thing, but it looks like
>> it doesn't.
>>
>>
>> Oh well. Preview features are enabled now but records aren't working. The
>> java.lang.Record class is visible so records are apart of the JDK, it's
>> just I can't make one:
>>
>>
>> public record Foo(String x)
>> {
>>
>> }
>>
>>
>> errors on record.
>>
>>
>>
>> Gj
>>
>> On Thu, Mar 5, 2020 at 4:12 PM Ty Young <yo...@gmail.com> wrote:
>>
>>> Preview features in Netbeans 11.2(and above) aren't being activated
>>> despite being enabled in the maven build file:
>>>
>>> <groupId>org.apache.maven.plugins</groupId>
>>> <artifactId>maven-compiler-plugin</artifactId>
>>> <version>3.6.2</version>
>>> <configuration>
>>> <release>15</release> <!-- <release>13</release> -->
>>> <compilerArg>--enable-preview</compilerArg>
>>> <compilerArg>--add-modules
>>> jdk.incubator.foreign</compilerArg>
>>> <compilerArg>--open-modules
>>> jdk.incubator.foreign.unsafe</compilerArg>
>>> </configuration>
>>>
>>> Or at least there is no indication that it is and I can't make a record.
>>> Is there a way to tell if preview features are enabled?
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>>
Re: Preview features not enabling
Posted by Ty Young <yo...@gmail.com>.
On 3/5/20 9:42 AM, Geertjan Wielenga wrote:
> Probably you don't have JDK 14 set in the project.
It's set to JDK 15, the same as the boot JDK.
>
> Anyway, impossible to help if you don't put a sample project with the
> problem somewhere for someone to take a look at.
Actual project is here:
https://github.com/BlueGoliath/Crosspoint
requires Project Panama JDK build from the foreign-jextract branch to build.
>
> Gj
>
> On Thu, Mar 5, 2020 at 4:40 PM Ty Young <youngty1997@gmail.com
> <ma...@gmail.com>> wrote:
>
>
> On 3/5/20 9:18 AM, Geertjan Wielenga wrote:
>> https://netbeans.apache.org/download/nb113/index.html
>>
>> Read the above, thanks.
>
>
> Going by naming <compilerArg> should do the same thing, but it
> looks like it doesn't.
>
>
> Oh well. Preview features are enabled now but records aren't
> working. The java.lang.Record class is visible so records are
> apart of the JDK, it's just I can't make one:
>
>
> public record Foo(String x)
> {
>
> }
>
>
> errors on record.
>
>
>>
>> Gj
>>
>> On Thu, Mar 5, 2020 at 4:12 PM Ty Young <youngty1997@gmail.com
>> <ma...@gmail.com>> wrote:
>>
>> Preview features in Netbeans 11.2(and above) aren't being
>> activated
>> despite being enabled in the maven build file:
>>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-compiler-plugin</artifactId>
>> <version>3.6.2</version>
>> <configuration>
>> <release>15</release> <!--
>> <release>13</release> -->
>> <compilerArg>--enable-preview</compilerArg>
>> <compilerArg>--add-modules
>> jdk.incubator.foreign</compilerArg>
>> <compilerArg>--open-modules
>> jdk.incubator.foreign.unsafe</compilerArg>
>> </configuration>
>>
>> Or at least there is no indication that it is and I can't
>> make a record.
>> Is there a way to tell if preview features are enabled?
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>> <ma...@netbeans.apache.org>
>> For additional commands, e-mail:
>> users-help@netbeans.apache.org
>> <ma...@netbeans.apache.org>
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
Re: Preview features not enabling
Posted by Geertjan Wielenga <ge...@apache.org>.
Probably you don't have JDK 14 set in the project.
Anyway, impossible to help if you don't put a sample project with the
problem somewhere for someone to take a look at.
Gj
On Thu, Mar 5, 2020 at 4:40 PM Ty Young <yo...@gmail.com> wrote:
>
> On 3/5/20 9:18 AM, Geertjan Wielenga wrote:
>
> https://netbeans.apache.org/download/nb113/index.html
>
> Read the above, thanks.
>
>
> Going by naming <compilerArg> should do the same thing, but it looks like
> it doesn't.
>
>
> Oh well. Preview features are enabled now but records aren't working. The
> java.lang.Record class is visible so records are apart of the JDK, it's
> just I can't make one:
>
>
> public record Foo(String x)
> {
>
> }
>
>
> errors on record.
>
>
>
> Gj
>
> On Thu, Mar 5, 2020 at 4:12 PM Ty Young <yo...@gmail.com> wrote:
>
>> Preview features in Netbeans 11.2(and above) aren't being activated
>> despite being enabled in the maven build file:
>>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-compiler-plugin</artifactId>
>> <version>3.6.2</version>
>> <configuration>
>> <release>15</release> <!-- <release>13</release> -->
>> <compilerArg>--enable-preview</compilerArg>
>> <compilerArg>--add-modules
>> jdk.incubator.foreign</compilerArg>
>> <compilerArg>--open-modules
>> jdk.incubator.foreign.unsafe</compilerArg>
>> </configuration>
>>
>> Or at least there is no indication that it is and I can't make a record.
>> Is there a way to tell if preview features are enabled?
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: users-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
Re: Preview features not enabling
Posted by Ty Young <yo...@gmail.com>.
On 3/5/20 9:18 AM, Geertjan Wielenga wrote:
> https://netbeans.apache.org/download/nb113/index.html
>
> Read the above, thanks.
Going by naming <compilerArg> should do the same thing, but it looks
like it doesn't.
Oh well. Preview features are enabled now but records aren't working.
The java.lang.Record class is visible so records are apart of the JDK,
it's just I can't make one:
public record Foo(String x)
{
}
errors on record.
>
> Gj
>
> On Thu, Mar 5, 2020 at 4:12 PM Ty Young <youngty1997@gmail.com
> <ma...@gmail.com>> wrote:
>
> Preview features in Netbeans 11.2(and above) aren't being activated
> despite being enabled in the maven build file:
>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <version>3.6.2</version>
> <configuration>
> <release>15</release> <!--
> <release>13</release> -->
> <compilerArg>--enable-preview</compilerArg>
> <compilerArg>--add-modules
> jdk.incubator.foreign</compilerArg>
> <compilerArg>--open-modules
> jdk.incubator.foreign.unsafe</compilerArg>
> </configuration>
>
> Or at least there is no indication that it is and I can't make a
> record.
> Is there a way to tell if preview features are enabled?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> <ma...@netbeans.apache.org>
> For additional commands, e-mail: users-help@netbeans.apache.org
> <ma...@netbeans.apache.org>
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
Re: Preview features not enabling
Posted by Geertjan Wielenga <ge...@apache.org>.
https://netbeans.apache.org/download/nb113/index.html
Read the above, thanks.
Gj
On Thu, Mar 5, 2020 at 4:12 PM Ty Young <yo...@gmail.com> wrote:
> Preview features in Netbeans 11.2(and above) aren't being activated
> despite being enabled in the maven build file:
>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <version>3.6.2</version>
> <configuration>
> <release>15</release> <!-- <release>13</release> -->
> <compilerArg>--enable-preview</compilerArg>
> <compilerArg>--add-modules
> jdk.incubator.foreign</compilerArg>
> <compilerArg>--open-modules
> jdk.incubator.foreign.unsafe</compilerArg>
> </configuration>
>
> Or at least there is no indication that it is and I can't make a record.
> Is there a way to tell if preview features are enabled?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>