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 Option to relocate/co-locate the Build folder? (Read 8664 times)
Evan
Junior Member
**
Offline


Posts: 27
Location: Northeast U.S.A.
Joined: Oct 25th, 2012
Option to relocate/co-locate the Build folder?
Dec 5th, 2012 at 2:49am
Print Post  
Would it be terribly difficult to add an option that would relocate or co-locate the "Build folder" for projects?  I have occasional urge to find the .hex, or snoop through the generated .cpp, and remembering to move from the Ardo sketchbook to C:\Users\Evan\AppData\Local\VMicro\Arduino\Builds\RGB_Blender_2\nano328 is something of a nuisance.

I'd like to be able to (1) set the Build folder to some arbitrary path, e.g. D:\Temp\, or (2) cause the build files to be co-located with the associated project.  In the former case, organizing the build files by project name and device name, as is done now, would be quite satisfactory.

In the latter case a \build\ subdirectory somewhere in the project directory tree would be fine and offers the additional benefit that deleting the project directory also gets rid of the umpty-dump build files.

Apologies if this is already available and I just didn't see it.
  
Back to top
 
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Option to relocate/co-locate the Build folder?
Reply #1 - Dec 5th, 2012 at 4:27am
Print Post  
Evan
I think the idea was to keep VM compatible with the Arduino IDE and how it does things. Also, VM uses the arduino compile/build process so the output is dictated by how Arduino does it.
It would be nice to have but I think probably not possible at this time but I am not sure.
  
Back to top
IP Logged
 
Evan
Junior Member
**
Offline


Posts: 27
Location: Northeast U.S.A.
Joined: Oct 25th, 2012
Re: Option to relocate/co-locate the Build folder?
Reply #2 - Dec 5th, 2012 at 9:17am
Print Post  
I understand that VM uses the Arduino toolchain which is why I was surprised to find the build directory in a different location from the one(s) that Arduino iDE uses.  Arduino, on my setup anyway, puts everything in a cluster of temp directories under C:\WinTemp\ whereas VM is putting the same stuff in a user specific \AppData\ directory.  This is inconsistent with Arduino dictating the compile/build process.

Anyway, it's a suggestion.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Option to relocate/co-locate the Build folder?
Reply #3 - Dec 5th, 2012 at 3:24pm
Print Post  
Vm doesn't use the same temp folder system as arduino because the arduino folder changes each time you open the ide.
 
This means that the vm folder is always in the same place and that allows you to setup a windows shortcut to open the folder with a single click.

However there is a useful option under "tools>options>compiler>always show build folder" which provides a hyperlink to the build folder in the output window after each compile.

One of our users (CapnBry) has made good use of this option and has provided a screen shot showing how CTRL+CLICK on the hyperlink jumps straight to the hex and build files http://www.visualmicro.com/forums/YaBB.pl?num=1352326385

I expect this info will work well for you but should also say that allowing you to override the compile path using the std. vs c++ build folder properties is planned for some time in the future. 

However I am holding back because Arduino are talking about supporting Libraries sub folder below a sketch. I think that dicussion might, in the future, extend to other things so users will become quite confused if they have selected a build folder name that in the future becomes a key arduino sub folder.
« Last Edit: Dec 5th, 2012 at 3:34pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Evan
Junior Member
**
Offline


Posts: 27
Location: Northeast U.S.A.
Joined: Oct 25th, 2012
Re: Option to relocate/co-locate the Build folder?
Reply #4 - Dec 5th, 2012 at 3:45pm
Print Post  
The hyperlink will do for now, although I object in principle to applications storing temp files in back corners.

That being said, this is not a top priority.  Moreover, if the Ardo folk are planning a seismic shift in their directory tree, it's not our place to try to outguess them.

Thanks for the details.
  
Back to top
 
IP Logged
 
Evan
Junior Member
**
Offline


Posts: 27
Location: Northeast U.S.A.
Joined: Oct 25th, 2012
Re: Option to relocate/co-locate the Build folder?
Reply #5 - Dec 6th, 2012 at 1:02pm
Print Post  
P.S.  The Ctrl/Click gimmick is pretty slick!  Compliments to CapnBry.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Option to relocate/co-locate the Build folder?
Reply #6 - Dec 6th, 2012 at 2:31pm
Print Post  
Great. Don't forget to read this board which is where these things are first annouced http://www.visualmicro.com/forums/YaBB.pl?board=NEW_RELEASES
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint