Problem
I was able to duplicate this on a standard baseplate. The script editor’s auto-indent feature is does not work intermittently. I’m finding that I have to hit the <TAB> way more often than necessary. It has gotten to the point where the <TAB> button feels like it’s going to burn out. I should mention that this is the second bug report that I have made about this issue. The first one I wasn’t really able to articulate which keywords was causing the problem.
This seems to occur randomly. However, the following situations will make it fail every time, at least for me:
- Typing
if true then
on a blank line will fail to print the matching end and fail to auto-indent. - Typing
function somefunction()
will yield correct auto-indent/auto-complete behavior, but typinglocal function somefunction2()
will not.
I have also experienced the local
keyword causing the indent level to reset to column 1 even though I am working with nested if/then/else and for/do loops several levels deep. This seems to occur randomly. Setting the auto-indent mode from relative to absolute does not help matters. Furthermore, when this problem manifests, when cutting/copying and pasting code, the indent level of the pasted code reflects the source code and not the indent level of where it’s pasted at.
I have completely removed Studio from the computer (including the registry) and reinstalled it to no avail. Needless to say, this issue is extremely annoying and needs to be fixed quickly as it disrupts my workflow.
Additional Information
Parameter | Value |
---|---|
Problem Area | Studio |
Problem Component | Script Editor |
First Noticed | Some time ago |
Priority | Normal |
Impact | Medium |
Annoyance Level | Extreme |
The beta features that I have enabled are as follows:
- Assistant Preview
- Texture Generator
As for plugins, I have a bunch that are installed, but very few are enabled. The ones that are enabled are listed below with links to their details page on the Roblox store website:
Expectations
What I expect to happen is that after I press enter to complete a line, that auto-indent/auto-complete correctly places the cursor at the next line at either the same, next, or previous indent level depending on if I am opening, continuing, or closing a code block.
Visuals
This shows the failure when typing a if/then statement on a blank line (bottom of file).
Here auto-indent/auto-complete refused to function until the third nested if/then statement.
Reproduction
To reproduce the issue, perform the following steps:
- Open an empty baseplate.
- Create a script.
- Open the script.
- Start typing as mentioned in the problem section above.
Files
Not really. Fails on a clean baseplate.