Script Editor: Luau-Powered Autocomplete & Language Features Beta

Yes, we are still working on fixing this in cases we haven’t covered yet.

2 Likes
  1. Quotation marks are required for some auto-fill entries such as Instance.new() and game:GetService etc

  2. Completely typing else still auto-fills with ElapsedTime()

  3. Doesn’t recognise when 2 or more value types can be returned
    image
    *Either number or string can be returned, but it only shows string as possible

3 Likes

Brackets are not autofilled in this case

4 Likes

No problem, it was annoying for me so I thought I will say it, and it actually got the improvement! : D

1 Like

Also, it might be nice for it to add "" by itself when you type the ()

but sometimes you might use a variable to wait for the child.
Like this:

local name = "ChildName"
local ok = workspace:WaitForChild(name)

But for a lot of auto-fill entries, quotation marks are required, which when fixed, will make there be no need to add “” by itself.

1 Like

Another annoying problem!

im cloning something, that has a objectvalue in it called HelicopterModel, but it doesnt show after cloning!

afbeelding

2 Likes

Studio should keep track of what gets autofilled most often. With this update, I keep accidentally autofilling :GetActor() instead of :GetService() on game. In this specific case, :GetService() is much more commonly used on game so it should be suggested first. Same thing with instances, before this update when typing Instance:Cl, autofill would suggest :Clone() but now it suggests :ClearAllChildren() even though :Clone() is used much more often

image
image

4 Likes

This shouldn’t cut off my screen. Do you think it can go to the next line before full release? Also, I think it should have rounded corners because it looks a little bit “old”. It barely matches my OS.

2 Likes

Require gives me this error:

local Experience = game

local ReplicatedStorage = Experience:GetService("ReplicatedStorage")

local WEblox = ReplicatedStorage.WEblox

local SoundService = require(WEblox.SoundService) -- This is where the error would be.
2 Likes

I’m getting a crash from this type checker. It seems to stem from calling a table when it is cast to a union of the type that self represents (that is, the type of its parent / meta table) unioned with any other arbitrary type, even an empty one.

local Module = {}

function Module:DoThing()
    local something={}::Module
    -- Call or namecall `something` here, and studio will crash.
    -- A video describes this better.
end

type Module = typeof(Module) & {} -- There MUST be a union type here.
-- typeof(Module) alone does not raise this issue.
-- I have it at the bottom so all the members are defined in the type in my
-- production scripts, but the position doesn't seem to affect the outcome.
return Module

This crash always occurs, granted the beta feature is enabled.

5 Likes

Was about to post the same thing, but GetActor should definitely not be the first suggestion on the game list. GetService is definitely used more on it than actor.

2 Likes

I highly agree with you! which is why I liked the post, maybe some of you :eyes: could try it sometime but that’s not why I made this reply

I’m accidentally autofilling select instead of script, ReplicatedFirst instead of ReplicatedStorage, and many more things.

1 Like

What? Why is indexing children via . bad?

1 Like

Update: We have restored completion history in Autocomplete. Now the completions you use more are prioritized over the completions you use less. This should solve the ‘game.Replica’ → ReplicatedStorage/ReplicatedFirst issue after you complete ReplicatedStorage a few times.

11 Likes

Thank you very much, kind man.

1 Like

Additional update this week for LocalPlayer members:

  • PlayerGui now displays contents of StarterGui
  • PlayerScripts displays contents of StarterPlayer/StarterPlayerScripts
  • Backpack displays contents of StarterPack
11 Likes

Really exciting! I’m happy Roblox added this!

1 Like

I cannot select the text I want in this case. It won’t let me select up to the quotation mark, I have to select either 1 character before or after it

3 Likes

When typing out keywords and getting finished with them, the editor will keep the auto complete box open even though I’ve finished typing the keyword.

"for loop "do" auto completion

SBmV0ksZpx

(Also requires you to have to press enter twice to get the end automatically added in.)

This slows down my work flow as many times when I’m coding I will type something out and hit the End key to go to the end of the line to get back to where I was or make a new line, and it just goes to the bottom of the auto complete list.

Variable is finished typing, have to press enter before hitting end.

Can we just make hitting end go to the end of the line instead of the list? PGUP and PGDN are already used for that.
Z2Y1eJWwhH

Require also still does not auto complete with ()

Require

3J92lZtYPg

4 Likes