Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Sketch won't upload after crash and Compile.vmps.xml corruption - SOLVED (Read 100 times)
FrankP
Member
***
Offline



Posts: 111
Sketch won't upload after crash and Compile.vmps.xml corruption - SOLVED
Oct 6th, 2019 at 3:29pm
 
VS2017/VM 1.1908.5

My system crashed overnight with several VS/VM windows open, and I had to physically turn off the PC to get it back. After it came up and I opened a Arduino sketch in VS, I got an error message saying VM couldn't open Compile.vmps.xml.  I looked at this file and it was obviously corrupted (all NULLs), so I deleted it, expecting it to be re-created on the next compile (it was).

However, the sketch still wouldn't upload, so I took another look and found the file 'Upload.vmps.xml' was also corrupted.  I retrieved previous copies of both the 'Compile' and 'Upload' files from my [shameless plug here] AJC Active Backup archive, and then all was well.

So, if you have strange behavior after a crash, you might try looking in the project's _vm folder for corrupted files.

Frank
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10568
United Kingdom
Re: Sketch won't upload after crash and Compile.vmps.xml corruption - SOLVED
Reply #1 - Oct 6th, 2019 at 3:39pm
 
Never heard of this issue but restarting the ide after delteing the file would have allowed the recreate to happen. Opening or making active another project also drops the runtime cache.  It sounds like you might want to run chkdsk on your disk.

You can delete the _vm folder then close and restart the ide.
Back to top
« Last Edit: Oct 6th, 2019 at 4:11pm by Visual Micro »  
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print