Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Creating new project with '.' in the name creates incorrectly (Read 1823 times)
Barry Nolte
Newbies
*
Offline


Posts: 1
Joined: Mar 25th, 2016
Creating new project with '.' in the name creates incorrectly
Mar 26th, 2016 at 1:20am
Print Post  
If I create a Visual Micro Project with a '.' in the name, the project creates essentially empty.

Repro:
1. File/New/Project/Visual Micro/Blink Led Example
2. Enter "foo.bar" as the Name
3. OK "New Project" Dialog

Expect: 
Correct header files added to project and a foo_bar.ino file with the blink example in it.

Actual:
Project "foo.bar" created, no header files added and a foo_bar.ino file in the project that isn't backed by an actual file.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Creating new project with '.' in the name creates incorrectly
Reply #1 - Apr 2nd, 2016 at 1:41pm
Print Post  
Hi,

Thanks for the post.

It's an interesting discussion.

The "File>New>Project" command is entirely within the control of Visual Studio, we simply use a new project template. It appears to be a failing of Visual Studio to cater for this scenario. As you can see it attempts to add a file called "foo_foo.ino" (which it fails to create) to the project which it happily creates called "foo.foo.vcxproj".

I tested the "File>New>Arduino Project" which is Visual Micro code and it worked okay.

As an aside, I would not recommend adding a "." to an arduino file name. Some platforms are very sensitive about the final program names (.elf, .hex files) and the program names are always derived from the name of the [project_name].ino

In the Arduino world it would be illegal for the main Arduino.ino to have a different name to the containing folder. That is how arduino determines a valid project and a rule that Visual Micro also enforces. 

In fact Visual Micro will "go to sleep" for any project name that does not have a matching .ino located in a matching folder name because that is how arduino should work  Smiley

« Last Edit: Apr 2nd, 2016 at 1:49pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint