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%|
|Platform||-||OS||Windows 8||OS Version||8.1 Pro x64|
|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.
|Additional Information||Suspect this is what https://yoyogames.zendesk.com/agent/tickets/120278 was reporting.|
|Tags||CodeEditor, IDE, Syntax|
|2.x IDE Found In||126.96.36.199|
|2.x Runtime Found In||188.8.131.52|
|2.x IDE Verified In||184.108.40.2067|
|2.x Runtime Verified In||220.127.116.111|
||Resolved by dupe 0030684|