Re: Use JDK preview features in Gradle
Yes. NetBeans just picks up the settings coming from Gradle. On Wed, Sep 28, 2022 at 5:56 AM Bernd Michaely wrote: > a search for »preview features« on the website https://docs.gradle.org > finds: > > > https://docs.gradle.org/current/userguide/building_java_projects.html#sec:feature_preview > > (assuming you mean Java preview features, not Gradle preview features :-) > > (this should be sufficient – don't think NetBeans needs additional setup?) > > Bernd > > On 28.09.22 14:24, Dragan Bjedov wrote: > > Hello, > > Is there any documenation how to setup NetBeans to use preview > > features with Gradle project? > > > > I was able to do it with Maven project. > > > > Thanks in advance > > - > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org > For additional commands, e-mail: users-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > >
Re: Use JDK preview features in Gradle
a search for »preview features« on the website https://docs.gradle.org finds: https://docs.gradle.org/current/userguide/building_java_projects.html#sec:feature_preview (assuming you mean Java preview features, not Gradle preview features :-) (this should be sufficient – don't think NetBeans needs additional setup?) Bernd On 28.09.22 14:24, Dragan Bjedov wrote: Hello, Is there any documenation how to setup NetBeans to use preview features with Gradle project? I was able to do it with Maven project. Thanks in advance - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Use JDK preview features in Gradle
Hello, Is there any documenation how to setup NetBeans to use preview features with Gradle project? I was able to do it with Maven project. Thanks in advance
Re: Preview features
Thank you. I didn't look hard enough before. Here is what works: org.codehaus.mojo exec-maven-plugin 1.6.0 Markdownj-Compile prepare-package exec java --enable-preview -classpath %classpath org.markdownj.cli.Main -v:2 -s src/docs/manual -d target/manual -wr false true org.markdownj markdownj-cli 0.1.15-SNAPSHOT jar It wasn't accessing the jar file, but the 'class' file! I'll upload the changes. Thanks again Brad. On 8/3/20 5:12 am, Geertjan Wielenga wrote: Can you do this, please: 1. Right-click the project. 2. Choose "Run". 3. Copy the content of the Output window in response to this e-mail. Thanks, Gj On Sat, Mar 7, 2020 at 10:09 PM Bradley Willcott mailto:optusprepa...@gmail.com>> wrote: 'run' requires the packaged jar file (markdownj-cli-*.jar) that is produced by this very project. Bootstrapping! On 8/3/20 5:01 am, Geertjan Wielenga wrote: So run the project, rather than building it, and all will be well. That’s because of your settings for ‘run’ action in nbactions file. Gj On Sat, 7 Mar 2020 at 21:59, Bradley Willcott mailto:optusprepa...@gmail.com>> wrote: There is a reason for that. This is being run in the: prepare-package At this point, there is no jar file to run. I only have access to the compiled class files, hence, using the: java instead of the: exec This is processing the 'md' files for the src/docs/manual, storing the 'html' output in the target/manual directory. All this works perfectly without the use of the /Preview Features/. I just like to use bleeding-edge technology. On 8/3/20 4:22 am, Geertjan Wielenga wrote: See my responses above. Seems to me that when you do your build, you're not using the settings you provided in nbactions. Gj On Sat, Mar 7, 2020 at 9:21 PM Bradley Willcott mailto:optusprepa...@gmail.com>> wrote: Here are the links to the compiled jar files: BEW Commons Library jar <https://github.com/bewillcott/bewcommons/releases/tag/1.0.2-SNAPSHOT> files Markdownj-core jar <https://github.com/bewillcott/markdownj/releases/tag/0.5.15-SNAPSHOT> files On 8/3/20 3:47 am, Bradley Willcott wrote: There are two other projects you require. I don't yet know how to get a compiled package up there for download. BEW Commons Library <https://github.com/bewillcott/bewcommons> Markdownj Core Library <https://github.com/bewillcott/markdownj/core> I will look into uploading compiled versions. On 8/3/20 3:42 am, Geertjan Wielenga wrote: Trying to reproduce, but this is nowhere to be found: com.bew BEWCommons 1.0.2-SNAPSHOT Gj On Sat, Mar 7, 2020 at 8:31 PM Bradley Willcott mailto:optusprepa...@gmail.com>> wrote: Thank you for that. However, I have already plumbed those depths. If you would take a look at the pom.xml <https://github.com/bewillcott/markdownj-cli/blob/master/pom.xml> file. I don't want to put it here as it is rather long. I have set the '--enable-preview' option for 'maven-compiler-plugin' and 'maven-surefire-plugin'. On 8/3/20 3:12 am, Geertjan Wielenga wrote: Read: https://netbeans.apache.org/download/nb113/index.html Gj On Sat, 7 Mar 2020 at 19:12, Bradley Willcott mailto:optusprepa...@gmail.com>> wrote: I have just installed both JDK 14 and NB 11.3. I am trying to incorporate 14's preview features into an on-going project: Markdownj CLI <https://github.com/bewillcott/markdownj-cli>. However, part of my POM processing causes an error: "java.lang.UnsupportedClassVersionError: Preview features are not enabled for org/markdownj/cli/Main (class file version 58.65535). Try running with '--enable-preview'" The part that is the culprit is:
Re: Preview features
Can you do this, please: 1. Right-click the project. 2. Choose "Run". 3. Copy the content of the Output window in response to this e-mail. Thanks, Gj On Sat, Mar 7, 2020 at 10:09 PM Bradley Willcott wrote: > 'run' requires the packaged jar file (markdownj-cli-*.jar) that is > produced by this very project. Bootstrapping! > On 8/3/20 5:01 am, Geertjan Wielenga wrote: > > So run the project, rather than building it, and all will be well. That’s > because of your settings for ‘run’ action in nbactions file. > > Gj > > On Sat, 7 Mar 2020 at 21:59, Bradley Willcott > wrote: > >> There is a reason for that. This is being run in the: >> >> prepare-package >> >> At this point, there is no jar file to run. I only have access to the >> compiled class files, hence, using the: >> >> java >> >> instead of the: >> >> exec >> >> This is processing the 'md' files for the src/docs/manual, storing the >> 'html' output in the target/manual directory. >> >> All this works perfectly without the use of the *Preview Features*. I >> just like to use bleeding-edge technology. >> >> On 8/3/20 4:22 am, Geertjan Wielenga wrote: >> >> See my responses above. >> >> Seems to me that when you do your build, you're not using the settings >> you provided in nbactions. >> >> Gj >> >> On Sat, Mar 7, 2020 at 9:21 PM Bradley Willcott >> wrote: >> >>> Here are the links to the compiled jar files: >>> >>> BEW Commons Library jar >>> <https://github.com/bewillcott/bewcommons/releases/tag/1.0.2-SNAPSHOT> >>> files >>> Markdownj-core jar >>> <https://github.com/bewillcott/markdownj/releases/tag/0.5.15-SNAPSHOT> >>> files >>> >>> >>> On 8/3/20 3:47 am, Bradley Willcott wrote: >>> >>> There are two other projects you require. I don't yet know how to get a >>> compiled package up there for download. >>> >>> BEW Commons Library <https://github.com/bewillcott/bewcommons> >>> >>> Markdownj Core Library <https://github.com/bewillcott/markdownj/core> >>> >>> I will look into uploading compiled versions. >>> On 8/3/20 3:42 am, Geertjan Wielenga wrote: >>> >>> Trying to reproduce, but this is nowhere to be found: >>> >>> >>> com.bew >>> BEWCommons >>> 1.0.2-SNAPSHOT >>> >>> >>> Gj >>> >>> On Sat, Mar 7, 2020 at 8:31 PM Bradley Willcott >>> wrote: >>> >>>> Thank you for that. >>>> >>>> However, I have already plumbed those depths. If you would take a look >>>> at the pom.xml >>>> <https://github.com/bewillcott/markdownj-cli/blob/master/pom.xml> >>>> file. I don't want to put it here as it is rather long. >>>> >>>> I have set the '--enable-preview' option for 'maven-compiler-plugin' >>>> and 'maven-surefire-plugin'. >>>> On 8/3/20 3:12 am, Geertjan Wielenga wrote: >>>> >>>> Read: >>>> >>>> https://netbeans.apache.org/download/nb113/index.html >>>> >>>> Gj >>>> >>>> On Sat, 7 Mar 2020 at 19:12, Bradley Willcott >>>> wrote: >>>> >>>>> I have just installed both JDK 14 and NB 11.3. >>>>> >>>>> I am trying to incorporate 14's preview features into an on-going >>>>> project: Markdownj CLI <https://github.com/bewillcott/markdownj-cli>. >>>>> However, part of my POM processing causes an error: >>>>> >>>>> "java.lang.UnsupportedClassVersionError: Preview features are not enabled >>>>> for org/markdownj/cli/Main (class file version 58.65535). Try running >>>>> with '--enable-preview'" >>>>> >>>>> The part that is the culprit is: >>>>> >>>>> >>>>> org.codehaus.mojo >>>>> exec-maven-plugin >>>>> 1.6.0 >>>>> >>>>> >>>>> Markdownj-Compile >>>>> prepare-package >>>>> >>>>> java >>>>> >>>>> >>>>> >>>>> --enable-preview >>>>> >>>>> ${project.build.directory} >>>>> >>>>> false >>>>> >>>>> true >>>>> org.markdownj.cli.Main >>>>> >>>>> -s src/docs/manual >>>>> -d target/manual >>>>> -rwv:2 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> org.markdownj >>>>> markdownj-cli >>>>> 0.1.15-SNAPSHOT >>>>> jar >>>>> >>>>> >>>>> >>>>> >>>>> If I comment out this entire plugin section, I can complete the >>>>> compile. Somewhere, somehow, I need to tell "exec-maven-plugin" to >>>>> use the JDK 14 "java" app with the "--enable-preview" option. >>>>> >>>>> Any ideas? >>>>> >>>>> Thanks, >>>>> Brad. >>>>> >>>> >>>
Re: Preview features
'run' requires the packaged jar file (markdownj-cli-*.jar) that is produced by this very project. Bootstrapping! On 8/3/20 5:01 am, Geertjan Wielenga wrote: So run the project, rather than building it, and all will be well. That’s because of your settings for ‘run’ action in nbactions file. Gj On Sat, 7 Mar 2020 at 21:59, Bradley Willcott <mailto:optusprepa...@gmail.com>> wrote: There is a reason for that. This is being run in the: prepare-package At this point, there is no jar file to run. I only have access to the compiled class files, hence, using the: java instead of the: exec This is processing the 'md' files for the src/docs/manual, storing the 'html' output in the target/manual directory. All this works perfectly without the use of the /Preview Features/. I just like to use bleeding-edge technology. On 8/3/20 4:22 am, Geertjan Wielenga wrote: See my responses above. Seems to me that when you do your build, you're not using the settings you provided in nbactions. Gj On Sat, Mar 7, 2020 at 9:21 PM Bradley Willcott mailto:optusprepa...@gmail.com>> wrote: Here are the links to the compiled jar files: BEW Commons Library jar <https://github.com/bewillcott/bewcommons/releases/tag/1.0.2-SNAPSHOT> files Markdownj-core jar <https://github.com/bewillcott/markdownj/releases/tag/0.5.15-SNAPSHOT> files On 8/3/20 3:47 am, Bradley Willcott wrote: There are two other projects you require. I don't yet know how to get a compiled package up there for download. BEW Commons Library <https://github.com/bewillcott/bewcommons> Markdownj Core Library <https://github.com/bewillcott/markdownj/core> I will look into uploading compiled versions. On 8/3/20 3:42 am, Geertjan Wielenga wrote: Trying to reproduce, but this is nowhere to be found: com.bew BEWCommons 1.0.2-SNAPSHOT Gj On Sat, Mar 7, 2020 at 8:31 PM Bradley Willcott mailto:optusprepa...@gmail.com>> wrote: Thank you for that. However, I have already plumbed those depths. If you would take a look at the pom.xml <https://github.com/bewillcott/markdownj-cli/blob/master/pom.xml> file. I don't want to put it here as it is rather long. I have set the '--enable-preview' option for 'maven-compiler-plugin' and 'maven-surefire-plugin'. On 8/3/20 3:12 am, Geertjan Wielenga wrote: Read: https://netbeans.apache.org/download/nb113/index.html Gj On Sat, 7 Mar 2020 at 19:12, Bradley Willcott mailto:optusprepa...@gmail.com>> wrote: I have just installed both JDK 14 and NB 11.3. I am trying to incorporate 14's preview features into an on-going project: Markdownj CLI <https://github.com/bewillcott/markdownj-cli>. However, part of my POM processing causes an error: "java.lang.UnsupportedClassVersionError: Preview features are not enabled for org/markdownj/cli/Main (class file version 58.65535). Try running with '--enable-preview'" The part that is the culprit is: org.codehaus.mojo exec-maven-plugin 1.6.0 Markdownj-Compile prepare-package java --enable-preview ${project.build.directory} false true org.markdownj.cli.Main -s src/docs/manual -d target/manual -rwv:2
Re: Preview features
So run the project, rather than building it, and all will be well. That’s because of your settings for ‘run’ action in nbactions file. Gj On Sat, 7 Mar 2020 at 21:59, Bradley Willcott wrote: > There is a reason for that. This is being run in the: > > prepare-package > > At this point, there is no jar file to run. I only have access to the > compiled class files, hence, using the: > > java > > instead of the: > > exec > > This is processing the 'md' files for the src/docs/manual, storing the > 'html' output in the target/manual directory. > > All this works perfectly without the use of the *Preview Features*. I > just like to use bleeding-edge technology. > > On 8/3/20 4:22 am, Geertjan Wielenga wrote: > > See my responses above. > > Seems to me that when you do your build, you're not using the settings you > provided in nbactions. > > Gj > > On Sat, Mar 7, 2020 at 9:21 PM Bradley Willcott > wrote: > >> Here are the links to the compiled jar files: >> >> BEW Commons Library jar >> <https://github.com/bewillcott/bewcommons/releases/tag/1.0.2-SNAPSHOT> >> files >> Markdownj-core jar >> <https://github.com/bewillcott/markdownj/releases/tag/0.5.15-SNAPSHOT> >> files >> >> >> On 8/3/20 3:47 am, Bradley Willcott wrote: >> >> There are two other projects you require. I don't yet know how to get a >> compiled package up there for download. >> >> BEW Commons Library <https://github.com/bewillcott/bewcommons> >> >> Markdownj Core Library <https://github.com/bewillcott/markdownj/core> >> >> I will look into uploading compiled versions. >> On 8/3/20 3:42 am, Geertjan Wielenga wrote: >> >> Trying to reproduce, but this is nowhere to be found: >> >> >> com.bew >> BEWCommons >> 1.0.2-SNAPSHOT >> >> >> Gj >> >> On Sat, Mar 7, 2020 at 8:31 PM Bradley Willcott >> wrote: >> >>> Thank you for that. >>> >>> However, I have already plumbed those depths. If you would take a look >>> at the pom.xml >>> <https://github.com/bewillcott/markdownj-cli/blob/master/pom.xml> >>> file. I don't want to put it here as it is rather long. >>> >>> I have set the '--enable-preview' option for 'maven-compiler-plugin' >>> and 'maven-surefire-plugin'. >>> On 8/3/20 3:12 am, Geertjan Wielenga wrote: >>> >>> Read: >>> >>> https://netbeans.apache.org/download/nb113/index.html >>> >>> Gj >>> >>> On Sat, 7 Mar 2020 at 19:12, Bradley Willcott >>> wrote: >>> >>>> I have just installed both JDK 14 and NB 11.3. >>>> >>>> I am trying to incorporate 14's preview features into an on-going >>>> project: Markdownj CLI <https://github.com/bewillcott/markdownj-cli>. >>>> However, part of my POM processing causes an error: >>>> >>>> "java.lang.UnsupportedClassVersionError: Preview features are not enabled >>>> for org/markdownj/cli/Main (class file version 58.65535). Try running with >>>> '--enable-preview'" >>>> >>>> The part that is the culprit is: >>>> >>>> >>>> org.codehaus.mojo >>>> exec-maven-plugin >>>> 1.6.0 >>>> >>>> >>>> Markdownj-Compile >>>> prepare-package >>>> >>>> java >>>> >>>> >>>> >>>> --enable-preview >>>> >>>> ${project.build.directory} >>>> >>>> false >>>> >>>> true >>>> org.markdownj.cli.Main >>>> >>>> -s src/docs/manual >>>> -d target/manual >>>> -rwv:2 >>>> >>>> >>>> >>>> >>>> >>>> >>>> org.markdownj >>>> markdownj-cli >>>> 0.1.15-SNAPSHOT >>>> jar >>>> >>>> >>>> >>>> >>>> If I comment out this entire plugin section, I can complete the >>>> compile. Somewhere, somehow, I need to tell "exec-maven-plugin" to >>>> use the JDK 14 "java" app with the "--enable-preview" option. >>>> >>>> Any ideas? >>>> >>>> Thanks, >>>> Brad. >>>> >>> >>
Re: Preview features
There is a reason for that. This is being run in the: prepare-package At this point, there is no jar file to run. I only have access to the compiled class files, hence, using the: java instead of the: exec This is processing the 'md' files for the src/docs/manual, storing the 'html' output in the target/manual directory. All this works perfectly without the use of the /Preview Features/. I just like to use bleeding-edge technology. On 8/3/20 4:22 am, Geertjan Wielenga wrote: See my responses above. Seems to me that when you do your build, you're not using the settings you provided in nbactions. Gj On Sat, Mar 7, 2020 at 9:21 PM Bradley Willcott mailto:optusprepa...@gmail.com>> wrote: Here are the links to the compiled jar files: BEW Commons Library jar <https://github.com/bewillcott/bewcommons/releases/tag/1.0.2-SNAPSHOT> files Markdownj-core jar <https://github.com/bewillcott/markdownj/releases/tag/0.5.15-SNAPSHOT> files On 8/3/20 3:47 am, Bradley Willcott wrote: There are two other projects you require. I don't yet know how to get a compiled package up there for download. BEW Commons Library <https://github.com/bewillcott/bewcommons> Markdownj Core Library <https://github.com/bewillcott/markdownj/core> I will look into uploading compiled versions. On 8/3/20 3:42 am, Geertjan Wielenga wrote: Trying to reproduce, but this is nowhere to be found: com.bew BEWCommons 1.0.2-SNAPSHOT Gj On Sat, Mar 7, 2020 at 8:31 PM Bradley Willcott mailto:optusprepa...@gmail.com>> wrote: Thank you for that. However, I have already plumbed those depths. If you would take a look at the pom.xml <https://github.com/bewillcott/markdownj-cli/blob/master/pom.xml> file. I don't want to put it here as it is rather long. I have set the '--enable-preview' option for 'maven-compiler-plugin' and 'maven-surefire-plugin'. On 8/3/20 3:12 am, Geertjan Wielenga wrote: Read: https://netbeans.apache.org/download/nb113/index.html Gj On Sat, 7 Mar 2020 at 19:12, Bradley Willcott mailto:optusprepa...@gmail.com>> wrote: I have just installed both JDK 14 and NB 11.3. I am trying to incorporate 14's preview features into an on-going project: Markdownj CLI <https://github.com/bewillcott/markdownj-cli>. However, part of my POM processing causes an error: "java.lang.UnsupportedClassVersionError: Preview features are not enabled for org/markdownj/cli/Main (class file version 58.65535). Try running with '--enable-preview'" The part that is the culprit is: org.codehaus.mojo exec-maven-plugin 1.6.0 Markdownj-Compile prepare-package java --enable-preview ${project.build.directory} false true org.markdownj.cli.Main -s src/docs/manual -d target/manual -rwv:2 org.markdownj markdownj-cli 0.1.15-SNAPSHOT jar If I comment out this entire plugin section, I can complete the compile. Somewhere, somehow, I need to tell "exec-maven-plugin" to use the JDK 14 "java" app with the "--enable-preview" option. Any ideas? Thanks, Brad.
Re: Preview features
See my responses above. Seems to me that when you do your build, you're not using the settings you provided in nbactions. Gj On Sat, Mar 7, 2020 at 9:21 PM Bradley Willcott wrote: > Here are the links to the compiled jar files: > > BEW Commons Library jar > <https://github.com/bewillcott/bewcommons/releases/tag/1.0.2-SNAPSHOT> > files > Markdownj-core jar > <https://github.com/bewillcott/markdownj/releases/tag/0.5.15-SNAPSHOT> > files > > > On 8/3/20 3:47 am, Bradley Willcott wrote: > > There are two other projects you require. I don't yet know how to get a > compiled package up there for download. > > BEW Commons Library <https://github.com/bewillcott/bewcommons> > > Markdownj Core Library <https://github.com/bewillcott/markdownj/core> > > I will look into uploading compiled versions. > On 8/3/20 3:42 am, Geertjan Wielenga wrote: > > Trying to reproduce, but this is nowhere to be found: > > > com.bew > BEWCommons > 1.0.2-SNAPSHOT > > > Gj > > On Sat, Mar 7, 2020 at 8:31 PM Bradley Willcott > wrote: > >> Thank you for that. >> >> However, I have already plumbed those depths. If you would take a look >> at the pom.xml >> <https://github.com/bewillcott/markdownj-cli/blob/master/pom.xml> file. >> I don't want to put it here as it is rather long. >> >> I have set the '--enable-preview' option for 'maven-compiler-plugin' and >> 'maven-surefire-plugin'. >> On 8/3/20 3:12 am, Geertjan Wielenga wrote: >> >> Read: >> >> https://netbeans.apache.org/download/nb113/index.html >> >> Gj >> >> On Sat, 7 Mar 2020 at 19:12, Bradley Willcott >> wrote: >> >>> I have just installed both JDK 14 and NB 11.3. >>> >>> I am trying to incorporate 14's preview features into an on-going >>> project: Markdownj CLI <https://github.com/bewillcott/markdownj-cli>. >>> However, part of my POM processing causes an error: >>> >>> "java.lang.UnsupportedClassVersionError: Preview features are not enabled >>> for org/markdownj/cli/Main (class file version 58.65535). Try running with >>> '--enable-preview'" >>> >>> The part that is the culprit is: >>> >>> >>> org.codehaus.mojo >>> exec-maven-plugin >>> 1.6.0 >>> >>> >>> Markdownj-Compile >>> prepare-package >>> >>> java >>> >>> >>> >>> --enable-preview >>> >>> ${project.build.directory} >>> >>> false >>> >>> true >>> org.markdownj.cli.Main >>> >>> -s src/docs/manual >>> -d target/manual >>> -rwv:2 >>> >>> >>> >>> >>> >>> >>> org.markdownj >>> markdownj-cli >>> 0.1.15-SNAPSHOT >>> jar >>> >>> >>> >>> >>> If I comment out this entire plugin section, I can complete the >>> compile. Somewhere, somehow, I need to tell "exec-maven-plugin" to use >>> the JDK 14 "java" app with the "--enable-preview" option. >>> >>> Any ideas? >>> >>> Thanks, >>> Brad. >>> >> >
Re: Preview features
Here are the links to the compiled jar files: BEW Commons Library jar <https://github.com/bewillcott/bewcommons/releases/tag/1.0.2-SNAPSHOT> files Markdownj-core jar <https://github.com/bewillcott/markdownj/releases/tag/0.5.15-SNAPSHOT> files On 8/3/20 3:47 am, Bradley Willcott wrote: There are two other projects you require. I don't yet know how to get a compiled package up there for download. BEW Commons Library <https://github.com/bewillcott/bewcommons> Markdownj Core Library <https://github.com/bewillcott/markdownj/core> I will look into uploading compiled versions. On 8/3/20 3:42 am, Geertjan Wielenga wrote: Trying to reproduce, but this is nowhere to be found: com.bew BEWCommons 1.0.2-SNAPSHOT Gj On Sat, Mar 7, 2020 at 8:31 PM Bradley Willcott mailto:optusprepa...@gmail.com>> wrote: Thank you for that. However, I have already plumbed those depths. If you would take a look at the pom.xml <https://github.com/bewillcott/markdownj-cli/blob/master/pom.xml> file. I don't want to put it here as it is rather long. I have set the '--enable-preview' option for 'maven-compiler-plugin' and 'maven-surefire-plugin'. On 8/3/20 3:12 am, Geertjan Wielenga wrote: Read: https://netbeans.apache.org/download/nb113/index.html Gj On Sat, 7 Mar 2020 at 19:12, Bradley Willcott mailto:optusprepa...@gmail.com>> wrote: I have just installed both JDK 14 and NB 11.3. I am trying to incorporate 14's preview features into an on-going project: Markdownj CLI <https://github.com/bewillcott/markdownj-cli>. However, part of my POM processing causes an error: "java.lang.UnsupportedClassVersionError: Preview features are not enabled for org/markdownj/cli/Main (class file version 58.65535). Try running with '--enable-preview'" The part that is the culprit is: org.codehaus.mojo exec-maven-plugin 1.6.0 Markdownj-Compile prepare-package java --enable-preview ${project.build.directory} false true org.markdownj.cli.Main -s src/docs/manual -d target/manual -rwv:2 org.markdownj markdownj-cli 0.1.15-SNAPSHOT jar If I comment out this entire plugin section, I can complete the compile. Somewhere, somehow, I need to tell "exec-maven-plugin" to use the JDK 14 "java" app with the "--enable-preview" option. Any ideas? Thanks, Brad.
Re: Preview features
Or keep it 'run' and then run the project. Output: cd /Users/geertjanwielenga/Desktop/mcli/markdownj-cli; JAVA_HOME=/Users/geertjanwielenga/Downloads/jdk-14.jdk/Contents/Home "/Applications/NetBeans/Apache NetBeans 11.3.app/Contents/Resources/NetBeans/netbeans/java/maven/bin/mvn" "-Dexec.args=--enable-preview -classpath %classpath org.markdownj.cli.Main -v:2 -s src/docs/manual -o target/manual -wr" -Dexec.executable=/Users/geertjanwielenga/Downloads/jdk-14.jdk/Contents/Home/bin/java -Dexec.workingdir= process-classes org.codehaus.mojo:exec-maven-plugin:1.6.0:exec Scanning for projects... Building MarkdownJ CLI 0.1.15-SNAPSHOT --- maven-resources-plugin:3.1.0:resources (default-resources) @ markdownj-cli --- Using 'UTF-8' encoding to copy filtered resources. Copying 1 resource Copying 4 resources Copying 0 resource skip non existing resourceDirectory /Users/geertjanwielenga/Desktop/mcli/markdownj-cli/target/manual --- maven-compiler-plugin:3.8.1:compile (default-compile) @ markdownj-cli --- Changes detected - recompiling the module! Compiling 26 source files to /Users/geertjanwielenga/Desktop/mcli/markdownj-cli/target/classes org/markdownj/cli/Cli.java:[170,21] text blocks are a preview feature and may be removed in a future release. org/markdownj/cli/Cli.java:[186,21] text blocks are a preview feature and may be removed in a future release. org/markdownj/cli/Cli.java:[199,21] text blocks are a preview feature and may be removed in a future release. org/markdownj/cli/Main.java:[128,13] possible fall-through into case --- exec-maven-plugin:1.6.0:exec (default-cli) @ markdownj-cli --- input: |null| output: |target/manual| source: |src/docs/manual| destination: |null| recursive: |true| wrapper: |true| initialise: |false| docRootDir: |null| jar: |false| jarFilename: || jarSrcDir: || verbose: |true| verbose level: |2| src/docs/manual/css/style.css Matched: 1 Creating directories ... Copying files ... iniPath: /Users/geertjanwielenga/Desktop/mcli/markdownj-cli/markdownj-cli.ini org.markdownj.cli.POMProperties: title: MarkdownJ CLI description: Command-line program that uses the Markdownj Core library. version: 0.1.15-SNAPSHOT artifactId: markdownj-cli groupId: org.markdownj PWD: /Users/geertjanwielenga/Desktop/mcli/markdownj-cli src/docs/manual/setup.md src/docs/manual/todo.md src/docs/manual/index.md src/docs/manual/configuration.md src/docs/manual/options.md src/docs/manual/meta blocks.md Matched: 6 inpList: outList: BUILD SUCCESS Total time: 2.650 s Finished at: 2020-03-07T21:20:16+01:00 Final Memory: 19M/70M On Sat, Mar 7, 2020 at 9:19 PM Geertjan Wielenga wrote: > In nbactions, change the actionName 'run' to 'build' and then do your > build, for me works fine. > > Gj > > On Sat, Mar 7, 2020 at 8:47 PM Bradley Willcott > wrote: > >> There are two other projects you require. I don't yet know how to get a >> compiled package up there for download. >> >> BEW Commons Library <https://github.com/bewillcott/bewcommons> >> >> Markdownj Core Library <https://github.com/bewillcott/markdownj/core> >> >> I will look into uploading compiled versions. >> On 8/3/20 3:42 am, Geertjan Wielenga wrote: >> >> Trying to reproduce, but this is nowhere to be found: >> >> >> com.bew >> BEWCommons >> 1.0.2-SNAPSHOT >> >> >> Gj >> >> On Sat, Mar 7, 2020 at 8:31 PM Bradley Willcott >> wrote: >> >>> Thank you for that. >>> >>> However, I have already plumbed those depths. If you would take a look >>> at the pom.xml >>> <https://github.com/bewillcott/markdownj-cli/blob/master/pom.xml> >>> file. I don't want to put it here as it is rather long. >>> >>> I have set the '--enable-preview' option for 'maven-compiler-plugin' >>> and 'maven-surefire-plugin'. >>> On 8/3/20 3:12 am, Geertjan Wielenga wrote: >>> >>> Read: >>> >>> https://netbeans.apache.org/download/nb113/index.html >>> >>> Gj >>> >>> On Sat, 7 Mar 2020 at 19:12, Bradley Willcott >>> wrote: >>> >>>> I have just installed both JDK 14 and NB 11.3. >>>> >>>> I am trying to incorporate 14's preview features into an on-going >>>> project: Markdownj CLI <https://github.com/bewillcott/mar
Re: Preview features
In nbactions, change the actionName 'run' to 'build' and then do your build, for me works fine. Gj On Sat, Mar 7, 2020 at 8:47 PM Bradley Willcott wrote: > There are two other projects you require. I don't yet know how to get a > compiled package up there for download. > > BEW Commons Library <https://github.com/bewillcott/bewcommons> > > Markdownj Core Library <https://github.com/bewillcott/markdownj/core> > > I will look into uploading compiled versions. > On 8/3/20 3:42 am, Geertjan Wielenga wrote: > > Trying to reproduce, but this is nowhere to be found: > > > com.bew > BEWCommons > 1.0.2-SNAPSHOT > > > Gj > > On Sat, Mar 7, 2020 at 8:31 PM Bradley Willcott > wrote: > >> Thank you for that. >> >> However, I have already plumbed those depths. If you would take a look >> at the pom.xml >> <https://github.com/bewillcott/markdownj-cli/blob/master/pom.xml> file. >> I don't want to put it here as it is rather long. >> >> I have set the '--enable-preview' option for 'maven-compiler-plugin' and >> 'maven-surefire-plugin'. >> On 8/3/20 3:12 am, Geertjan Wielenga wrote: >> >> Read: >> >> https://netbeans.apache.org/download/nb113/index.html >> >> Gj >> >> On Sat, 7 Mar 2020 at 19:12, Bradley Willcott >> wrote: >> >>> I have just installed both JDK 14 and NB 11.3. >>> >>> I am trying to incorporate 14's preview features into an on-going >>> project: Markdownj CLI <https://github.com/bewillcott/markdownj-cli>. >>> However, part of my POM processing causes an error: >>> >>> "java.lang.UnsupportedClassVersionError: Preview features are not enabled >>> for org/markdownj/cli/Main (class file version 58.65535). Try running with >>> '--enable-preview'" >>> >>> The part that is the culprit is: >>> >>> >>> org.codehaus.mojo >>> exec-maven-plugin >>> 1.6.0 >>> >>> >>> Markdownj-Compile >>> prepare-package >>> >>> java >>> >>> >>> >>> --enable-preview >>> >>> ${project.build.directory} >>> >>> false >>> >>> true >>> org.markdownj.cli.Main >>> >>> -s src/docs/manual >>> -d target/manual >>> -rwv:2 >>> >>> >>> >>> >>> >>> >>> org.markdownj >>> markdownj-cli >>> 0.1.15-SNAPSHOT >>> jar >>> >>> >>> >>> >>> If I comment out this entire plugin section, I can complete the >>> compile. Somewhere, somehow, I need to tell "exec-maven-plugin" to use >>> the JDK 14 "java" app with the "--enable-preview" option. >>> >>> Any ideas? >>> >>> Thanks, >>> Brad. >>> >>
Re: Preview features
There are two other projects you require. I don't yet know how to get a compiled package up there for download. BEW Commons Library <https://github.com/bewillcott/bewcommons> Markdownj Core Library <https://github.com/bewillcott/markdownj/core> I will look into uploading compiled versions. On 8/3/20 3:42 am, Geertjan Wielenga wrote: Trying to reproduce, but this is nowhere to be found: com.bew BEWCommons 1.0.2-SNAPSHOT Gj On Sat, Mar 7, 2020 at 8:31 PM Bradley Willcott mailto:optusprepa...@gmail.com>> wrote: Thank you for that. However, I have already plumbed those depths. If you would take a look at the pom.xml <https://github.com/bewillcott/markdownj-cli/blob/master/pom.xml> file. I don't want to put it here as it is rather long. I have set the '--enable-preview' option for 'maven-compiler-plugin' and 'maven-surefire-plugin'. On 8/3/20 3:12 am, Geertjan Wielenga wrote: Read: https://netbeans.apache.org/download/nb113/index.html Gj On Sat, 7 Mar 2020 at 19:12, Bradley Willcott mailto:optusprepa...@gmail.com>> wrote: I have just installed both JDK 14 and NB 11.3. I am trying to incorporate 14's preview features into an on-going project: Markdownj CLI <https://github.com/bewillcott/markdownj-cli>. However, part of my POM processing causes an error: "java.lang.UnsupportedClassVersionError: Preview features are not enabled for org/markdownj/cli/Main (class file version 58.65535). Try running with '--enable-preview'" The part that is the culprit is: org.codehaus.mojo exec-maven-plugin 1.6.0 Markdownj-Compile prepare-package java --enable-preview ${project.build.directory} false true org.markdownj.cli.Main -s src/docs/manual -d target/manual -rwv:2 org.markdownj markdownj-cli 0.1.15-SNAPSHOT jar If I comment out this entire plugin section, I can complete the compile. Somewhere, somehow, I need to tell "exec-maven-plugin" to use the JDK 14 "java" app with the "--enable-preview" option. Any ideas? Thanks, Brad.
Re: Preview features
Trying to reproduce, but this is nowhere to be found: com.bew BEWCommons 1.0.2-SNAPSHOT Gj On Sat, Mar 7, 2020 at 8:31 PM Bradley Willcott wrote: > Thank you for that. > > However, I have already plumbed those depths. If you would take a look at > the pom.xml > <https://github.com/bewillcott/markdownj-cli/blob/master/pom.xml> file. > I don't want to put it here as it is rather long. > > I have set the '--enable-preview' option for 'maven-compiler-plugin' and ' > maven-surefire-plugin'. > On 8/3/20 3:12 am, Geertjan Wielenga wrote: > > Read: > > https://netbeans.apache.org/download/nb113/index.html > > Gj > > On Sat, 7 Mar 2020 at 19:12, Bradley Willcott > wrote: > >> I have just installed both JDK 14 and NB 11.3. >> >> I am trying to incorporate 14's preview features into an on-going >> project: Markdownj CLI <https://github.com/bewillcott/markdownj-cli>. >> However, part of my POM processing causes an error: >> >> "java.lang.UnsupportedClassVersionError: Preview features are not enabled >> for org/markdownj/cli/Main (class file version 58.65535). Try running with >> '--enable-preview'" >> >> The part that is the culprit is: >> >> >> org.codehaus.mojo >> exec-maven-plugin >> 1.6.0 >> >> >> Markdownj-Compile >> prepare-package >> >> java >> >> >> >> --enable-preview >> >> ${project.build.directory} >> >> false >> >> true >> org.markdownj.cli.Main >> >> -s src/docs/manual >> -d target/manual >> -rwv:2 >> >> >> >> >> >> >> org.markdownj >> markdownj-cli >> 0.1.15-SNAPSHOT >> jar >> >> >> >> >> If I comment out this entire plugin section, I can complete the compile. >> Somewhere, somehow, I need to tell "exec-maven-plugin" to use the JDK 14 >> "java" app with the "--enable-preview" option. >> >> Any ideas? >> >> Thanks, >> Brad. >> >
Re: Preview features
Thank you for that. However, I have already plumbed those depths. If you would take a look at the pom.xml <https://github.com/bewillcott/markdownj-cli/blob/master/pom.xml> file. I don't want to put it here as it is rather long. I have set the '--enable-preview' option for 'maven-compiler-plugin' and 'maven-surefire-plugin'. On 8/3/20 3:12 am, Geertjan Wielenga wrote: Read: https://netbeans.apache.org/download/nb113/index.html Gj On Sat, 7 Mar 2020 at 19:12, Bradley Willcott <mailto:optusprepa...@gmail.com>> wrote: I have just installed both JDK 14 and NB 11.3. I am trying to incorporate 14's preview features into an on-going project: Markdownj CLI <https://github.com/bewillcott/markdownj-cli>. However, part of my POM processing causes an error: "java.lang.UnsupportedClassVersionError: Preview features are not enabled for org/markdownj/cli/Main (class file version 58.65535). Try running with '--enable-preview'" The part that is the culprit is: org.codehaus.mojo exec-maven-plugin 1.6.0 Markdownj-Compile prepare-package java --enable-preview ${project.build.directory} false true org.markdownj.cli.Main -s src/docs/manual -d target/manual -rwv:2 org.markdownj markdownj-cli 0.1.15-SNAPSHOT jar If I comment out this entire plugin section, I can complete the compile. Somewhere, somehow, I need to tell "exec-maven-plugin" to use the JDK 14 "java" app with the "--enable-preview" option. Any ideas? Thanks, Brad.
Re: Preview features
Read: https://netbeans.apache.org/download/nb113/index.html Gj On Sat, 7 Mar 2020 at 19:12, Bradley Willcott wrote: > I have just installed both JDK 14 and NB 11.3. > > I am trying to incorporate 14's preview features into an on-going project: > Markdownj > CLI <https://github.com/bewillcott/markdownj-cli>. However, part of my > POM processing causes an error: > > "java.lang.UnsupportedClassVersionError: Preview features are not enabled for > org/markdownj/cli/Main (class file version 58.65535). Try running with > '--enable-preview'" > > The part that is the culprit is: > > > org.codehaus.mojo > exec-maven-plugin > 1.6.0 > > > Markdownj-Compile > prepare-package > > java > > > > --enable-preview > > ${project.build.directory} > > false > > true > org.markdownj.cli.Main > > -s src/docs/manual > -d target/manual > -rwv:2 > > > > > > > org.markdownj > markdownj-cli > 0.1.15-SNAPSHOT > jar > > > > > If I comment out this entire plugin section, I can complete the compile. > Somewhere, somehow, I need to tell "exec-maven-plugin" to use the JDK 14 " > java" app with the "--enable-preview" option. > > Any ideas? > > Thanks, > Brad. >
Preview features
I have just installed both JDK 14 and NB 11.3. I am trying to incorporate 14's preview features into an on-going project: Markdownj CLI <https://github.com/bewillcott/markdownj-cli>. However, part of my POM processing causes an error: "java.lang.UnsupportedClassVersionError: Preview features are not enabled for org/markdownj/cli/Main (class file version 58.65535). Try running with '--enable-preview'" The part that is the culprit is: org.codehaus.mojo exec-maven-plugin 1.6.0 Markdownj-Compile prepare-package java --enable-preview ${project.build.directory} false true org.markdownj.cli.Main -s src/docs/manual -d target/manual -rwv:2 org.markdownj markdownj-cli 0.1.15-SNAPSHOT jar If I comment out this entire plugin section, I can complete the compile. Somewhere, somehow, I need to tell "exec-maven-plugin" to use the JDK 14 "java" app with the "--enable-preview" option. Any ideas? Thanks, Brad.
Re: Preview features not enabling
Anything you find, just file an issue so it can be tracked. Gj On Fri, 6 Mar 2020 at 18:49, Ty Young 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 > 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 >> 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 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 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 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 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 >>>>>> wrote: >>>>>> >>>>>>> Preview features in Netbeans 11.2(and above) aren't being activated >>>>>>> despite being enabled in the maven build file: >>>>>>> >>>>>>> org.apache.maven.plugins >>>>>>> maven-compiler-plugin >>>>>>> 3.6.2 >>>>>>> >>>>>>> 15 >>>>>>> --enable-preview >>>>>>> --add-modules >>>>>>> jdk.incubator.foreign >>>>>>> --open-modules >>>>>>> jdk.incubator.foreign.unsafe >>>>>>> >>>>>>> >>>>>>> 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-unsubscr...@netbeans.apache.org >>>>>>> For additional commands, e-mail: users-h...@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
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 mailto:geert...@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 mailto:geert...@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 mailto:youngty1...@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 mailto:youngty1...@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 mailto:youngty1...@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 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 mailto:youngty1...@gmail.com>> wrote: Preview features in Netbeans 11.2(and above) aren't being activated despite being enabled in the maven build file: org.apache.maven.plugins maven-compiler-plugin 3.6.2 15 --enable-preview --add-modules jdk.incubator.foreign --open-modules jdk.incubator.foreign.unsafe 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? -
Re: Preview features not enabling
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 <mailto:geert...@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 mailto:geert...@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 mailto:youngty1...@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 mailto:youngty1...@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 mailto:youngty1...@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 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 mailto:youngty1...@gmail.com>> wrote: Preview features in Netbeans 11.2(and above) aren't being activated despite being enabled in the maven build file: org.apache.maven.plugins maven-compiler-plugin 3.6.2 15 --enable-preview --add-modules jdk.incubator.foreign --open-modules jdk.incubator.foreign.unsafe 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-unsubscr...@netbeans.apache.org
Re: Preview features not enabling
Gj On Thu, Mar 5, 2020 at 4:40 PM Ty Young mailto:youngty1...@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 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 mailto:youngty1...@gmail.com>> wrote: Preview features in Netbeans 11.2(and above) aren't being activated despite being enabled in the maven build file: org.apache.maven.plugins maven-compiler-plugin 3.6.2 15 --enable-preview --add-modules jdk.incubator.foreign --open-modules jdk.incubator.foreign.unsafe 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-unsubscr...@netbeans.apache.org <mailto:users-unsubscr...@netbeans.apache.org> For additional commands, e-mail: users-h...@netbeans.apache.org <mailto:users-h...@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
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 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 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 >> 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 >>> 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 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 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 >>>>>> >>>>
Re: Preview features not enabling
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 <mailto:youngty1...@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 mailto:geert...@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 mailto:geert...@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 mailto:youngty1...@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 mailto:youngty1...@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 mailto:youngty1...@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 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
Re: Preview features not enabling
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 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 > 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 >> 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 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 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 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 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 >>>>>> wrote: >>>>>> >>>>>>> Preview features in Netbeans 11.2(and above) aren't being activated >>>>>>> despite being enabled in the maven build file: >>>>>>> >>>>>>> org.apache.maven.plugins >>>>>>> maven-compiler-plugin >>>>>>> 3.6.2 >>>>>>> >>>>>>> 15 >>>>>>> --enable-preview >>>>>>> --add-modules >>>>>>> jdk.incubator.foreign >>>>>>> --open-modules >>>>>>> jdk.incubator.foreign.unsafe >>>>>>> >>>>>>> >>>>>>> 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-unsubscr...@netbeans.apache.org >>>>>>> For additional commands, e-mail: users-h...@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
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 <mailto:geert...@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 mailto:geert...@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 mailto:youngty1...@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 mailto:youngty1...@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 mailto:youngty1...@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 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 mailto:youngty1...@gmail.com>> wrote: Preview features in Netbeans 11.2(and above) aren't being activated despite being enabled in the maven build file: org.apache.maven.plugins maven-compiler-plugin 3.6.2 15 --enable-preview --add-modules jdk.incubator.foreign --open-modules jdk.incubator.foreign.unsafe 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-unsubscr...@netbeans.apache.org <mailto:users-unsubscr...@netbeans.apache.org> For additional commands, e-mail: users-h...@netbeans.apache.org <mailto:users-h...@netbeans.apache.org>
Re: Preview features not enabling
And, also, make sure to uninstall nb-javac, if it is installed. Gj On Thu, Mar 5, 2020 at 5:06 PM Geertjan Wielenga 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 > 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 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 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 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 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 wrote: >>>>> >>>>>> Preview features in Netbeans 11.2(and above) aren't being activated >>>>>> despite being enabled in the maven build file: >>>>>> >>>>>> org.apache.maven.plugins >>>>>> maven-compiler-plugin >>>>>> 3.6.2 >>>>>> >>>>>> 15 >>>>>> --enable-preview >>>>>> --add-modules >>>>>> jdk.incubator.foreign >>>>>> --open-modules >>>>>> jdk.incubator.foreign.unsafe >>>>>> >>>>>> >>>>>> 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-unsubscr...@netbeans.apache.org >>>>>> For additional commands, e-mail: users-h...@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
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 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 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 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 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 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 wrote: >>>> >>>>> Preview features in Netbeans 11.2(and above) aren't being activated >>>>> despite being enabled in the maven build file: >>>>> >>>>> org.apache.maven.plugins >>>>> maven-compiler-plugin >>>>> 3.6.2 >>>>> >>>>> 15 >>>>> --enable-preview >>>>> --add-modules >>>>> jdk.incubator.foreign >>>>> --open-modules >>>>> jdk.incubator.foreign.unsafe >>>>> >>>>> >>>>> 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-unsubscr...@netbeans.apache.org >>>>> For additional commands, e-mail: users-h...@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
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 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 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 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 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 wrote: >>> >>>> Preview features in Netbeans 11.2(and above) aren't being activated >>>> despite being enabled in the maven build file: >>>> >>>> org.apache.maven.plugins >>>> maven-compiler-plugin >>>> 3.6.2 >>>> >>>> 15 >>>> --enable-preview >>>> --add-modules >>>> jdk.incubator.foreign >>>> --open-modules >>>> jdk.incubator.foreign.unsafe >>>> >>>> >>>> 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-unsubscr...@netbeans.apache.org >>>> For additional commands, e-mail: users-h...@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
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 <mailto:youngty1...@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 mailto:youngty1...@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 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 mailto:youngty1...@gmail.com>> wrote: Preview features in Netbeans 11.2(and above) aren't being activated despite being enabled in the maven build file: org.apache.maven.plugins maven-compiler-plugin 3.6.2 15 --enable-preview --add-modules jdk.incubator.foreign --open-modules jdk.incubator.foreign.unsafe 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-unsubscr...@netbeans.apache.org <mailto:users-unsubscr...@netbeans.apache.org> For additional commands, e-mail: users-h...@netbeans.apache.org <mailto:users-h...@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
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 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 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 wrote: > >> Preview features in Netbeans 11.2(and above) aren't being activated >> despite being enabled in the maven build file: >> >> org.apache.maven.plugins >> maven-compiler-plugin >> 3.6.2 >> >> 15 >> --enable-preview >> --add-modules >> jdk.incubator.foreign >> --open-modules >> jdk.incubator.foreign.unsafe >> >> >> 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-unsubscr...@netbeans.apache.org >> For additional commands, e-mail: users-h...@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
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 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 <mailto:youngty1...@gmail.com>> wrote: Preview features in Netbeans 11.2(and above) aren't being activated despite being enabled in the maven build file: org.apache.maven.plugins maven-compiler-plugin 3.6.2 15 --enable-preview --add-modules jdk.incubator.foreign --open-modules jdk.incubator.foreign.unsafe 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-unsubscr...@netbeans.apache.org <mailto:users-unsubscr...@netbeans.apache.org> For additional commands, e-mail: users-h...@netbeans.apache.org <mailto:users-h...@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
https://netbeans.apache.org/download/nb113/index.html Read the above, thanks. Gj On Thu, Mar 5, 2020 at 4:12 PM Ty Young wrote: > Preview features in Netbeans 11.2(and above) aren't being activated > despite being enabled in the maven build file: > > org.apache.maven.plugins > maven-compiler-plugin > 3.6.2 > > 15 > --enable-preview > --add-modules > jdk.incubator.foreign > --open-modules > jdk.incubator.foreign.unsafe > > > 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-unsubscr...@netbeans.apache.org > For additional commands, e-mail: users-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > >
Preview features not enabling
Preview features in Netbeans 11.2(and above) aren't being activated despite being enabled in the maven build file: org.apache.maven.plugins maven-compiler-plugin 3.6.2 15 --enable-preview --add-modules jdk.incubator.foreign --open-modules jdk.incubator.foreign.unsafe 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-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists