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 Is Relative Path to Ide LOcatin could be possible ? (Read 6851 times)
Fabien35
Newbies
*
Offline


Posts: 6
Joined: Jul 21st, 2014
Is Relative Path to Ide LOcatin could be possible ?
Jul 21st, 2014 at 2:07pm
Print Post  
In all config file, they are a lot of full path to some location (Ide Arduino, Library directory..)
This is a mess to can put config file to repository (like git, svn) and to can make a projet with a team.

Is in the future use relative path could be possible ?
Or maybe put all path specific to a machine in a different file that the cppproj file (as in c#projet where we have the csproj file and the csproj.user file)
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Is Relative Path to Ide LOcatin could be possible ?
Reply #1 - Jul 21st, 2014 at 10:19pm
Print Post  
Hi Fabien,

Thanks for the suggestions.

Can you please be clearer about which files or folders you want to be relative?

The sketch/Visual Micro can be excluded from source control. It is an auto generated file.

Library and Arduino core paths should auto refresh when the project is opened or certain events happen such as change board?

The C++ project properties are auto refreshed when a project is opened or certain events happen such as change board?

So is your question only about the .ino, cpp and .h sketch sources?

I need help to understand exactly the problem?

thanks
  
Back to top
IP Logged
 
Fabien35
Newbies
*
Offline


Posts: 6
Joined: Jul 21st, 2014
Re: Is Relative Path to Ide LOcatin could be possible ?
Reply #2 - Jul 22nd, 2014 at 2:04pm
Print Post  
Ok, so the visualMicro directory can be exceluded from source control, so this one is not a problem.

Finally my main problem is the cppprok file.
This one MUST be in source control because it contains, the list of files of the project (at bottom)
But the problem is the other lines of this file. This file is always modified locally : it contains full path to all arduino directories. And (it's true) this file is also modified if the arduino targeted is modified.

In visual studio you can have your output/executing directory different on each computer, because you can export some line of the csproj file in a csproj.user file.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Is Relative Path to Ide LOcatin could be possible ?
Reply #3 - Jul 22nd, 2014 at 9:25pm
Print Post  
Hi Fabien.

The properties of the cppproj are not used for Arduino build, only for intellisense. Visual Micro also updates these properties when an Arduino sketch/project is opened (or it's a bug if this does not happen)

When an Arduino project is opened Visual Micro will also add any .ino/cpp/c/h sources that exist in the project/sketch folder but do not exist in the project. The reason being is that an Arduino in it's purest form does not need or know anything about Visual Studio. 

At all times, all of the properties/sources used by visual studio and/or the build/upload process are deduced from the physical files of the current sketch and also of the selected arduino core/libraries. The information in the cppproj is irrelevant to everything except the intellisense of the local visual studio sketch.

This complete separation from Visual Studio ensures that the source code of the sketch can be opened and compiled in the Arduino IDE just as it can in Visual Studio with Visual Micro.

So my question is now to understand where this becomes a problem. 

The vs locations should be re-written when each user uses Visual Micro so it would be useful to know what error you are seeing and at what stage in the checkin/checkout process?

Thanks

  
Back to top
IP Logged
 
Fabien35
Newbies
*
Offline


Posts: 6
Joined: Jul 21st, 2014
Re: Is Relative Path to Ide LOcatin could be possible ?
Reply #4 - Jul 23rd, 2014 at 3:40pm
Print Post  
So maybe it's better to put outside source control this cppproj file too.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Is Relative Path to Ide LOcatin could be possible ?
Reply #5 - Jul 23rd, 2014 at 4:50pm
Print Post  
If your source control monitor works on a files & folder basis with auto discovery then I think it makes sense for Arduino to be without proj files.

It also means the source control has a very clean Arduino project (without Visual Studio or Visual Micro)
  
Back to top
IP Logged
 
Fabien35
Newbies
*
Offline


Posts: 6
Joined: Jul 21st, 2014
Re: Is Relative Path to Ide LOcatin could be possible ?
Reply #6 - Jul 30th, 2014 at 9:57am
Print Post  
But without cppproj file in source control : it is impossible to share Preprocessor Defines....
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Is Relative Path to Ide LOcatin could be possible ?
Reply #7 - Jul 30th, 2014 at 2:21pm
Print Post  
Yes if you want to work outside of a standard Arduino project you need the proj.

We will try to include this in the next release. 

In the meantime you could create a custom boards.txt entry in sketchbook/hardware/... (documents/arduino/hardware) and add your own boards.txt entry with the options you require. Then you will not need to use the pre-processor defines in the sketch project

The result will be a unique board of your own in the boards list that includes your additional defines. You can then create a cpp project that only includes the boards.txt you have created for source control.

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