Pages: [1]   Go Down
Author Topic: BUG: Sketch has to be same name as folder  (Read 663 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 7
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


I've got 1.5.2 IDE and have found that the project file has to be the same name as the folder.

So for example:

project1 > alpha > alpha.ino <---- works OK
Project1 > final > final.ino <---- works OK

Project1 > alpha > myproject.ino <---- doesn't work
Project1 > final > myproject.ino <---- doesn't work

Can this be looked at please?

SF Bay Area (USA)
Offline Offline
Tesla Member
Karma: 135
Posts: 6788
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That's not new behavior, and it's not considered a bug.
I think it's behavior inherited from "Processing" that no one can actually explain, and everyone is afraid to change.
(probably: the IDE concatenates all of the .ino files rather than compiling them separately.  Without the "main" ino file matching the project/directory name, it wouldn't know which one came first.)

Pages: [1]   Go Up
Jump to: