Code Assist Beta: AI powered code completion

How can people learn how to code from this if it is literally using a lot of bad practices, deprecate code and invest Services and Methods?

Also, you restarted the arguing

1 Like

Just retested, and as far as I can see there are no repetitions anymore. Thank you!

Studio sometimes broke due to the usage of 'alt + ' on my initiative. It shall be a great tool if AI calculation can be improved due to script remaining while not affects the Studio workflow.

1 Like

My gaming laptop does not have a \ buttonā€¦ I canā€™t activate it.

2 Likes

I also ran into the issue of it using deprecated features, with it using FindPartsInRegion3 instead of GetPartBoundsInBox.

(I prompted it with --Get a table of all parts within or touching LoadRadius distance of Location)

Still pretty cool and still saved me the time of trying to remember/search for what the method name was when I looked up the deprecated one.

3 Likes

I know itā€™s it Beta but some sort of UI indication that itā€™s processing would be nice. Maybe something in the output saying ā€œGeneration startedā€ and ā€œGeneration endedā€ in the same way Studio will alert you a game is saved so we can actually tell if itā€™s working.

Sometimes I prompt it and I canā€™t tell if itā€™s actually gonna produce code or itā€™s just dumbfounded.

1 Like

On larger results, I keep getting code that is cut off

3 Likes

Press Alt \ where it cut off to make it continue.

2 Likes

Wow! This is truly incredible.

Mind = blown.

I have never used any of the stuff that has been mentioned in this thread (i.e. Copilot) so this is all new to me. I have to say, it is impressive, and a huge leap toward easily allowing people, from a non-programming background, to have instant access to coding concept and methods, without swapping over to a search engine to find a decent example to learn from.

This truly does change everything, just as AI is already doing in virtually every sector in which it finds a home. Hatā€™s off to the idea-smiths, the coders, and the brains that can even think this, never mind actually achieve it!

As this tool develops and the vocabulary and diction progresses, it does however, foretell the beginning of the end of the DevForum. I mean, why ask people stuff and wait days for a response, or get none at all. We can now just type a correctly phrased prompt into Studio and viola! An instant answer, without flowery response or deflecting personal opinion.

Lua is a joy to use and implement, and as soon as Roblox improves the graphical capabilities and procedural power of this engine, Unreal and Unity will be looking very nervously over their shouldersā€¦

4 Likes

@C_Corpze great questions, weā€™re discussing now & hope to have an update on at least some of these ideas as soon as possible.

2 Likes

Hey @SelDraken the team is digging into this now ā€“ long responses are sometimes truncated. For now the suggestion is to go to the end, remove any partial lines of code and either use the keyboard shortcut or try something like

-- complete the code

Thanks!

1 Like

Weā€™re working on this now and will have an update that better indicates when the model is working and to better indicate when thereā€™s no response (and as much as we can, why thereā€™s no response so you can take action).

Thanks!!

4 Likes

Code assist is pretty cool so far, however, lots of room for improvement! Considering itā€™s a beta, not too bad at all. I havenā€™t found myself using it in production code but do I like to give it challenges and conversations. Speaking of, here are some funny convos:
image
image

6 Likes

Roblox it self is still in beta lol. Sorry if its not directly related but I just had to mention it.

But tbh, its cool and all. But it needs more training and it needs to be more accurate with less junk (filtering out useless/repeated code).

1 Like

Seems like it just broke down for me. Its saying the following in the studio log files:

2023-03-21T15:34:37.034Z,22.034773,5678,6 [FLog::Output] Info: RobloxScriptDoc::open - start
2023-03-21T15:34:37.080Z,22.080765,5678,6 [FLog::Output] Info: RobloxScriptDoc::activate - start
2023-03-21T15:34:42.449Z,27.449430,5678,6 [FLog::Output] sendMLCodeCompletionHttpRequest ParseJson Error : InvalidJsonDocument
2023-03-21T15:34:45.914Z,30.914095,5678,6 [FLog::Output] sendMLCodeCompletionHttpRequest ParseJson Error : InvalidJsonDocument
2023-03-21T15:34:49.855Z,34.855522,5678,6 [FLog::Output] Info: RobloxScriptDoc::activate - start
2023-03-21T15:35:11.586Z,56.586761,5678,6 [FLog::Output] sendMLCodeCompletionHttpRequest ParseJson Error : InvalidJsonDocument
2023-03-21T15:35:46.751Z,91.751350,5678,6 [FLog::Output] RobloxMainWindow::requestDocClose doc.docType=2
2023-03-21T15:35:46.752Z,91.752350,5678,6 [FLog::Output] RobloxMainWindow::forceDocClose doc.docType()=2
2023-03-21T15:35:46.752Z,91.752350,5678,6 [FLog::Output] RobloxDocManager::removeDoc type 2
2023-03-21T15:35:46.764Z,91.764359,5678,6 [FLog::Output] Info: RobloxIDEDoc::activate - start
2023-03-21T15:35:46.787Z,91.787384,5678,6 [FLog::Output] RobloxBasicDoc::closeDocument 000001EF57574110

Notice the sendMLCodeCompletionHttpRequest ParseJson Error : InvalidJsonDocument

Is this some kind of backend error from roblox or is it something locally for me?
Some help would be appreciated.

If needed, I could do a network scan and see what the ā€œInvalid jsonā€ actually is.

Edit: Seems like the server is returning HTTP 204 (No content).

2 Likes

i was hoping such a feature got released like 2 yrs ago anyways good thing it did got released

2 Likes

I think this will be quite helpful, especially when your stuck in a situation and donā€™t quite know what to type.

1 Like

Canā€™t we just change "max_tokens":500,"temperature":0 to have different results for the generation? I can see that the AI is told to be 100% logical. Maybe it would be fun to change it?

Anyhow, maybe the "stop":"\n\n" is the cause of the problem? Or it might just be something else on the backend .-. (Edit, its most definitely something else on the backend.)

Even making the request manually causes a 204 :skull:
image

(also, unrelated, its my birthday today :smiley:)

5 Likes

I feel the same about this AI assistant as I do about the usage of GPT4 for simple apps. Seems cool for one off, isolated situations, but the moment I need it to tie into my object-oriented architecture it becomes useless.

If I have to direct it to call specific helper methods from my custom objects Iā€™m already better off writing it myself.

Eventually Iā€™m sure these models could be trained against an existing code base but until then I donā€™t think it would help my productivity.

2 Likes

I havenā€™t even seen this generate a suggestion once since I enabled it.

1 Like