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 Directory Issues (Read 1901 times)
Mike
Junior Member
**
Offline


Posts: 13
Joined: Jun 10th, 2014
Directory Issues
Aug 27th, 2014 at 5:36am
Print Post  
Hello,

A partner and I are trying to use SVN to maintain code.  When he saves code and overwrites the solution file, and I update the changes on my side, all of the arduino directory paths become broken.  This is because the arduino core/library directories are set to my buddies directory structure.


I have tried to go into visual micro and reset IDE locations, however it does not seem to change all instances when i look at the solution in an editor program.  Is there a way around this short of changing it in an editor?  It seems like there needs to be a more robust way to include libraries into a project that uses relative directory file paths rather then the complete file path?




  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Directory Issues
Reply #1 - Aug 27th, 2014 at 5:44am
Print Post  
Hi Mike,

The paths in the solution are refreshed when certain events happen. One of those events is when you open a sketch project. It sounds like a bug is preventing that one from happening which we will look into.

However if you switch board and back again that should put all the paths right.

Because arduino does not have the concept of a project it requires that all locations we worked out dynamically when you compile. Visual Micro also does this at other times as mentioned above.

Another event that should happen automatically when a project is opened is that the files in the sketch folder should be read and the project automatically updated accordingly. Again this is because arduino always compiles all sources in the sketch folder regardless of what is contained in a visual studio or atmel studio project. For the same reason removing a source file from a project does not affect compile, it must be removed from the sketch folder.

In fact you could not bother checking in the project and each keep your own. Again this won;t affect compile because libraries and all paths are supposed to be auto re-worked when required.

Do these things make sense, make life easier and what does or does not work based on the above.

Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint