The problem with text blocks does not exist in 12.2 RC1. 

The issue with running a single test with preview enabled does still exist in 
12.2 RC1. Although it has gotten better. I'm able to eliminate the problem by 
adding the "enable-preview" flag to the Surefire plugin. In 12.1 that did not 
work. Here is the section of the maven POM file that I edited by hand to make 
the unit tests run. The surefire plugin node existed before I enabled preview 
in the editor. I added the --enable-preview argument.

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>3.0.0-M5</version>
                <configuration>
                    <jvm>/usr/lib/jvm/jdk-15.0.1+9/bin/java</jvm>      
                    <argLine>--enable-preview</argLine>              
                </configuration>
</plugin>


Product Version: Apache NetBeans IDE 12.2-rc1
Java: 15.0.1; OpenJDK 64-Bit Server VM 15.0.1+9
Runtime: OpenJDK Runtime Environment 15.0.1+9
System: Linux version 5.3.0-46-generic running on amd64; UTF-8; en_US (nb)
User directory: /home/chad/.netbeans/12.2-rc1
Cache directory: /home/chad/.cache/netbeans/12.2-rc1

Anyway, thanks for the help. I'm able to use text blocks without preview 
enabled now.

On 2020/11/11 22:25:03, Geertjan Wielenga 
<geertjan.wiele...@googlemail.com.INVALID> wrote: 
> 12.1 does not support JDK 15. If it runs on JDK 15, that’s nice, but it
> does not officially support it.
> 
> Please try your scenario instead in 12.2, currently in beta, which does
> support JDK 15.
> 
> http://mail-archives.apache.org/mod_mbox/netbeans-dev/202011.mbox/%3cfc423e41-bd3c-e7be-0d26-a4741f6b2...@gmail.com%3E
> 
> Gj
> 
> On Wed, 11 Nov 2020 at 23:00, Chad Preisler <chad.preis...@gmail.com> wrote:
> 
> > Netbeans 12.1 appears to still think text blocks are still a preview
> > feature while using JDK 15. I wanted to get this on your radar. Is there
> > any way to make the IDE see the text block as valid without preview turned
> > on?
> >
> > I'm using a maven project and the project compiles fine without preview
> > turned on, but the IDE still marks the code as an error and gives an option
> > to "Enable Preview Feature". When I turn preview features on, I can't run
> > an individual unit test in Netbeans. There appears to be some issue with
> > the forked maven JDK not getting the preview flag turned on when running
> > the test. For that reason I'd prefer to not use the preview feature.
> >
> > Here is the Netbeans info:
> >
> > Product Version: Apache NetBeans IDE 12.1
> > Java: 15.0.1; OpenJDK 64-Bit Server VM 15.0.1+9
> > Runtime: OpenJDK Runtime Environment 15.0.1+9
> > System: Linux version 5.3.0-46-generic running on amd64; UTF-8; en_US (nb)
> > User directory: /home/chad/.netbeans/12.1
> > Cache directory: /home/chad/.cache/netbeans/12.1
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
> >
> >
> 

---------------------------------------------------------------------
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

Reply via email to