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
Hot Topic (More than 8 Replies) vMicro solution under source control is unbuildable (Read 2676 times)
mdevol
Newbies
*
Offline


Posts: 5
Location: Sierra Vista, AZ
Joined: Mar 24th, 2021
vMicro solution under source control is unbuildable
Mar 24th, 2021 at 6:13pm
Print Post  
When a vMicro solution is under TFS source control, a build fails because it gets an "Access Denied" exception trying to copy the .cpp/.h files (build output attached).  When files are under TFS source control, the read only attribute is set unless it has been checked out for edit.  From the error message/stack dump vMicro must be trying to open the file for write access and is denied because of the read-only attribute. A non-source control version of the solution successfully builds .  Any suggestions on how to get vMicro to be compatible with TFS source control?
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
mdevol
Newbies
*
Offline


Posts: 5
Location: Sierra Vista, AZ
Joined: Mar 24th, 2021
Re: vMicro solution under source control is unbuildable
Reply #1 - Mar 24th, 2021 at 6:22pm
Print Post  
Forgot to mention that I'm using VS 2017 and vMicro 2021.106.0
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2143
Joined: Feb 13th, 2019
Re: vMicro solution under source control is unbuildable
Reply #2 - Mar 24th, 2021 at 11:28pm
Print Post  
If you run Visual Studio as an Administrator does the error persist?
  
Back to top
 
IP Logged
 
mdevol
Newbies
*
Offline


Posts: 5
Location: Sierra Vista, AZ
Joined: Mar 24th, 2021
Re: vMicro solution under source control is unbuildable
Reply #3 - Mar 25th, 2021 at 3:25am
Print Post  
Yes
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro solution under source control is unbuildable
Reply #4 - Mar 25th, 2021 at 3:36am
Print Post  
The problem is that we can not access the build folder due to a permissions problem. Possibly a virus checker preventing it or just windows permissions. This is unrelated to the permissions/readonly state of the source code.

The error is "System.UnauthorizedAccessException: Access to the path ... is denied"

Code
Select All
ather_m0_express/Debug 



Does the build folder exist? It should be automatically created.




« Last Edit: Mar 25th, 2021 at 3:38am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
mdevol
Newbies
*
Offline


Posts: 5
Location: Sierra Vista, AZ
Joined: Mar 24th, 2021
Re: vMicro solution under source control is unbuildable
Reply #5 - Mar 26th, 2021 at 2:28am
Print Post  
Yes the build folder exists and the source files are in it.  If I remove the read-only attributes, the solution builds just fine.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro solution under source control is unbuildable
Reply #6 - Mar 29th, 2021 at 9:26pm
Print Post  
Thank you, we have replicated this issue and will produce a fix over the next 24 hours.
  
Back to top
WWW  
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2143
Joined: Feb 13th, 2019
Re: vMicro solution under source control is unbuildable
Reply #7 - Mar 29th, 2021 at 10:26pm
Print Post  
Please try the latest release (21.01.06.12) from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
 
IP Logged
 
mdevol
Newbies
*
Offline


Posts: 5
Location: Sierra Vista, AZ
Joined: Mar 24th, 2021
Re: vMicro solution under source control is unbuildable
Reply #8 - Apr 2nd, 2021 at 5:45pm
Print Post  
Thank-you, that has fixed my problem.  Will this be incorporated into the next release of VisualMicro?  Also, I noticed with this updated that when I loaded the solution I got the following message in VS studio's status bar at the bottom:  Visual Studio Intellisense - Unable to write intellisense of sketch Access to the path k.vsarduino.h' is denied.

I checked the file and the read-only attribute is set.  There are 2 other files in that directory and their read-only attribute is not set.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro solution under source control is unbuildable
Reply #9 - Apr 7th, 2021 at 10:31pm
Print Post  
Thanks, yes it will be in the next release. We do need to write to the files in the _vm folder. I suggest you exclude that folder from source control. The folder does not contain sources that need to be backed up. However for the next release we will see if we can unset the readonly flag when required.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint