This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 166207 - String literals, comments and types are evaluated in tooltips
Summary: String literals, comments and types are evaluated in tooltips
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.2
Hardware: All All
: P2 blocker (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-28 17:34 UTC by Alexander Pepin
Modified: 2012-02-17 09:47 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2009-05-28 17:34:17 UTC
Now gdb-lite is trying to evaluate string/character literals in tooltips. It mostly has no sense.

Steps to reproduce:
- create Welcome project
- do step into
- set focus to Editor and move a mouse cursor over "Welcome..."
Results: Tooltip shows "No symbol \"Welcome\" in current context" for "Welcome" and "A syntax error in expression, near
`.'." for "...".
If there is any localized word like "Саша" than it produces "Argument required (expression to compute)." We get the same
for "Саша" in Watches.
Comment 1 Vladimir Voskresensky 2009-05-28 18:03:22 UTC
The same issue for comments.
Gdb should skip areas under offset which are comments, char/string literals (and probably numeric literals as well),
because it makes no sence
Comment 2 Alexander Pepin 2009-05-28 19:01:45 UTC
the same about variable types e.g. std::string
and functions (may be a feature)
Comment 3 Egor Ushakov 2009-05-29 11:05:23 UTC
"Argument required (expression to compute)." issue fixed in:
http://hg.netbeans.org/cnd-main/rev/8f66aaa3faa8
Comment 4 Egor Ushakov 2010-04-16 11:47:38 UTC
fixed in:
http://hg.netbeans.org/cnd-main/rev/32c767df33bf
now skipping comments, strings, numbers, operators, whitespaces and built in types.
types that not built in like string will not be skipped for now.
Comment 5 Quality Engineering 2010-04-17 08:12:30 UTC
Integrated into 'main-golden', will be available in build *201004170515* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/32c767df33bf
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #166207 (String literals, comments and types are evaluated in tooltips)
Comment 6 Vladimir Voskresensky 2011-12-27 11:59:56 UTC
I again see tooltip evaluations for comments
Comment 7 Vladimir Voskresensky 2011-12-27 12:13:36 UTC
This behavior freeze debugger till error message is not displayed (which takes about 20 secs).
Errors are like:
466^error,msg="No symbol \"that\" in current context"
Comment 8 Egor Ushakov 2011-12-27 12:34:32 UTC
was broken during the transition to the new infrastructure
Comment 9 Alexander Pepin 2011-12-27 13:05:04 UTC
A corresponding test should be added to gdb test suite.
Comment 10 Egor Ushakov 2011-12-27 13:12:23 UTC
fixed in:
http://hg.netbeans.org/cnd-main/rev/05bdeaa3659f
Comment 11 soldatov 2011-12-28 08:03:09 UTC
(In reply to comment #7)
> This behavior freeze debugger till error message is not displayed (which takes
> about 20 secs).
> Errors are like:
> 466^error,msg="No symbol \"that\" in current context"
Is it equal "that" variable in Watches stops debugger on 20 seconds?
Comment 12 Quality Engineering 2011-12-28 15:46:39 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/05bdeaa3659f
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #166207 (String literals, comments and types are evaluated in tooltips)
Comment 13 soldatov 2012-01-12 13:58:48 UTC
verified in NetBeans IDE Dev (Build 201201110601)
Comment 14 Egor Ushakov 2012-01-16 10:23:37 UTC
extra fix after review:
http://hg.netbeans.org/cnd-main/rev/e621d9b6aea7
Comment 15 soldatov 2012-01-17 08:24:40 UTC
Verified in cnd-build-6539-on-20120117 build
Comment 16 Egor Ushakov 2012-01-17 09:22:26 UTC
fix integrated into release71_fixes:
http://hg.netbeans.org/releases/rev/d178e855a936
Comment 17 Quality Engineering 2012-01-17 16:12:19 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/e621d9b6aea7
User: Egor Ushakov <gorrus@netbeans.org>
Log: extra fix for #166207 (String literals, comments and types are evaluated in tooltips)
Comment 18 soldatov 2012-02-17 07:03:44 UTC
verified in NetBeans IDE 7.1 (Build 201112071828)
Comment 19 soldatov 2012-02-17 09:47:04 UTC
Verified in NetBeans 7.1 with updates from 201202141941