View Issue Details

IDProjectCategoryView StatusLast Update
0037384LazarusIDEpublic2020-07-20 14:57
ReporterMartin Friebe Assigned ToPascal Riekenberg  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Platform64bit IntelOSwin 10 
Product Version2.1 (SVN) 
Summary0037384: Codetool duplicates (self-concates) the name of certain identifiers for the hint.
DescriptionWhen 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.
TagsNo tags attached.
Fixed in Revision
LazTarget
Widgetset
Attached Files

Activities

Martin Friebe

2020-07-18 05:00

manager  

Issue History

Date Modified Username Field Change
2020-07-18 05:00 Martin Friebe New Issue
2020-07-18 05:00 Martin Friebe File Added: codetool_identname_duplicated.zip
2020-07-20 14:57 Pascal Riekenberg Assigned To => Pascal Riekenberg
2020-07-20 14:57 Pascal Riekenberg Status new => assigned