View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0036099 | Lazarus | IDE | public | 2019-09-21 09:51 | 2021-02-28 21:53 |
Reporter | eugeneloza | Assigned To | Pascal Riekenberg | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | assigned | Resolution | open | ||
Platform | AMD 64 | OS | Debian | ||
Product Version | 2.1 (SVN) | ||||
Summary | 0036099: "Error: expected ;, but experimental found" for initialized variables | ||||
Description | Code 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 Reproduce | 1. 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 Information | Free 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 | ||||
Tags | No tags attached. | ||||
Fixed in Revision | |||||
LazTarget | |||||
Widgetset | |||||
Attached Files |
|
related to | 0027275 | resolved | Juha Manninen | Keyword "experimental" prevents JEDI Code Format to work |
related to | 0036440 | closed | Mattias Gaertner | [Codetools] Dropping TExtendedTabControl component to form editor doesn't add necessary code lines. |
related to | 0038554 | resolved | Mattias Gaertner | Codetool does not handle "var x deprecated" |
|
|
|
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 |
|
The FPC version makes no difference because Lazarus uses Codetools for parsing Pascal sources. |
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 |