View Issue Details

IDProjectCategoryView StatusLast Update
0036099LazarusIDEpublic2019-12-14 15:40
ReportereugenelozaAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformAMD 64OSDebianOS Version9.9 64bit
Product Version2.1 (SVN)Product Build61908 
Target VersionFixed in Version 
Summary0036099: "Error: expected ;, but experimental found" for initialized variables
DescriptionCode completion/hints do not work with `experimental` keyword for initialized variables. If any unit in Uses section has an initialized variable declared as `experimental` all variables stop being recognized - hints for variables/methods are not shown, ctrl+click to jump to declaration doesn't work, and all the code will be treated as having a parsing error in Editor. The program, however, compiles and runs without any issues.
Steps To Reproduce1. File -> New -> Simple Program
2. Add (or just use the sample project attached):
var
  E: Boolean = false experimental;
3. Try to write something in the code below accessing variables, like `WriteLn(E)` or `E.` - and the error will pop up in Messages; Hints or code completion won't be displayed, ctrl+click won't work anymore.

Note, that
var
  E: Boolean experimental;
works without any issues. The error concerns only initialized variables of any type (tested with `Boolean`, `Single`, `Integer`, `String`).
Additional InformationFree Pascal Compiler version 3.3.1-r43045 [2019/09/21] for x86_64
Might be related to https://bugs.freepascal.org/view.php?id=27275
TagsNo tags attached.
Fixed in Revision
LazTarget
Widgetset
Attached Files

Relationships

related to 0027275 resolvedJuha Manninen Keyword "experimental" prevents JEDI Code Format to work 
related to 0036440 closedMattias Gaertner [Codetools] Dropping TExtendedTabControl component to form editor doesn't add necessary code lines. 

Activities

eugeneloza

2019-09-21 09:51

reporter  

project1.tar.gz (734 bytes)

eugeneloza

2019-09-21 11:09

reporter   ~0118146

The error can be reproduced with the same Lazarus IDE version and Free Pascal Compiler version 3.0.4-r37149 [2019/09/21] for x86_64

Juha Manninen

2019-09-23 16:43

developer   ~0118153

The FPC version makes no difference because Lazarus uses Codetools for parsing Pascal sources.

Issue History

Date Modified Username Field Change
2019-09-21 09:51 eugeneloza New Issue
2019-09-21 09:51 eugeneloza File Added: project1.tar.gz
2019-09-21 11:09 eugeneloza Note Added: 0118146
2019-09-21 15:38 Juha Manninen Relationship added related to 0027275
2019-09-23 16:43 Juha Manninen Note Added: 0118153
2019-12-14 15:40 Juha Manninen Relationship added related to 0036440