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) Clean solution (Read 9117 times)
sixeyes2
Junior Member
**
Offline


Posts: 93
Location: Guildford, United Kingdom
Joined: Dec 19th, 2011
Clean solution
Jan 27th, 2012 at 10:54pm
Print Post  
Could Clean Solution actually delete the temporary build files created by Arduino?

Tonight I've had issues with VM's cache. It doesn't happen very often and I'm not sure what causes it.

Each time I think this should be sorted by Build / Clean Solution, but cleaning the solution doesn't cure the problem.

It is cured by deleting the AppData\Local\VMicro\Arduino\Builds\ProjectName folder.

Iain
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Clean solution
Reply #1 - Jan 27th, 2012 at 11:23pm
Print Post  
Yep keep forgetting to do that please add to codeplex. I would also like to make the change detection system better. It's supposed to be solid! So what sort of file changes were you making that broke it? Do you think it breaks with certain types of compile failures?
  
Back to top
WWW  
IP Logged
 
sixeyes2
Junior Member
**
Offline


Posts: 93
Location: Guildford, United Kingdom
Joined: Dec 19th, 2011
Re: Clean solution
Reply #2 - Jan 28th, 2012 at 8:23am
Print Post  
Codeplex issue added.

I wish I understood what was causing the problem. If I knew I'd try and avoid doing them. In my most recent case I'd just created a new project. No idea what I did wrong.

Iain
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Clean solution
Reply #3 - Jan 28th, 2012 at 9:49pm
Print Post  
maybe the problem is that it uses the sketch name in the path to the cache. moving the temp compile files to each projects bin folder will be a better system. i will ensure that is in the next build.

out of interest have you been creating projects with same name as another project (deleted or current)?

if not then the next time it happens please zip and send me the temp folder before you delete it
« Last Edit: Jan 28th, 2012 at 9:50pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
sixeyes2
Junior Member
**
Offline


Posts: 93
Location: Guildford, United Kingdom
Joined: Dec 19th, 2011
Re: Clean solution
Reply #4 - Jan 29th, 2012 at 12:02am
Print Post  
I think you may have hit the problem on the head. I've created projects with the same name in different folders, especially with the project re-organisation I've been doing the last couple of weeks. 

If you think you've got a solution that's great.

As an alternative you might consider using the GUID created by VS when it creates a new project.

Iain
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Clean solution
Reply #5 - Jan 29th, 2012 at 12:52am
Print Post  
yep, have a solution or two but the compile cache should have auto detected and refreshed. Anyway as you say it's easily sorted thanks Smiley
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Clean solution
Reply #6 - Feb 8th, 2012 at 6:55pm
Print Post  
The next version (28) creates a temp folder based on guids instead of sketch name. 

I don't think anyone will need it now but the std. Visual Studio "Clean" commands clear compiler cache. 

There are some new options to enable you to specify where you want the temp build folder to be located :-

1) Always use visual studio project build folder
or
2) Fixed build folder path
or
3) Automatic (default)
  
Back to top
WWW  
IP Logged
 
sixeyes2
Junior Member
**
Offline


Posts: 93
Location: Guildford, United Kingdom
Joined: Dec 19th, 2011
Re: Clean solution
Reply #7 - Mar 1st, 2012 at 10:32am
Print Post  
Tim@Visual Micro wrote on Feb 8th, 2012 at 6:55pm:
The next version (28) creates a temp folder based on guids instead of sketch name. 

I don't think anyone will need it now but the std. Visual Studio "Clean" commands clear compiler cache. 

The latest release is 27. Does this contain this fix?

I tried a clean last night and it didn't work. Had to delete the files myself.

I'd deleted some code, including virtual methods and wanted to guarantee that all files were updated.

I'm using VS2008 v9.0.30729.1 and VM v27.

Iain
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Clean solution
Reply #8 - Mar 1st, 2012 at 2:05pm
Print Post  
No sorrry it will be in the next. It's almost done but turned into a larger job because the build folder needs to be passed to the compiler when previously the compiler worked it out for itself. Hopefully next weekend all being well. 

In the meantime you could do it yourself using a visual studuio macro but it's prob easier just to click on explorer:)
  
Back to top
WWW  
IP Logged
 
sixeyes2
Junior Member
**
Offline


Posts: 93
Location: Guildford, United Kingdom
Joined: Dec 19th, 2011
Re: Clean solution
Reply #9 - Mar 4th, 2012 at 7:31am
Print Post  
Fair enough. I think I can manage using explorer until then.

Iain
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint