Abdellazizhammami / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

Can't use a different extension in file name #731

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Take any valid "sketch"
2. Rename it to to a file extension such as .arduino, .ino, .xyzzy
3. Associate new extension with Arduino

What is the expected output? What do you see instead?
I expect it to open, what I get instead is 
"Processing can only open its own sketches and other files ending in .pde"

What version of the Arduino software are you using? On what operating
system?  Which Arduino board are you using?
Arduino 0023, Windows 7, 64 bit, Arduino Uno

Please provide any additional information below.
This is the only application I've encountered that cares about it's input file 
name extension... and it's weird.  There appears to be a religious debate about 
this, which is really weird.... just let me name MY files what I want to name 
them.

You can default to whatever file extension you want, but your program should 
NOT think its smarter than I am, nor be passive aggressive.

Original issue reported on code.google.com by chezmike@gmail.com on 28 Nov 2011 at 11:26

GoogleCodeExporter commented 9 years ago
.pde is used by "proccesing"... you should use .arduino

Original comment by chezmike@gmail.com on 28 Nov 2011 at 11:27

GoogleCodeExporter commented 9 years ago
We use the extension to figure out how to process the file, supporting 
arbitrary extensions would complicate the build process without offering a 
clear benefit.  

Original comment by dmel...@gmail.com on 28 Nov 2011 at 9:24

GoogleCodeExporter commented 9 years ago
"We use the extension to figure out how to process the file"

I don't understand why it matters. The Arduino IDE only lets you open one file 
per window, and is an end user detail... why would it affect the build process 
at all?

Original comment by chezmike@gmail.com on 28 Nov 2011 at 9:34

GoogleCodeExporter commented 9 years ago
You can have multiple files in a sketch; for details, see: 
http://code.google.com/p/arduino/wiki/BuildProcess

Original comment by dmel...@gmail.com on 28 Nov 2011 at 10:47

GoogleCodeExporter commented 9 years ago
Ouch, I had no idea it was so convoluted.

Original comment by chezmike@gmail.com on 28 Nov 2011 at 10:56