View Issue Details

IDProjectCategoryView StatusLast Update
0036099LazarusIDEpublic2021-04-22 12:34
Reportereugeneloza Assigned ToPascal Riekenberg  
Status resolvedResolutionno change required 
PlatformAMD 64OSDebian 
Product Version2.1 (SVN) 
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):
  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
  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
TagsNo tags attached.
Fixed in Revision
Attached Files


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. 
related to 0038554 resolvedMattias Gaertner Codetool does not handle "var x deprecated" 



2019-09-21 09:51


project1.tar.gz (734 bytes)


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.

Pascal Riekenberg

2021-04-22 12:34

developer   ~0130510

This seems to be fixed in recent trunk. Please check and close or reopen.

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
2020-07-30 09:37 Pascal Riekenberg Assigned To => Pascal Riekenberg
2020-07-30 09:37 Pascal Riekenberg Status new => assigned
2021-02-28 21:53 Juha Manninen Relationship added related to 0038554
2021-04-22 12:34 Pascal Riekenberg Status assigned => resolved
2021-04-22 12:34 Pascal Riekenberg Resolution open => no change required
2021-04-22 12:34 Pascal Riekenberg LazTarget => -
2021-04-22 12:34 Pascal Riekenberg Note Added: 0130510