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 Unable to find a sketch called... (Read 1828 times)
CapnBry
Junior Member
**
Offline


Posts: 32
Joined: Nov 4th, 2011
Unable to find a sketch called...
Jun 10th, 2018 at 2:12pm
Print Post  
I am running Visual Studio Community 2017 (15.6.6) + Visual Micro 1806.1.0. When I try to File -> Open -> Arduino Project and point it to the only file in my project, I get the error in a message box:
Code
Select All
Unable to find a sketch called src in folder C:\Users\bmayland\Documents\GitHub Projects\AlarmHomie\src
 


The source file is C:\Users\bmayland\Documents\GitHub Projects\AlarmHomie\src\AlarmHomie.ino, which is what I selected, but it won't create the project at all. If I rename the INO file to src.ino it works fine. However, this creates a project called "src".

Is there a new requirement that all Arduino projects' folders have to be named the same as the project? I have a ton of projects I use Visual Micro for and they all have their source code in "src" or "src/arduino" which means all my VisualMicro projects would be named either src or arduino which would be hell. Existing projects work fine, it appears to be only be an issue creating a new project.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to find a sketch called...
Reply #1 - Jun 10th, 2018 at 2:21pm
Print Post  
Hi

The project is called AlarmHomie.ino

AlarmHomie.ino should be in C:\Users\bmayland\Documents\GitHub Projects\AlarmHomie

The \src folder was designer for "more" code not for the main project .ino files.

An arduino project has historically been a folder containing an .ino of the same name.

It sounds like some developers have got confused about the structure of an arduino project and it's possible that arduino.cc have now allowed this structure so I will check and add support for it if need be but it seems confusing.

In the meantime move .ino files into C:\Users\bmayland\Documents\GitHub Projects\AlarmHomie
  
Back to top
WWW  
IP Logged
 
MichaelK
Newbies
*
Offline


Posts: 2
Joined: Jan 13th, 2018
Re: Unable to find a sketch called...
Reply #2 - Jun 17th, 2018 at 4:21pm
Print Post  
Tim@Visual Micro wrote on Jun 10th, 2018 at 2:21pm:
Hi

The project is called AlarmHomie.ino

AlarmHomie.ino should be in C:\Users\bmayland\Documents\GitHub Projects\AlarmHomie

The \src folder was designer for "more" code not for the main project .ino files.

An arduino project has historically been a folder containing an .ino of the same name.

It sounds like some developers have got confused about the structure of an arduino project and it's possible that arduino.cc have now allowed this structure so I will check and add support for it if need be but it seems confusing.

In the meantime move .ino files into C:\Users\bmayland\Documents\GitHub Projects\AlarmHomie


Thank you for pointing this out.  This was exactly what I was searching for.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint