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....
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
vMicro solution under source control is unbuildable (Read 238 times)
mdevol
Newbies
*
Offline



Posts: 5
Sierra Vista, AZ
vMicro solution under source control is unbuildable
Mar 24th, 2021 at 6:13pm
 
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?
Back to top
 

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



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



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



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



Posts: 11006
United Kingdom
Re: vMicro solution under source control is unbuildable
Reply #4 - Mar 25th, 2021 at 3:36am
 
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:
C:/Users/mark.devol/AppData/Local/Temp/VMBuilds/PhoenixLink/adafruit_adafruit_feather_m0_express/Debug 



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




Back to top
« Last Edit: Mar 25th, 2021 at 3:38am by Tim@Visual Micro »  

Tim Leek
home
WWW  
IP Logged
 
mdevol
Newbies
*
Offline



Posts: 5
Sierra Vista, AZ
Re: vMicro solution under source control is unbuildable
Reply #5 - Mar 26th, 2021 at 2:28am
 
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: 11006
United Kingdom
Re: vMicro solution under source control is unbuildable
Reply #6 - Mar 29th, 2021 at 10:26pm
 
Thank you, we have replicated this issue and will produce a fix over the next 24 hours.
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 774
Re: vMicro solution under source control is unbuildable
Reply #7 - Mar 29th, 2021 at 11:26pm
 
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
Sierra Vista, AZ
Re: vMicro solution under source control is unbuildable
Reply #8 - Apr 2nd, 2021 at 6:45pm
 
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 'D:\Projects\USAEPG\Orion\Development\PLink\Firmware\PhoenixLink\__vm\PhoenixLin
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: 11006
United Kingdom
Re: vMicro solution under source control is unbuildable
Reply #9 - Apr 7th, 2021 at 11:31pm
 
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
 

Tim Leek
home
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print