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.
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.
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
the same about variable types e.g. std::string and functions (may be a feature)
"Argument required (expression to compute)." issue fixed in: http://hg.netbeans.org/cnd-main/rev/8f66aaa3faa8
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.
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)
I again see tooltip evaluations for comments
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"
was broken during the transition to the new infrastructure
A corresponding test should be added to gdb test suite.
fixed in: http://hg.netbeans.org/cnd-main/rev/05bdeaa3659f
(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?
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)
verified in NetBeans IDE Dev (Build 201201110601)
extra fix after review: http://hg.netbeans.org/cnd-main/rev/e621d9b6aea7
Verified in cnd-build-6539-on-20120117 build
fix integrated into release71_fixes: http://hg.netbeans.org/releases/rev/d178e855a936
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)
verified in NetBeans IDE 7.1 (Build 201112071828)
Verified in NetBeans 7.1 with updates from 201202141941