-
-
Notifications
You must be signed in to change notification settings - Fork 7k
folder_name needs to match folder_name.ino #7543
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
Comments
I agree. Why do folder and sketch need to have the same name? |
The "same name" policy is being used by the IDE to spot the "main" ino file and show it in the first position. While this is a Processing heritage I still find it quite ok (code first, documentation/data/images in other folders that are ignored by the builder but can be used by other tools). |
@facchinm I searched without finding any other duplicate issues, open or closed. I have seen a few infrequent complaints about this on the forum and elsewhere. Without the folder name matching requirement, it would be necessary to add a metadata file to the sketch to record which is the "main" .ino file. I don't think it's worth that extra complexity and loss of backwards compatibility with previous IDE versions simply to allow people to name their folders as they like. Perhaps I would feel differently if the metadata file also provided additional benefits (e.g. associating board and port with a sketch). |
Metadata would be awesome! Or a .conf file or something similar. |
now that the tools are going to arduino-builder and arduino-cli it would be awesome if this could be squeezed in. |
I see that arduino/arduino-cli#948 was closed with a decline. I think it's the wrong decision. It shouldn't be a difficult thing to add an override flag in, so you can run |
When working on larger projects having to pair the parent folder name to the .ino file is inconvenient. Being able to keep a consistent naming convention...like:
ProjectName(folder)
The text was updated successfully, but these errors were encountered: