View Issue Details

IDProjectCategoryView StatusLast Update
0034448LazarusIDEpublic2021-05-15 20:29
ReporterBart Broersma Assigned ToMattias Gaertner  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Platformi386OSWindows 
Product Version2.1 (SVN) 
Summary0034448: Erroneous CodeTools error when typing a floating point value
DescriptionIf you have Identifier completions set up to invoke itself automatically after typing a dot, CodeTools will give an error if you type a floating point value (and wait a bit after typing the decimalseparator).

Codetools, Errors: 1
test.pas(4,9) Error: illegal qualifier . found
Steps To Reproducevar
  d: double;
begin
  d := 1|
end.

| marks the caret position.
Type a period and wait a little.
TagsNo tags attached.
Fixed in Revision
LazTarget-
Widgetset
Attached Files

Relationships

has duplicate 0038892 resolvedBart Broersma Code completion box pop up when type in float number 

Activities

Bart Broersma

2018-11-01 22:00

developer   ~0111733

Possibly related: an error also occurs when you type the period after the last end of a program.

Bart Broersma

2019-09-27 16:55

developer   ~0118176

Last edited: 2019-09-27 16:59

View 2 revisions

The exception is raised in (nested) procedure ResolvePoint, appr. line 9695 in finddeclarationtool.pas unit.
At this time ExprType.Context.Node=nil and ExprType.Desc=xtNone
(This is the case for the error raised as in the example).

Typing a dot after the closing "end" of a unit or program gives "Error: cursor pos outside of code".
This exception is raised in TPascalParserTool.BuildTreeAndGetCleanPos, appr. line 2064:
  // find the CursorPos in cleaned source
  Dummy:=CaretToCleanPos(CursorPos, CleanCursorPos);
  if (Dummy<>0) and (Dummy<>-1) then begin
    MoveCursorToCleanPos(1);
    RaiseException(20170421194754,ctsCursorPosOutsideOfCode,true);
  end;

Issue History

Date Modified Username Field Change
2018-10-21 13:43 Bart Broersma New Issue
2018-11-01 22:00 Bart Broersma Note Added: 0111733
2019-04-28 11:49 Bart Broersma Assigned To => Mattias Gaertner
2019-04-28 11:49 Bart Broersma Status new => assigned
2019-09-27 16:55 Bart Broersma Note Added: 0118176
2019-09-27 16:59 Bart Broersma Note Edited: 0118176 View Revisions
2021-05-15 20:29 Bart Broersma Relationship added has duplicate 0038892