Added the .c extension and got errors. Arrghh! Was that it all along?
Here is the doc for naming in Particle Build
Create: You can create a new application by clicking the “Create New App” button. Give it a sweet name and press enter! Your app is now saved to your account and ready for editing.
And here is the doc for naming in Particle Dev
“Before compiling your project, make sure your project files are in a dedicated directory. Notes: If other files not related to your project are present in the project directory, you may experience errors when trying to compile.”
“All the files have to be on the same level (no subdirectories) like this”
“Compile buttonTo compile your current project, click on the Compile in the cloud button. If your code doesn’t contain errors, you’ll see a new file named PLATFORM_firmware_X.bin in your project’s directory (where PLATFORM is name of currently selected platform and X is a timestamp).”
Particle Dev docs do not mention that you have to provide an extension to save the file. In Build, you don’t. It appears to slap on the .ino extension for you. When users go from one IDE to another and basic behavior changes, its going to generate confusion.
If Dev will save the file with no extension, and the docs are not going to make it clear that you must include one in the name (uncommon requirement), the the error you generate should not say "
It should say, “Please add a file extension to this filename. It will not compile without one.” And it should say that even if the docs are complete, cause that’s what the problem is.
If you were going to try to make the Spark IDE as easy to use as the Adruino IDE, where many of your future customers may be coming from, and using simultaneously, please consider having the save button:
Fix the name so there are no spaces, or anything else that corrupts
Add the extension
Create the Folder of the same name
Currently, the File, Save As dialog does not allow you to create a folder on the fly, so assuming you know what you must do, you have to open finder and create the folder before you can save, or use the create folder dialog.