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 and git (Read 3401 times)
wesch
Junior Member
**
Offline


Posts: 19
Joined: Aug 22nd, 2018
Visual Micro and git
Aug 22nd, 2018 at 9:52pm
Print Post  
I'm using Visual Micro with VS 2017 and have my project in git. Everytime I compile the project two files in folder __vm are changed:
Compile.vmps.xml
Configuration.Debug.vmps.xml

Thus, if I have committed some changes and compile again, those files are recognized as changed and I have to commit again, even if there are no changes in my sources. Putting them to gitignore doesn't seem to work, or maybe I'm doing something wrong:
# Visual Micro
__vm/
**/*.vmps.xml

How can I prevent those files from being recognized as changed?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro and git
Reply #1 - Aug 23rd, 2018 at 12:02pm
Print Post  
Yes they are not part of your source code
  
Back to top
IP Logged
 
wesch
Junior Member
**
Offline


Posts: 19
Joined: Aug 22nd, 2018
Re: Visual Micro and git
Reply #2 - Aug 23rd, 2018 at 4:36pm
Print Post  
I, know, that was not my problem.
It seems, these files are included in the solution file and thus everytime I compile, they are deleted, newly created and added to the solution. This requires a commit on git, which is not necessary if they do not belong to the sources.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro and git
Reply #3 - Aug 23rd, 2018 at 8:54pm
Print Post  
I see. The file add/remove is used only to force VS intellisense to connect arduino code. In previous tests we found that VS does not refresh its intellisense without this mechanism but it is due for re-test since so many microsoft vs changes of the past year.

If I recall there is a "tools>options>don't re-add header" option which hasn't been discussed for a long time but should work. In this case if intellisense doesn't function correctly after adding libraries or changing board etc. then close and re-open the project or delete the vs-intllisense.h file in the _vm folder then build.

I will try to do some testing over the next week or so.

  
Back to top
IP Logged
 
wesch
Junior Member
**
Offline


Posts: 19
Joined: Aug 22nd, 2018
Re: Visual Micro and git
Reply #4 - Aug 23rd, 2018 at 9:31pm
Print Post  
Can you point me a bit more precise to that option?
I use a german Visual Studio and cannot find that option. In which section have I to look? VC++ project settings? There I do not see something similar.
  
Back to top
 
IP Logged
 
wesch
Junior Member
**
Offline


Posts: 19
Joined: Aug 22nd, 2018
Re: Visual Micro and git
Reply #5 - Aug 23rd, 2018 at 9:41pm
Print Post  
I Have had a look into both xml files to check the differences.

In both, the <Board> tag is marked as different. But comparing the text, they seem to be identically, cannot see any differences. The git compare tool mark them as deleted and added again.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro and git
Reply #6 - Aug 23rd, 2018 at 10:00pm
Print Post  
I will look but you can exclude the _vm folder from git
  
Back to top
IP Logged
 
wesch
Junior Member
**
Offline


Posts: 19
Joined: Aug 22nd, 2018
Re: Visual Micro and git
Reply #7 - Aug 24th, 2018 at 1:03pm
Print Post  
As I wrote in my first post, I've tried already to exclude __vm from git without success.

But one more (may be silly) idea.
The lines in those xml files with the <Board> tag are extremly large. And as I wrote, they are recognized as changed allthough if there are no changes. Could it simply be, that git comparation (which uses hash values) cannot handle such large lines?

Just an idea.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint