Re: NetBeans 9.0 - Can't debug a single test method with migrated project

2020-06-04 Thread Juan Algaba
So, I tested again with 11.3 and find that
* Problem still happens with my existing project
* Problem doesn't happen if creating new Ant Web App project
* The problem is NOT in build-impl.xml (I diffed the working project
one and mine, and sans some small unrelated differences, they're the
same! including not having a "debug-single-method")
* I tried checking what target Netbeans is running in the working
project, but it must use some black magic because the "Select
target(s) to run" field is actually empty when clicking the "Re-run
with different parameters" button, In "Special Ant properties" I see a
parameter called "nb.internal.action.name=debug.single.method" so my
guess Is that netbeans injects the "debug-single-method" or redirects
somehow to the "debug-test-method" that does exist
* When clicking "Re-run with different parameters" in my non-working
project it does actually have "debug-single-method" in the "Select
target(s) to run" field, and the "Special Ant properties" are fewer
and different

But to anyone having this problem, the workaround is very easy, just
use Thomas' workaround
> For the time being I fixed this by customizing (the project specifict) 
> build.xml by adding the missing target and make it depend on the correct one:
> 
> Thomas

But I do want to note that there's a mistake in the "depends" part,
the correct one is:


Otherwise the method wouldn't stop at breakpoints.

On Tue, Dec 4, 2018 at 12:04 AM Juan Algaba  wrote:
>
> @Dell I reproduced the issue with 10-vc4 so I can confirm that it still 
> exists.
>
> @emi regarding the issue I mentioned from the Jira link, I tested with
> netbeans 9/10 with both jdk 10 and 8 and had the exact same issue. I
> also tested coolbeans with jdk 10 and 8 and it works fine, so I don't
> think it's related to the jdk, also that issue seems to be with the
> IDE itself because it shows up silently as an IDE notification with a
> red ballon, it doesn't even look like ant does anything at all before
> getting the error, I'm starting to think it's an issue unrelated to
> this email thread so I think it'd be best if I send you a separate
> email about it (since it's somewhat related to coolbeans).
>
> On the other hand the main issue Thomas and Dell mention shows up in
> the main build output window, so it's more of a build error. Surely
> there must be something in the build-impl.xml, project.properties, or
> some nb 8.2 configuration file that nb 9/10 doesn't like. I'm gonna
> try Dell's workaround tomorrow and see if:
> 1) the issue gets resolved on my end as well
> 2) exactly what change in what configuration file triggers the fix (if
> indeed the issue is related to some config file)
>
> On Mon, Dec 3, 2018 at 12:39 PM Dell Green
>  wrote:
> >
> > I had the same issues opening projects from 8.2 in 9.0.
> >
> > I noticed this after converting 8 projects! so had to go back through
> > them creating a new netbeans project for each in Netbeans 9
> >
> > and then copy all the sources files and git files from the netbeans 8.2
> > project into the respective netbeans 9 project.
> >
> > The debugging methods then worked again for me.
> >
> > I haven't tried  opening 8.2 projects in 10-vc3 to see if the problem
> > still exists.
> >
> >
> > On 03/12/2018 07:31, Juan Algaba wrote:
> > > Actually, I have the exact same issue, I just tried "Debug Focused
> > > Test Method" on my ant web project and got error:
> > >
> > > Target "debug-single-method" does not exist in the project "sia".
> > >
> > > I hadn't noticed because I usually use "Run Focused Test Method" and
> > > that one works fine. My project was also migrated from 8.2 a while
> > > ago.
> > >
> > > The issue can be reproduced by creating a new ant web application
> > > using NB 8.2, testing a class, and then opening it with NB 10 and
> > > trying to test again with "Debug Focused Test Method".
> > >
> > > Next time I have some free time I'll do more testing to see if I can
> > > pinpoint exactly what's going on.
> > >
> > > On Tue, Nov 27, 2018 at 2:56 PM Juan Algaba  wrote:
> > >> A similar issue happened to me when migrating to netbeans 9.0 and
> > >> continues on in nb 10, details here:
> > >> https://issues.apache.org/jira/browse/NETBEANS-1661
> > >>
> > >> Strangely when I use Coolbeans (http://coolbeans.xyz/) which I believe
> > >> is based on nb 10 the issue is resolved, which is my current
> > >> workaround.
> > >>
> > >>
> > >> --
> > >>  Juan Algaba
> > >
> > >
> >
> > -
> > 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
> >
>
>
> --
>
> Juan Algaba



-- 
Juan Algaba

-
To unsubscribe, e-mail: 

Re: NetBeans 9.0 - Can't debug a single test method with migrated project

2018-11-27 Thread Thomas Kellerer

Thomas Kellerer schrieb am 08.03.2018 um 21:26:

I have an Ant based project that was migrated from 8.2 (i.e. I simply opened 
the project with NetBeans 9.0)

When I try to use "Debug Focused Test Method" I get an error:

    Target "debug-single-method" does not exist in the project "SQLWorkbench".

When I create the project from scratch within NetBeans 9.0 this works without 
problems

Thomas


This happened again with NetBeans 10.0 (vc4)

But I don't understand where this comes from.

The build-impl.xml only has a target "debug-test-method" (even one created from scratch) 
but there is no target "debug-single-method" anywhere in the ant files.

I did a grep through the NetBeans source and the class J2SEActionProvider uses 
"debug-single-method" to register the target(?) for 
SingleMethod.COMMAND_DEBUG_SINGLE_METHOD.

AntTestNGSupport uses the correct target "debug-test-method", but my project is 
using JUnit.

As neither the generated build-impl.xml nor any of the files of the NetBeans source 
contain a target named "debug-single-method" I am inclined to say this is a bug 
that was introduced in 9.0.

For the time being I fixed this by customizing (the project specifict) 
build.xml by adding the missing target and make it depend on the correct one:



Thomas

-
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: NetBeans 9.0 - Can't debug a single test method with migrated project

2018-03-11 Thread Emilian Bold
You should report this on JIRA 
https://issues.apache.org/jira/projects/NETBEANS/summary

Could you just compare / diff the two folders and see what changed? I guess the 
build.xml files are slightly different (for some reason).

--emi

‐‐‐ Original Message ‐‐‐

On 8 March 2018 10:26 PM, Thomas Kellerer  wrote:

> I have an Ant based project that was migrated from 8.2 (i.e. I simply opened 
> the project with NetBeans 9.0)
> 
> When I try to use "Debug Focused Test Method" I get an error:
> 
> Target "debug-single-method" does not exist in the project "SQLWorkbench".
> 
> When I create the project from scratch within NetBeans 9.0 this works without 
> problems
> 
> Thomas
> 
> 
> --
> 
> 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



NetBeans 9.0 - Can't debug a single test method with migrated project

2018-03-08 Thread Thomas Kellerer

I have an Ant based project that was migrated from 8.2 (i.e. I simply opened 
the project with NetBeans 9.0)

When I try to use "Debug Focused Test Method" I get an error:

   Target "debug-single-method" does not exist in the project "SQLWorkbench".

When I create the project from scratch within NetBeans 9.0 this works without 
problems

Thomas

-
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