Editor annotations makes harder to set breakpoints.

View: New views
3 Messages — Rating Filter:   Alert me  

Editor annotations makes harder to set breakpoints.

by Mihai Vasilache :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Anyone noticed that if in the java editor you have some annotations icons in the left side (where the line numbers are displayed) you cannot set a breakpoint by clicking on the line number...

An example of such an annotation is "Fixable hint" - a yellow bulb. My code is full of such yellow bulbs so my only option is to set the breakpoint from the menu: Debug > New Breakpoit > select "Line" option > OK.

For exampe the folowing code:

em.createQuery("delete " +
                " from NodeViewItem nodeViewItems " +
                " where nodeViewItems.parentNodeView.id = :nodeViewID")

has bulbs on each line proposing me : "Assign Return Value To The New Variable".

Mihai

Re: Editor annotations makes harder to set breakpoints.

by Melongo Annabel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Mihai,
Can you please file this at: http://qa.netbeans.org/  Under "Report A Problem"? Thanks.


From: Mihai Vasilache <mihai_vasilache@...>
To: nbusers@...
Sent: Friday, July 3, 2009 7:31:39 AM
Subject: [nbusers] Editor annotations makes harder to set breakpoints.

Anyone noticed that if in the java editor you have some annotations icons in the left side (where the line numbers are displayed) you cannot set a breakpoint by clicking on the line number...

An example of such an annotation is "Fixable hint" - a yellow bulb. My code is full of such yellow bulbs so my only option is to set the breakpoint from the menu: Debug > New Breakpoit > select "Line" option > OK.

For exampe the folowing code:

em.createQuery("delete " +
                " from NodeViewItem nodeViewItems " +
                " where nodeViewItems.parentNodeView.id = :nodeViewID")

has bulbs on each line proposing me : "Assign Return Value To The New Variable".

Mihai


Re: Editor annotations makes harder to set breakpoints.

by Thomas Wolf-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This usability problem has been part of Netbeans ever since I can
remember (at least 3-4 years).  I always ascribed it to me just not
being accurate enough or not knowing the "trick" (or maybe I was just
too lazy to file a bug :-}  Anyway, since the problem existed for so
long, I figured there probably already is a bug for it.  A quick search
revealed at least two:

 From 2007: http://www.netbeans.org/issues/show_bug.cgi?id=100458
 From 2008: http://www.netbeans.org/issues/show_bug.cgi?id=140449
possibly this one from 2009:
http://www.netbeans.org/issues/show_bug.cgi?id=156257

None of these have votes on them.  I just added mine to the first one -
if others think this should be fixed, please add your vote to the first
one as well.
tom


On 07/06/2009 07:29 PM, Melongo Annabel wrote:

> Mihai,
> Can you please file this at: http://qa.netbeans.org/  Under "Report A
> Problem"? Thanks.
>
> ------------------------------------------------------------------------
> *From:* Mihai Vasilache <mihai_vasilache@...>
> *To:* nbusers@...
> *Sent:* Friday, July 3, 2009 7:31:39 AM
> *Subject:* [nbusers] Editor annotations makes harder to set breakpoints.
>
> Anyone noticed that if in the java editor you have some annotations
> icons in the left side (where the line numbers are displayed) you
> cannot set a breakpoint by clicking on the line number...
>
> An example of such an annotation is "Fixable hint" - a yellow bulb. My
> code is full of such yellow bulbs so my only option is to set the
> breakpoint from the menu: Debug > New Breakpoit > select "Line" option
> > OK.
>
> For exampe the folowing code:
>
> em.createQuery("delete " +
>                 " from NodeViewItem nodeViewItems " +
>                 " where nodeViewItems.parentNodeView.id
> <http://nodeViewItems.parentNodeView.id> = :nodeViewID")
>
> has bulbs on each line proposing me : "Assign Return Value To The New
> Variable".
>
> Mihai
>
>