[jira] [Commented] (NETBEANS-1817) exception thrown on startup

2018-12-24 Thread Pieter van den Hombergh (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16728283#comment-16728283
 ] 

Pieter van den Hombergh commented on NETBEANS-1817:
---

I might consider using maven. I think my collaegues would rather stick with 
NB8.2 as it is. I am the only one moving forward in my team, which might not be 
a good trait after all. Having maven based projects makes the project more IDE 
agnostic, which may be considered good.

> exception thrown on startup
> ---
>
> Key: NETBEANS-1817
> URL: https://issues.apache.org/jira/browse/NETBEANS-1817
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Pieter van den Hombergh
>Priority: Major
>
> see report log below



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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



[jira] [Commented] (NETBEANS-1817) exception thrown on startup

2018-12-24 Thread Geertjan Wielenga (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16728270#comment-16728270
 ] 

Geertjan Wielenga commented on NETBEANS-1817:
-

I understand all this, but this is very late in the game to come up with 
solutions to this for Apache NetBeans 10. (In fact, that's not possible at all 
anymore for Apache NetBeans 10) This should all have been discovered during the 
NetCAT process and we should update the NetCAT specs accordingly. I believe the 
JUnit 5 support indeed is focused on Maven and not on Ant. I'd consider using 
Maven in the classroom, though I'm sure you have very valid reasons for not 
having gone that route. Together with John McDonnell (who created the JUnit 5 
Maven integration) you could look at what needs to be done to support JUnit 5 
for Ant, for Apache NetBeans 11 (roughly scheduled to be released with JDK 12 
in March 2019).

> exception thrown on startup
> ---
>
> Key: NETBEANS-1817
> URL: https://issues.apache.org/jira/browse/NETBEANS-1817
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Pieter van den Hombergh
>Priority: Major
>
> see report log below



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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



[jira] [Commented] (NETBEANS-1817) exception thrown on startup

2018-12-24 Thread Pieter van den Hombergh (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16728264#comment-16728264
 ] 

Pieter van den Hombergh commented on NETBEANS-1817:
---

Ant based project: Changing the library set back to Jnunt 4.12 and changing the 
imports and annotation accoridingly makes it into a project that can be tested, 
both on the project level and on the test-class level. This makes me infer that 
the old ant-based test infrastructure is still in place. 
{color:#14892c}OK{color}

The{color:#33} annoying part{color} lies in the fact that the test 
templates expanded from new-> unit-test->junit produce junit 5 code and 
imports, which are then not usable. This makes a very bad experience and is not 
acceptable when teaching novices to create unit tests. First steps should be 
easy, not hard. {color:#d04437}NOT OK{color}

It would help if the test wizard would allow selection between junit 4 and 
junit 5, like it has been possible (in some previous version) to choose between 
junit 3.8 and junit 4. Then I would have an easy transition from NB 8.2 to 
NB10, keeping my old (junit 4) tests and allow a more gradual transition to the 
newer stuff (Java 11, modules, JUnit 5 etc). I do welcome the addition of Junit 
5, which is an area in which nb has been lagging. Having it only in maven based 
projects is ok for the time being, as it also works as advertised and show with 
NetCat. I rand those tests myself, and was pleased and surprised at the same 
time.

I might be thinking to simple here, but I surmise that the build files 
(build.xml, build-impl.xml, build.properties) are also generated form 
templates. It might suffice to add the proper code (and conditions) to the ant 
files (which are big beasts) and add the odd jar file, needed for ant to have a 
working runner. From the junit 5 tutorial website 
[https://junit.org/junit5/docs/current/user-guide/#running-tests-build-ant] I 
infer that it might be as simple as adding a different runner. I might find 
some spare time between the holiday obligations to experiment with the build 
file to first make it work from the command line and the proper libraries/jars 
and then see how this can be integrated into NB10.

 

> exception thrown on startup
> ---
>
> Key: NETBEANS-1817
> URL: https://issues.apache.org/jira/browse/NETBEANS-1817
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Pieter van den Hombergh
>Priority: Major
>
> see report log below



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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



[jira] [Commented] (NETBEANS-1817) exception thrown on startup

2018-12-23 Thread Geertjan Wielenga (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16728175#comment-16728175
 ] 

Geertjan Wielenga commented on NETBEANS-1817:
-

That would make sense. Pieter, can you check whether JUnit 4 works with your 
scenario in NB 10 and could you use that instead of JUnit 5 (or switch to Maven 
in your class)? We need to check with John McDonnell who created the JUnit 5 
support for Maven in NB 10 and see what it would take to support Ant, while we 
also need to update the NetCAT test specs for JUnit to include Ant.

> exception thrown on startup
> ---
>
> Key: NETBEANS-1817
> URL: https://issues.apache.org/jira/browse/NETBEANS-1817
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Pieter van den Hombergh
>Priority: Major
>
> see report log below



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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



[jira] [Commented] (NETBEANS-1817) exception thrown on startup

2018-12-23 Thread Laszlo Kishalmi (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16728157#comment-16728157
 ] 

Laszlo Kishalmi commented on NETBEANS-1817:
---

Well, AFAIK JUnit 5 is not really supported with Ant based projects.

> exception thrown on startup
> ---
>
> Key: NETBEANS-1817
> URL: https://issues.apache.org/jira/browse/NETBEANS-1817
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Pieter van den Hombergh
>Priority: Major
>
> see report log below



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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



[jira] [Commented] (NETBEANS-1817) exception thrown on startup

2018-12-23 Thread Pieter van den Hombergh (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16728017#comment-16728017
 ] 

Pieter van den Hombergh commented on NETBEANS-1817:
---

Although not quite sure, I recall that net at uses maven, not ant for the unit 
test test. I recall that I accepted that. The missing part is in the ant based 
infrastructure, I presume.

> exception thrown on startup
> ---
>
> Key: NETBEANS-1817
> URL: https://issues.apache.org/jira/browse/NETBEANS-1817
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Pieter van den Hombergh
>Priority: Major
>
> see report log below



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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



[jira] [Commented] (NETBEANS-1817) exception thrown on startup

2018-12-23 Thread Geertjan Wielenga (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16727997#comment-16727997
 ] 

Geertjan Wielenga commented on NETBEANS-1817:
-

Fantastic steps! Will try these, tonight or tomorrow, though if this really is 
a bug, it should have been caught during NetCAT.

> exception thrown on startup
> ---
>
> Key: NETBEANS-1817
> URL: https://issues.apache.org/jira/browse/NETBEANS-1817
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Pieter van den Hombergh
>Priority: Major
>
> see report log below



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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



[jira] [Commented] (NETBEANS-1817) exception thrown on startup

2018-12-23 Thread Pieter van den Hombergh (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16727990#comment-16727990
 ] 

Pieter van den Hombergh commented on NETBEANS-1817:
---

# Unzip incubating-netbeans-10.0-vc5-bin.zip, results in netbeans/ folder
 # rename the folder (and move) to /usr/local/netbeans-10.0-vc5
 # modify /usr/local/netbeans-10-vc1/etc/netbeans.conf to set netbeans_jdkhome 
to jdk11 as innetbeans_jdkhome="/usr/lib/jvm/jdk-11.0.1"
 # start netbeans with commandline /usr/local/netbeans-10-vc5/bin/netbeans
 # create a new java library project, say nb10junit5
 # Create a unit test in a package. Like t.PTest.java
 # Add one failing test. Just add a line to have it fail like 
*fail("intentionally broken");*
 # **Run the test file. Right-click the test file and invoke test .This shows 
in the output window the messages shown 
earlier./home/hom/.cache/netbeans/10.0/executor-snippets/junit.xml:184: The 
following error occurred while executing this line:
/home/hom/.cache/netbeans/10.0/executor-snippets/junit.xml:128: The  
or  for  must include junit.jar if not in Ant's own classpath

> exception thrown on startup
> ---
>
> Key: NETBEANS-1817
> URL: https://issues.apache.org/jira/browse/NETBEANS-1817
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Pieter van den Hombergh
>Priority: Major
>
> see report log below



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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



[jira] [Commented] (NETBEANS-1817) exception thrown on startup

2018-12-23 Thread Pieter van den Hombergh (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16727975#comment-16727975
 ] 

Pieter van den Hombergh commented on NETBEANS-1817:
---

Moments have passed.

Result: same behaviour. JUnit 5 tests are generated (and added a proper test) 
however, netbeans+ant insist on be doing something that should have been done 
by the installation or the template expansion. Message is 

/home/hom/.cache/netbeans/10.0/executor-snippets/junit.xml:184: The following 
error occurred while executing this line:
/home/hom/.cache/netbeans/10.0/executor-snippets/junit.xml:128: The  
or  for  must include junit.jar if not in Ant's own classpath

 

I also tried to have NB10 generate tests to an existing class (My earlier 
experiments started with a test file because we are into TDD nowadays),

but the result is still the same. BTW, I tried this with NB9 (on top of Java 9) 
 and as I recall that did not have this issue. Could restest that again to to 
be sure.

 

> exception thrown on startup
> ---
>
> Key: NETBEANS-1817
> URL: https://issues.apache.org/jira/browse/NETBEANS-1817
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Pieter van den Hombergh
>Priority: Major
>
> see report log below



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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



[jira] [Commented] (NETBEANS-1817) exception thrown on startup

2018-12-23 Thread Pieter van den Hombergh (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16727976#comment-16727976
 ] 

Pieter van den Hombergh commented on NETBEANS-1817:
---

Tried with NB9. That version generates junit 4 type tests with java 9.

> exception thrown on startup
> ---
>
> Key: NETBEANS-1817
> URL: https://issues.apache.org/jira/browse/NETBEANS-1817
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Pieter van den Hombergh
>Priority: Major
>
> see report log below



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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



[jira] [Commented] (NETBEANS-1817) exception thrown on startup

2018-12-23 Thread Pieter van den Hombergh (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16727967#comment-16727967
 ] 

Pieter van den Hombergh commented on NETBEANS-1817:
---

Did that. As in moved the ~/.netbeans/10.0 folder aside so netbeans sees a 
fresh stuff.

I can do it with a fresh user too, because there may be some caching involved.

Give me a moment. 

> exception thrown on startup
> ---
>
> Key: NETBEANS-1817
> URL: https://issues.apache.org/jira/browse/NETBEANS-1817
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Pieter van den Hombergh
>Priority: Major
>
> see report log below



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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



[jira] [Commented] (NETBEANS-1817) exception thrown on startup

2018-12-23 Thread Geertjan Wielenga (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16727964#comment-16727964
 ] 

Geertjan Wielenga commented on NETBEANS-1817:
-

Can you start with a fresh user directory?

> exception thrown on startup
> ---
>
> Key: NETBEANS-1817
> URL: https://issues.apache.org/jira/browse/NETBEANS-1817
> Project: NetBeans
>  Issue Type: Bug
>Reporter: Pieter van den Hombergh
>Priority: Major
>
> see report log below



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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