Skip to content

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

Closed
a7hybnj2 opened this issue May 1, 2018 · 6 comments
Closed

folder_name needs to match folder_name.ino #7543

a7hybnj2 opened this issue May 1, 2018 · 6 comments
Labels
arduino-builder The tool used to handle the Arduino sketch compilation process arduino-cli Related to the arduino-cli tool feature request A request to make an enhancement (not a bug fix) Type: Wontfix Arduino has decided that it will not resolve the reported issue or implement the requested feature

Comments

@a7hybnj2
Copy link

a7hybnj2 commented May 1, 2018

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)

  • README.txt
  • Arduino_sketch(folder)
    • DescriptiveName.ino
    • ect.ino
  • BoardLayout(folder)
    • schematic.sch
    • layermask.msk
  • Photos(folder)
    • completed project.jpg
@J3r3Xy
Copy link

J3r3Xy commented Jan 11, 2019

I agree. Why do folder and sketch need to have the same name?

@facchinm
Copy link
Member

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).
@per1234 There's probably the same request lying around but I can't find it so if you caould cross-reference them it would be great 🙂

@per1234
Copy link
Collaborator

per1234 commented Jan 14, 2019

@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).

@a7hybnj2
Copy link
Author

Metadata would be awesome! Or a .conf file or something similar.

@a7hybnj2
Copy link
Author

now that the tools are going to arduino-builder and arduino-cli it would be awesome if this could be squeezed in.

@per1234 per1234 closed this as completed Sep 25, 2020
@per1234 per1234 added Type: Wontfix Arduino has decided that it will not resolve the reported issue or implement the requested feature arduino-builder The tool used to handle the Arduino sketch compilation process arduino-cli Related to the arduino-cli tool feature request A request to make an enhancement (not a bug fix) labels Sep 25, 2020
@adamkdean
Copy link

adamkdean commented Nov 27, 2022

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 arduino-cli compile --fqbn $(FQBN) --entrypoint main.cpp firmware etc. I appreciate that there is backwards compatibility to ensure, and ensuring that this plays well with the frontend, but isn't the point of optional arguments that they're optional? If it's a case of needing a PR, I'd be happy to do the work, but is there really a strong objection against such an argument?

@arduino arduino locked as resolved and limited conversation to collaborators Nov 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arduino-builder The tool used to handle the Arduino sketch compilation process arduino-cli Related to the arduino-cli tool feature request A request to make an enhancement (not a bug fix) Type: Wontfix Arduino has decided that it will not resolve the reported issue or implement the requested feature
Projects
None yet
Development

No branches or pull requests

5 participants