View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0025727 | 2.x IDE Bugs | Code Editor | Public | 2017-02-20 15:22 | 2019-05-15 09:21 |
Reporter | Dan | Assigned To | Alexander Borup | ||
Priority | Medium | Severity | D - Minor | Reproducibility | 100% |
Status | Closed | Resolution | Fixed | ||
Platform | - | OS | Windows 8 | OS Version | 8.1 Pro x64 |
Product Version | 2.2.0 | ||||
Target Version | 2.2.3 | Fixed in Version | 2.2.3 | ||
Summary | 0025727: Code Editor: Colouring for enum values is incorrect if all declared on one line | ||||
Description | The colouring for enum values doesn't seem to be applied until that specific value is used elsewhere if all of the values are declared on one line. The enums remain grey/off-white until they are used, at which point they incorrectly turn blue like unknown variables. You can see this in the first attached screenshot. If you declare the enum over multiple lines, then the colouring is correct. (Second screenshot.) Expected: As soon as I type , or } after an enum in the list, that enum is coloured as a known variable, regardless of single-line/multiple-line declaration style. | ||||
Steps To Reproduce | 1. Start the IDE and create a new project. 2. Create a new object, add a Create event. 3. Type some enum declaration, then add some blank lines and wait. 4. Observe code colouring does not get applied to the values, only the enum name. 5. Now declare another variable using one of the enum values. 6. Observe when you pick the enum from the autocomplete list/finish typing, both the new reference and the original declaration become coloured. Repro: 100% | ||||
Additional Information | Suspect this is what https://yoyogames.zendesk.com/agent/tickets/120278 was reporting. | ||||
Tags | CodeEditor, IDE, Syntax | ||||
2.x IDE Found In | 2.0.5.72 | ||||
2.x Runtime Found In | 2.0.5.47 | ||||
2.x IDE Verified In | 9.2.1.1817 | ||||
2.x Runtime Verified In | 9.9.1.1441 | ||||
has duplicate | 0030684 | Closed | Code Editor: Fails to syntax color 1-line enums |