Hey i try to use scripts with chidlren using .source.lua or .source.luau with a folder, but why on roblox studio it doesn’t become script with children
I’m having this weird issue I’ve never had before. So, I’ve got these ModuleScripts set up in a hierarchy. But every time I try to save my changes in VS Code, they just don’t show up in Studio. And to top it off, I keep getting this warning:
AFAIK, argon-legacy did fix this problem and it shouldn’t be happening. The fhU stands for file handler update function, not being able to apply the props.
Since your object is nil, can you try porting to roblox and then try updating?
It turns out it’s because both the Folder and ModuleScript shared the same name. Each time I exported them from Studio to VS Code, the original name does appear, but with a bunch of gibberish at the end of it.
I’m not really sure why this is happening to me at all, since Argon always worked with different instance types with the same name without any issues.
The issue isn’t on the machine-end, rather on the roblox end. The roblox plugin (AFAIK) does not do a very good job in checking instance types and data names at the same time. I might be wrong but I remember coming across this issue a while back.
Actually I will be implementing plugin subcommand today.
I will update plugin once I release Argon officially, which will happen probably in ~1-2 weeks because I still have to add some basic tests and write argon.wiki website.
Also I would love to continue talk about Argon 2 here:
Just a question, are the sync/port buttons coming to Argon 2? I don’t like to setup every single directory myself and It’s the only reason I use Argon at all.
See, Argon 2 works way different under the hood compared to the legacy version. On every initial connect all the changes are synced from the local filesystem to make sure that everything is always the same and up to date.
However, you will be able to select the initial sync priority, Server or Client:
Server - all changes made in Roblox Studio will be overwritten by changes made locally (Upon manual approval)
Client - all changes made locally will be overwritten by changes from Roblox Studio (Upon manual approval)
So yeah. The setup will still be as easy as before but will be controlled differently.
Can you add an option that changes what .source.lua files should be called? Since Roblox LSP only supports init.lua files for packages that have more than one module.
In Argon 2 .source files got changed to .src. You can make Argon use init files by default using global config. You can even make Argon use literally any name or file extension using new sync rules set in project.json.
Also I recommend you use Luau LSP over Roblox LSP as it’s way faster, has more features and is still maintained.