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 Cleaning up. (Read 2485 times)
gelius59
Junior Member
**
Offline


Posts: 82
Location: Ukraine
Joined: Oct 6th, 2012
Cleaning up.
Sep 28th, 2019 at 11:15am
Print Post  
Hello
In my practice, using Vs micro there is a need to clear the project after compilation.
For example, in the folder along the path C: \ Users \ gelius59 \ Documents \ Arduino there is a test1 folder, in it
Test1.ino
After compilation, or after creating a project in Vs micro, files appear
test1.vcxproj.user
test1.vcxproj.filters
test1.vcxproj
And the __vm and Release folders
Is it possible to automate the process of deleting these folders and files directly from the Vs micro extension, so that only the Test1.ino file would remain
I do this, either manually by deleting, or by deleting the project and replacing it with a new one
« Last Edit: Sep 28th, 2019 at 11:19am by gelius59 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cleaning up.
Reply #1 - Sep 28th, 2019 at 12:19pm
Print Post  
It is unclear when you need the cleaned version? Doing so would loose the board/port/debug and options selections which would not make sense most of the time.

Are you looking for a way to zip or create a clean sketch on demand? I would like to understand more about the reason for needing this?
  
Back to top
WWW  
IP Logged
 
gelius59
Junior Member
**
Offline


Posts: 82
Location: Ukraine
Joined: Oct 6th, 2012
Re: Cleaning up.
Reply #2 - Sep 28th, 2019 at 12:31pm
Print Post  
Yes tim
It is to do, on demand.
For example, some button in the Vs micro extension.
What is this for, a simple case.
Take the problem with grbl_controller_esp32, with the new Vs micro 27.1.
The compilation was successful only when I cleaned the project from the files I am talking about.
I have seen similar things before.
But if it is done (cleaning), it is difficult, then it is not necessary.
I will do it manually.
I hope you understand me.
With respect
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cleaning up.
Reply #3 - Sep 28th, 2019 at 12:53pm
Print Post  
Thanks, yes I understand. It makes sense. We will also be adding facility to clone/copy and zip.

tips: 

For grbl reset, deleting the .vxcproj was sufficient. 
You can also put .ino files in the \src folder. In this case it becomes easier to clean the project because there will not be source code in the project folder.

« Last Edit: Sep 28th, 2019 at 12:54pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
gelius59
Junior Member
**
Offline


Posts: 82
Location: Ukraine
Joined: Oct 6th, 2012
Re: Cleaning up.
Reply #4 - Sep 28th, 2019 at 12:57pm
Print Post  
I tried it for verification.
Installed Allow Code in Any Subfolder in True
Compiling the grbl_controller_esp32 project with previous errors.
Installed Allow Code in Any Subfolder in False
Again compilation with errors
I’m cleaning the project.
Compilation successfully
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cleaning up.
Reply #5 - Sep 28th, 2019 at 1:09pm
Print Post  
That is correct. 

The "Allow Code in Any Subfolder" property only affects "File>Open>Arduino" the first time it is used for an existing sketch. That is when the .vcxproj is created. 

You would need to delete the .vcxproj and use "File>Open>Arduino" project again to have the change in ."Allow Code in Any Subfolder" applied.

After a project is created, users can add files and folders to the project using the solution explorer. It is for the user to ensure that only arduino compatible locations are used. The "Show all files" icon above the solution explorer+ the right click "Include/Exclude" commands, give users full control of what is in a project. 

There are no "hidden" settings that are deleted when a .vcxproj is deleted, it is just what you see in the solution explorer.

So an alternative for grbl was simply to right click and Remove or Exclude the one folder that contained non-arduino code.

I reommend studying the two solution explorer views available with the "Show all files" button. It makes it easier to see what is known to the .vcxproj file.
  
Back to top
WWW  
IP Logged
 
gelius59
Junior Member
**
Offline


Posts: 82
Location: Ukraine
Joined: Oct 6th, 2012
Re: Cleaning up.
Reply #6 - Sep 28th, 2019 at 1:15pm
Print Post  
Ok Tim
I understood you.
And it's good that you understood me. Smiley
I hope you add micro to Visual micro, clear, copy, etc.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cleaning up.
Reply #7 - Sep 28th, 2019 at 1:18pm
Print Post  
Yes sounds good thanks
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint