Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naming a luau file "Init" instead of "init" causes the special case to duplicate scripts #906

Open
chronaxis opened this issue Apr 25, 2024 · 1 comment

Comments

@chronaxis
Copy link

image
image

As you can see, the Init script should not be there in Roblox Studio.
Note that I renamed the folder via the project file, but I confirmed the problem source when renaming "Init" to "init", which stopped the issue from occuring.

@flxwed
Copy link

flxwed commented May 31, 2024

Confirmed. Seems to work for all files that compile to a script

Fixing this most likely involves defining how irregularly named init files should be treated. A few approaches off the top of my head:

  • Always treat files named "init" as init files, regardless of case
  • Only treat files named "init" (in all lowercase) as init files and treat all other files as regular ones
  • Force all init files to be lowercase or refuse to compile

Bonus: If you use irregular casing in its file extension (e.g. Init.luaU), the duped script seems to dissapear

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants