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 Visual Micro doesn't acknowledge Arduino Sketch Folder move (Read 4388 times)
Fred Cailloux
Junior Member
**
Offline


Posts: 12
Location: Canada
Joined: Mar 13th, 2016
Visual Micro doesn't acknowledge Arduino Sketch Folder move
Mar 16th, 2016 at 8:55pm
Print Post  
After deciding that I am going full throtle with MS Visual Studio and Visual Micro I proceeded to start anew with a cleaned Updated Windows 7 installation. then I installed Arduino and immediately changed the default Sketch folder to my prefered location. Then I followed chipKIT instructions to include the chipKIT Core folder in the Sketch folder into a subDirectory called "hardware". So now my Arduino environment is all setup and functional (tested). Then I rebooted and installed MS Visual Studio with desired options including C++ (of course). then Reboot. Then I started MS Visual Studio just to make sure everything was OK. Then Installed Visual Micro. then reboot. Then I started Visual Studio with newly installed Visual Micro and configured whatever need be, ei: changed folders for Sketch and Templates. Tested OK. 
After all this brand new tested installation I wanted to open an Arduino sketch that is present in the Arduino (moved) Sketch folder but Visual Micro would still open the default C/User/Document/Arduino folder to look for Arduino Sketch.
The questions: 
Why, even after changing the default Arduino sketch location within Arduino IDE did Visual Micro is still expecting to find Arduino sketches in the original default folder ?
Is there a way to tell Visual Micro that my Arduino sketches have all moved to my D:/Arduino new folder ? Arduino acknowledge this move already by opening the new folder when requesting to open a sketch.
Thanks for the help...
« Last Edit: Mar 16th, 2016 at 8:56pm by Fred Cailloux »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro doesn't acknowledge Arduino Sketch Folder move
Reply #1 - Mar 16th, 2016 at 9:00pm
Print Post  
Hi,

You don't need to reboot after installing things unless instructed.

I don't know what you mean about changing sketch and templates.

Visual micro should use the sketchbook location specified in the arduino ide unless you have overridden it in the visual micro "ide locations" configuration window. The window provides the "(optional)" sketchbook location immediately below the location you have specified for the Arduino Ide.

EDIT: documentation here http://www.visualmicro.com/page/User-Guide.aspx?doc=First-steps.html
« Last Edit: Mar 16th, 2016 at 9:01pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Fred Cailloux
Junior Member
**
Offline


Posts: 12
Location: Canada
Joined: Mar 13th, 2016
Re: Visual Micro doesn't acknowledge Arduino Sketch Folder move
Reply #2 - Mar 16th, 2016 at 9:19pm
Print Post  
Just found it and edited that third entry. Worked fine. Now I can File/Open/Arduino Project and I can see all my Arduino projects properly. thanks for that one. I did read that article before, don't know why I had forgotten about it. Still I cant really figure out the difference between
"*Enter the ide folder location ( example c:\Arduino) and
"Optional Sketch Location" ? Where or How is each entry affect Visual Micro ?
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro doesn't acknowledge Arduino Sketch Folder move
Reply #3 - Mar 16th, 2016 at 9:32pm
Print Post  
Quote:
Enter the ide folder location ( example c:\Arduino) and

Means enter the location where the ide is located

Quote:
Optional SketchBook Location"

Means enter the location where you would like to be prompted to open/save sketches

If they both look the same it is because you might have confused things and it is not good practice to save sketch to where the Ide is located. If you are new to Arduino you should leave sketchbook path empty so that you have the standard implementation for the community to assist you with.
  
Back to top
IP Logged
 
Fred Cailloux
Junior Member
**
Offline


Posts: 12
Location: Canada
Joined: Mar 13th, 2016
Re: Visual Micro doesn't acknowledge Arduino Sketch Folder move
Reply #4 - Mar 16th, 2016 at 9:51pm
Print Post  
I happen to have made quite a big mistake here. Instead of entering the Real IDE location, in this case C:\Arduino  , instead I entered the new Arduino Sketch location as well as the "Optional Sketchbook location". 
Surprisingly, It works great. Could it be that it is because within my real Sketchbook location reside the "hardware" subfolder so important to implement the chipKIT gcc Toolchain ?
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro doesn't acknowledge Arduino Sketch Folder move
Reply #5 - Mar 16th, 2016 at 9:54pm
Print Post  
Hi,

Leave the sketchbook folder empty and add a hardware folder to "documents\arduino"

This is how it is supposed to be done. "documents\arduino\hardware"

Sketches will save to "documents\arduino" and custom hardware will be in ""documents\arduino\hardware", custom libraries in "documents\arduino\libraries". It means your code and hardware stays separate to where the ide is located
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint