Skip to content

Sketches under subfolders of sketch are also compiled #31

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
ffissore opened this issue Oct 8, 2015 · 3 comments
Closed

Sketches under subfolders of sketch are also compiled #31

ffissore opened this issue Oct 8, 2015 · 3 comments
Assignees
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@ffissore
Copy link
Contributor

ffissore commented Oct 8, 2015

From @pierrotm777 on October 2, 2015 15:50

With this new version, the ide read old files saved into folders that exist into my sketch project
bugg
IDE read also .ino or .pde files found into the folder 'INO en cours' or 'InOut & Doc' .

That was not the case with the older IDE version !
It's a new feature or an issue ?

Copied from original issue: arduino/Arduino#3909

@ffissore
Copy link
Contributor Author

ffissore commented Oct 8, 2015

If this folder is a library, this was fixed since arduino-builder beta22. Please download a fresh hourly http://www.arduino.cc/en/Main/Software#hourly

@ffissore
Copy link
Contributor Author

ffissore commented Oct 8, 2015

From @per1234 on October 7, 2015 22:1

@ffissore I believe what pierrotm777 is referring to is demonstrated by this example(using Arduino IDE 1.6.6 2015/10/07 06:43):

folder structure:

Blink
|-- Blink.ino
|-- backup
|   |-- Blink1.ino

If you compile Blink.ino you get:

E:\Stuff\misc\electronics\arduino\temp\Blink\backup\Blink1.ino: In function 'void setup()':

E:\Stuff\misc\electronics\arduino\temp\Blink\backup\Blink1.ino:1:6: error: redefinition of 'void setup()'

 void setup() {

      ^

Blink:1: error: 'void setup()' previously defined here

 void setup() {

      ^

E:\Stuff\misc\electronics\arduino\temp\Blink\backup\Blink1.ino: In function 'void loop()':

E:\Stuff\misc\electronics\arduino\temp\Blink\backup\Blink1.ino:6:6: error: redefinition of 'void loop()'

 void loop() {

      ^

Blink:6: error: 'void loop()' previously defined here

 void loop() {

      ^

exit status 1
'void setup()' previously defined here

This compiles fine with 1.6.5r5.

I'm not sure whether this is a bug or a new feature but if it's a feature then Blink1.ino should be shown as a tab in the IDE.

@ffissore
Copy link
Contributor Author

ffissore commented Oct 8, 2015

Confirm. Thank you!

@per1234 per1234 changed the title Houly build 2-10-2015 4h41 read also .ino files into folder Sketches under subfolders of sketch are also compiled Nov 2, 2022
@per1234 per1234 added type: imperfection Perceived defect in any part of project conclusion: resolved Issue was resolved topic: code Related to content of the project itself labels Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants