You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The project > Properties > Run panel, Arguments field values are ignored #3853
Java[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)kind:bugBug report or fixneeds:triageRequires attention from one of the committers
Hi - just tried that with NB13 - though I am printing System.err.println(Arrays.asList(args));, it works as expected. Tried with Java/maven application JDK11, and Java/ant application JDK17.
Could you please zip & attach your sample project sources ? There can be something screwed up with the settings.
Could you describe exactly the project creation steps (I must have done something differently as my projects were workign OK) ?
That's very strange !
I repeated all the process on a different Windows PC:
OS is Windows 10 PRO version 21H2 build 19044.1586
Java version "17.0.2" 2022-01-18 LTS
Netbeans About Panel reports:
Product Version: Apache NetBeans IDE 13
Java: 17.0.2; Java HotSpot(TM) 64-Bit Server VM 17.0.2+8-LTS-86
Runtime: Java(TM) SE Runtime Environment 17.0.2+8-LTS-86
System: Windows 10 version 10.0 running on amd64; Cp1252; it_IT (nb)
The Netbeans on the PC is a fresh installation of version 13 (Note: when requested I answered yes to the question: Do you want to import the previous NetBeans environment)
Detailed project creation step list:
New Project button selected
In the New Project panel I selected the "Java with Maven" category and "Java Application" project
The project name is "p", all other parameters left unchanged
I edited the P class as follow:
package it.horsa.devlab.p;
import java.util.Arrays;
/**
*
* @author Luca Buraggi
*/
public class P {
public static void main(String[] args) {
System.out.println("Size: " + args.length);
System.err.println(Arrays.asList(args));
}
}
In the project Properties Panel, Run category, I set the Arguments field = a0 a1 a2
As you can see the result is the same even if this is a different PC and a fresh installation
Do you think that my configuration could be screwed up when importing the previous Netbeans version environment during installation ?
This is my IDE log, showing some strange errors I can't explain. IDE.log.txt
Java[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)kind:bugBug report or fixneeds:triageRequires attention from one of the committers
Activity
sdedic commentedon Mar 26, 2022
Hi - just tried that with NB13 - though I am printing
System.err.println(Arrays.asList(args));, it works as expected. Tried with Java/maven application JDK11, and Java/ant application JDK17.Could you please zip & attach your sample project sources ? There can be something screwed up with the settings.
Could you describe exactly the project creation steps (I must have done something differently as my projects were workign OK) ?
lburaggi commentedon Mar 28, 2022
That's very strange !
I repeated all the process on a different Windows PC:
Product Version: Apache NetBeans IDE 13
Java: 17.0.2; Java HotSpot(TM) 64-Bit Server VM 17.0.2+8-LTS-86
Runtime: Java(TM) SE Runtime Environment 17.0.2+8-LTS-86
System: Windows 10 version 10.0 running on amd64; Cp1252; it_IT (nb)
The Netbeans on the PC is a fresh installation of version 13 (Note: when requested I answered yes to the question: Do you want to import the previous NetBeans environment)
Detailed project creation step list:
cd C:\Users\luca\Documents\NetBeansProjects\p; "JAVA_HOME=C:\\Program Files\\Java\\jdk-17.0.2" M2_HOME=C:\\bin\\maven cmd /c "\"C:\\bin\\maven\\bin\\mvn.cmd\" -Dexec.vmArgs= \"-Dexec.args=${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}\" \"-Dexec.executable=C:\\Program Files\\Java\\jdk-17.0.2\\bin\\java.exe\" -Dexec.mainClass=it.horsa.devlab.p.P -Dexec.classpathScope=runtime -Dexec.appArgs= \"-Dmaven.ext.class.path=C:\\Program Files\\NetBeans-13\\netbeans\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 process-classes org.codehaus.mojo:exec-maven-plugin:3.0.0:exec" Scanning for projects... Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/3.0.0/exec-maven-plugin-3.0.0.pom Progress (1): 2.7/14 kB Progress (1): 5.5/14 kB Progress (1): 8.2/14 kB Progress (1): 11/14 kB Progress (1): 14 kB Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/3.0.0/exec-maven-plugin-3.0.0.pom (14 kB at 28 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/50/mojo-parent-50.pom Progress (1): 2.7/34 kB Progress (1): 5.5/34 kB Progress (1): 8.2/34 kB Progress (1): 11/34 kB Progress (1): 14/34 kB Progress (1): 16/34 kB Progress (1): 19/34 kB Progress (1): 21/34 kB Progress (1): 24/34 kB Progress (1): 27/34 kB Progress (1): 30/34 kB Progress (1): 32/34 kB Progress (1): 34 kB Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/50/mojo-parent-50.pom (34 kB at 656 kB/s) -------------------------< it.horsa.devlab:p >-------------------------- Building p 1.0-SNAPSHOT --------------------------------[ jar ]--------------------------------- --- maven-resources-plugin:2.6:resources (default-resources) @ p --- Using 'UTF-8' encoding to copy filtered resources. skip non existing resourceDirectory C:\Users\luca\Documents\NetBeansProjects\p\src\main\resources --- maven-compiler-plugin:3.1:compile (default-compile) @ p --- Changes detected - recompiling the module! Compiling 1 source file to C:\Users\luca\Documents\NetBeansProjects\p\target\classes --- exec-maven-plugin:3.0.0:exec (default-cli) @ p --- Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-artifact-transfer/0.10.1/maven-artifact-transfer-0.10.1.pom Progress (1): 2.7/11 kB Progress (1): 5.5/11 kB Progress (1): 7.9/11 kB Progress (1): 11/11 kB Progress (1): 11 kB Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-artifact-transfer/0.10.1/maven-artifact-transfer-0.10.1.pom (11 kB at 239 kB/s) Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-artifact-transfer/0.10.1/maven-artifact-transfer-0.10.1.jar Progress (1): 4.1/128 kB Progress (1): 8.2/128 kB Progress (1): 12/128 kB Progress (1): 16/128 kB Progress (1): 20/128 kB Progress (1): 24/128 kB Progress (1): 28/128 kB Progress (1): 32/128 kB Progress (1): 36/128 kB Progress (1): 40/128 kB Progress (1): 45/128 kB Progress (1): 49/128 kB Progress (1): 53/128 kB Progress (1): 57/128 kB Progress (1): 61/128 kB Progress (1): 65/128 kB Progress (1): 69/128 kB Progress (1): 73/128 kB Progress (1): 77/128 kB Progress (1): 81/128 kB Progress (1): 85/128 kB Progress (1): 90/128 kB Progress (1): 94/128 kB Progress (1): 98/128 kB Progress (1): 102/128 kB Progress (1): 106/128 kB Progress (1): 110/128 kB Progress (1): 114/128 kB Progress (1): 118/128 kB Progress (1): 122/128 kB Progress (1): 126/128 kB Progress (1): 128 kB Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-artifact-transfer/0.10.1/maven-artifact-transfer-0.10.1.jar (128 kB at 1.9 MB/s) Size: 0 [] ------------------------------------------------------------------------ BUILD SUCCESS ------------------------------------------------------------------------ Total time: 4.735 s Finished at: 2022-03-28T16:01:51+02:00 ------------------------------------------------------------------------As you can see the result is the same even if this is a different PC and a fresh installation
Do you think that my configuration could be screwed up when importing the previous Netbeans version environment during installation ?
This is my IDE log, showing some strange errors I can't explain.
IDE.log.txt
lburaggi commentedon Mar 28, 2022
Looking at the IDE log I noticed that it seems there is something wrong in the file nbactions.xml. So I attach the file here:
nbactions.xml.txt
lburaggi commentedon Mar 28, 2022
I also executed this test:
sdedic commentedon Mar 28, 2022
IDE.log is here - good ! Could you also please zip & attach the faulty sample project, just in case ?
lburaggi commentedon Mar 28, 2022
p.zip
Here is the project