[ https://issues.apache.org/jira/browse/NETBEANS-6027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
negora updated NETBEANS-6027: ----------------------------- Description: Hello: I'm developing a Java project using Maven. If I write this configuration in the {{pom.xml}} file: {code:java} <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <release>17</release> <compilerArgs> <arg>-Xlint:all</arg> </compilerArgs> <showWarnings>true</showWarnings> </configuration> </plugin>{code} And then, I write this text block in a Java source file and save it: {code:java} String sample = """ """;{code} The IDE freezes completely. I've to kill the process. However, if I replace the "-Xlint:all" argument with this equivalent value: {code:java} <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <release>17</release> <compilerArgs> <arg>-Xlint:cast,classfile,deprecation, dep-ann,divzero,empty,fallthrough,finally,options, overrides,path,processing,rawtypes,static, try,unchecked,varargs</arg> </compilerArgs> <showWarnings>true</showWarnings> </configuration> </plugin>{code} It works well. It also works well if I remove the compiler arguments all together. There is a visual defect that indicates me whether the IDE is going to freeze or not before saving the file: The code that is after the text block loses its highlighting and becomes white. Please, check the attached screenshots. was: Hello: I'm developing a Java project using Maven. If I write this configuration in the {{pom.xml}} file: {code:java} <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <release>17</release> <compilerArgs> <arg>-Xlint:all</arg> </compilerArgs> <showWarnings>true</showWarnings> </configuration> </plugin>{code} And then, I write this text block in a Java source file and save it: {code:java} String sample = """ """;{code} The IDE freezes completely. I've to kill the process. However, if I replace the "-Xlint:all" argument with this equivalent value: {code:java} <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <release>17</release> <compilerArgs> <arg>-Xlint:cast,classfile,deprecation, dep-ann,divzero,empty,fallthrough,finally,options, overrides,path,processing,rawtypes,static, try,unchecked,varargs</arg> </compilerArgs> <showWarnings>true</showWarnings> </configuration> </plugin>{code} It works well. It also works well if I remove the compiler arguments all together. There is a visual defect that indicates me whether the IDE is going to freeze or not before saving the file: The code that is after the text block loses its highlighting and becomes white. Please, check the screenshots. > Frozen IDE when using Maven + "Xlint:all" + text blocks > ------------------------------------------------------- > > Key: NETBEANS-6027 > URL: https://issues.apache.org/jira/browse/NETBEANS-6027 > Project: NetBeans > Issue Type: Bug > Affects Versions: 12.4, 12.5 > Environment: These are the versions of my software: > * OS: Debian GNU/Linux 10.10 (Buster). > * Java platform: > {noformat} > openjdk version "17" 2021-09-14 > OpenJDK Runtime Environment (build 17+35-2724) > OpenJDK 64-Bit Server VM (build 17+35-2724, mixed mode, sharing) > {noformat} > The JDK build has been downloaded directly from java.net. > I've also tested the IDE with JDK 16, using a build downloaded from Adoptium. > But the result has been the same. > Reporter: negora > Priority: Major > Attachments: 01-before-writing-text-block.png, > 02-after-writing-text-block.png > > > Hello: > I'm developing a Java project using Maven. If I write this configuration in > the {{pom.xml}} file: > {code:java} > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <version>3.8.1</version> > <configuration> > <release>17</release> > <compilerArgs> > <arg>-Xlint:all</arg> > </compilerArgs> > <showWarnings>true</showWarnings> > </configuration> > </plugin>{code} > And then, I write this text block in a Java source file and save it: > {code:java} > String sample = """ > """;{code} > The IDE freezes completely. I've to kill the process. > However, if I replace the "-Xlint:all" argument with this equivalent value: > {code:java} > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <version>3.8.1</version> > <configuration> > <release>17</release> > <compilerArgs> > <arg>-Xlint:cast,classfile,deprecation, > dep-ann,divzero,empty,fallthrough,finally,options, > overrides,path,processing,rawtypes,static, > try,unchecked,varargs</arg> > </compilerArgs> > <showWarnings>true</showWarnings> > </configuration> > </plugin>{code} > It works well. > It also works well if I remove the compiler arguments all together. > There is a visual defect that indicates me whether the IDE is going to freeze > or not before saving the file: The code that is after the text block loses > its highlighting and becomes white. Please, check the attached screenshots. > -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists