Codetool duplicates (self-concates) the name of certain identifiers for the hint.
Original Reporter info from Mantis: Martin @martin_frb
-
Reporter name: Martin Friebe
Original Reporter info from Mantis: Martin @martin_frb
- Reporter name: Martin Friebe
Description:
When doing a hint during debug the name of certain identifiers is duplicated.
The source contains RealCount, but codetools makes it RealCountRealCount
In this case its the name of a overriden procedure.
function TSourceEditor.GetOperandFromCaret(const ACaretPos: TPoint): String;
begin
UpdateCodeBuffer;
if not CodeToolBoss.GetExpandedOperand(CodeBuffer, ACaretPos.X, ACaretPos.Y,
Result, False)
The last line returns the messed up name.
function TFindDeclarationTool.GetExpandedOperand(const CursorPos: TCodeXYPosition;
out Operand: string; ResolveProperty: Boolean): Boolean;
...
if FindDeclarationOfIdentAtParam(Params) then
begin
Operand := Params.ExtractedOperand;
Result := Operand <> '';
end;
Params.ExtractedOperand has the duplicated name.
Attached xml can be loaded in the: View > Debug windows > History
Switching to the "snapshots" (2nd camera in toolbar), contains 2 entries.
The entries are the stack to each of the 2 locations where the name is added.
EAch entry can be activated by double click => the stack will be in the stack window.
Mantis conversion info:
- Mantis ID: 37384
- Assignee Gitlab user: @PascalRiekenberg
- Assignee Mantis username: PascalR
- Assignee name: Pascal Riekenberg
- OS: win 10
- OS Build: 10
- Build: 63593
- Platform: 64bit Intel
- Version: 2.1 (SVN)