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 Solution/project with local paths only (Read 1090 times)
Frank R
Newbies
*
Offline


Posts: 5
Joined: Jun 14th, 2020
Solution/project with local paths only
Jan 28th, 2023 at 8:37pm
Print Post  
All my code is in a git repository and I have multiple clones (for different branches) on my machine. Because the Visual Micro *.vcxproj contain "relative" paths that are actually absolute path outside of the repository, there are a lot of changes-that-are-no-changes  and merge conflicts.

I've tried to move all dependencies to a directory within the clone.  This seems to be the solution mentioned in a similar topic: https://www.visualmicro.com/forums/YaBB.pl?num=1537389941/1

However, it seems that since 2018 is has become harder to achieve this:
- When I tried to put the (Arduino 2) IDE-zip in a place that is always the same, there's no way to specify the IDE path as it will always point to a directory within the extension's location.
- Visual Micro detected the zip and lists it as IDE 1.6/1.8. That does not seem to work, as the button for the board manager is not available for that IDE location.
- The Visual Micro extension path always seems to be present in the vcxproj file, regardless of the IDE setting.

I have not yet tried to get rid of the AppData paths yet.

I'm not sure how to proceed. Should I give up and learn to live with merge conflicts?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Solution/project with local paths only
Reply #1 - Jan 28th, 2023 at 8:53pm
Print Post  
Not sure but here is some info.

Arduino 2x is designed different to Arduino IDE 1x.. It doesn't matter where you install it because Visual Micro never accesses it and does not need to know where it is insalled. It would not make sense to attempt to configure the visual micro 1.6/1.8 arduino ide path to an arduino 2 path. That is why visual micro shows a seperate app for Arduino 2

Arduino 2x does not support the \portable folder in the same way that 1x IDE supports it,  For 1x iDE creating a portal folder below the IDE causes important paths to point to portable instead of users\name\appData......

Arduino 2 writes a text file (.yaml) arduino-cli.yaml and stores it in sers\name\appData...arduino-cli. It contains some paths.

I suggest using arduino 1x, unpacking it from zip and locating it along with a \portable sub folder.

arduino ide 1x installation location
  c:\MyCode\IDE\ArduinoIDE

create this folder below the ide location above
  c:\MyCode\IDE\ArduinoIDE\Portable

your own code location
  c:\MyCode\IDE\Sketchbook\Libraries
  c:\MyCode\IDE\Sketchbook\Projects
  c:\MyCode\IDE\Sketchbook\Projects\Project1

Important: Set your Arduino 1x sketchbook folder in the "IDE Locations" window (or in the "Arduino IDE") to c:\MyCode\IDE\Sketchbook. set the 


We will have a think about the visual micro extension folder, maybe we can copy the .h files that are included in the project to a folder below each project folder. We might be able to use macros for sketch_book and visual micro folder paths. This might avoid any need to locate things in special ways
« Last Edit: Jan 28th, 2023 at 9:17pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint