rojo-rbx / rojo

Rojo enables Roblox developers to use professional-grade software engineering tools
https://rojo.space
Mozilla Public License 2.0
947 stars 179 forks source link

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

Open chronaxis opened 5 months ago

chronaxis commented 5 months ago

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 commented 4 months ago

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:

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