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 [2]  Send TopicPrint
Very Hot Topic (More than 25 Replies) "Compile" shortcut not working (Read 5558 times)
El Dr. Gusman
Junior Member
**
Offline


Posts: 22
Joined: Feb 4th, 2020
Re: "Compile" shortcut not working
Reply #20 - Mar 9th, 2020 at 7:39pm
Print Post  
It does exactly the same with an empty configuration, when I try to compile from a vsMicro project the compilation dropdown gets cleared and it does nothing at all and unless I execute twice manually the "Build" command from vsMicro menu.
It doesn't even lets me to enter again to the configuration manager when the dropdown is "cleared", it does not react to any interaction.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: "Compile" shortcut not working
Reply #21 - Mar 9th, 2020 at 7:44pm
Print Post  
Thanks. It seems like it might be a vs bug. Maybe a complete waste of time but there is a vs update to 16.4.5.
  
Back to top
WWW  
IP Logged
 
El Dr. Gusman
Junior Member
**
Offline


Posts: 22
Joined: Feb 4th, 2020
Re: "Compile" shortcut not working
Reply #22 - Mar 9th, 2020 at 7:53pm
Print Post  
The thing is that it has been working without problems until now and it only happens with the vsMicro projects, the other ones work without problems.

I'm updating VS, will test it to see if it makes any difference.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: "Compile" shortcut not working
Reply #23 - Mar 9th, 2020 at 8:01pm
Print Post  
Thanks, we don't have other reports of this but always have an open mind. Vs has been through huge changes for vs2019 async. Visual Micro had to do same. So first we need to be on latest vs, if still an issue then we can look at if status bar messages or some other notification we are issueing is causing vs to break. These are code areas that changed in visual micro when vs2019 was release. However as I have said it would be something that people would report if it was an obvious issue. You do have a lot of extensions installed so that does add a layer or "other unknowns" but we will test with .net core and few other projects in a solution to see if we can see something.

Which version of visual micro is installed in extensions>extension manager>installed?
What was the update you mentioned that you applied. Was it a vs extension/ plugin or core packge update?
Does ths issue happen if you remove the project you updated from the solution?
Does the issue happen if you switch our the visual micro arduino project for a simple test?
  
Back to top
WWW  
IP Logged
 
El Dr. Gusman
Junior Member
**
Offline


Posts: 22
Joined: Feb 4th, 2020
Re: "Compile" shortcut not working
Reply #24 - Mar 9th, 2020 at 8:02pm
Print Post  
Updated, no difference at all.
  
Back to top
 
IP Logged
 
El Dr. Gusman
Junior Member
**
Offline


Posts: 22
Joined: Feb 4th, 2020
Re: "Compile" shortcut not working
Reply #25 - Mar 9th, 2020 at 8:06pm
Print Post  
Which version of visual micro is installed in extensions>extension manager>installed?

1912.28.2

What was the update you mentioned that you applied. Was it a vs extension/ plugin or core packge update?

I did not mention any update, just moved a project from the root to a solution folder.

Does this issue happen if you remove the project you updated from the solution?

Yes, the problem is in the .sln file

Does the issue happen if you switch our the visual micro arduino project for a simple test? 

As I said, no, this only happens in this .sln, that's why I left the link to the git in order that you can check what's corrupt in it.

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: "Compile" shortcut not working
Reply #26 - Mar 9th, 2020 at 8:19pm
Print Post  
I see there is some "build" text in the other output windows so we need a clean test. Please close vs and then re-open it and do nothing other then select and build the arduino project. Then show all the output window text again. You can copy paste the text from output windows instead of making video.
  
Back to top
WWW  
IP Logged
 
El Dr. Gusman
Junior Member
**
Offline


Posts: 22
Joined: Feb 4th, 2020
Re: "Compile" shortcut not working
Reply #27 - Mar 9th, 2020 at 8:25pm
Print Post  
That was the output of the first "build" command, the one that worked.
The "build solution" command, the one that fails, does not output anything to any pane.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: "Compile" shortcut not working
Reply #28 - Mar 9th, 2020 at 8:27pm
Print Post  
ah. Thanks. The .sln is simple xml so not much to see there.

Random thought to close vs, delete the .vs folder below the solution then re-open it. Maybe the ms intellisense db is corrupted.If you backup the .vs folder before delete we might be able to look at it if the issue is resolved.
  
Back to top
WWW  
IP Logged
 
El Dr. Gusman
Junior Member
**
Offline


Posts: 22
Joined: Feb 4th, 2020
Re: "Compile" shortcut not working
Reply #29 - Mar 9th, 2020 at 8:39pm
Print Post  
Already did that... deleted the .vs, all the obj and bin folders, cleaned the project...

And it's a problem in the .sln, this is the piece of file that's causing the problem, if I remove it the compilation works but all the projects are shown on the solution's root, a total mess.

     GlobalSection(NestedProjects) = preSolution
           {F17C190D-3FAA-47F0-9ED2-524DDE73D377} = {CC858B4C-7E91-49D2-B368-7CF22CA51544}
           {568499E4-1DD3-4332-AF1D-6CDC987E4D58} = {CD46AFD0-C892-49C9-8B14-352E9727C672}
           {68673954-4452-44AF-B114-FE12ED7271D8} = {F2E0674E-2817-4388-B64C-1FCBC8CB8EA6}
           {3F9B3D80-0636-431D-A4D8-CC7DF443A6D3} = {CD46AFD0-C892-49C9-8B14-352E9727C672}
           {7BC89C1E-AA1E-4124-940B-F82E682DF3E9} = {F2E0674E-2817-4388-B64C-1FCBC8CB8EA6}
           {C5F80730-F44F-4478-BDAE-6634EFC2CA88} = {CD46AFD0-C892-49C9-8B14-352E9727C672}
           {19F6D799-8CC6-4709-88A2-E6BA0F0348CF} = {CD46AFD0-C892-49C9-8B14-352E9727C672}
           {4F4D454D-25BF-4663-9AEE-E180D05559DA} = {CD46AFD0-C892-49C9-8B14-352E9727C672}
           {44B9C055-B9AC-4355-97A4-D7FBB1A89814} = {EE68E536-3552-45FC-8B20-4CBB3AF038B1}
           {3BB9B133-BFB1-400A-BFA4-369D5F5B338A} = {EE68E536-3552-45FC-8B20-4CBB3AF038B1}
           {E26D48C9-0195-48D1-B1D5-F060B97546BA} = {573CF2E4-4C19-437C-996C-7F24048DA65C}
           {AF2125B8-2630-463E-87C1-E62242C0C0DE} = {EE68E536-3552-45FC-8B20-4CBB3AF038B1}
           {D0C2A8D3-4CAB-40B5-A9DD-0F2205F726D8} = {EE68E536-3552-45FC-8B20-4CBB3AF038B1}
           {CB61848F-9EC1-40C3-B0BB-6F7B66A877FA} = {EE68E536-3552-45FC-8B20-4CBB3AF038B1}
           {AC372084-4F0B-479D-A41A-559EF6343765} = {D5CEB9CD-BF73-41CA-867F-CCD52BFBA688}
           {13FB7E01-7294-4C83-92D8-D8782E8491C7} = {D5CEB9CD-BF73-41CA-867F-CCD52BFBA688}
           {4B69089C-CDB7-4642-AA35-2BDA4593EE7E} = {573CF2E4-4C19-437C-996C-7F24048DA65C}
           {3DBDA2EF-6254-4BF0-B405-896F31E50D01} = {573CF2E4-4C19-437C-996C-7F24048DA65C}
           {5F8AA569-32B5-4CB4-A281-DF412C18196C} = {B616BDC6-CF82-42FF-990E-A0BDC300795F}
           {2D3A8B5F-1E3B-4BB8-911E-31B78444B872} = {B616BDC6-CF82-42FF-990E-A0BDC300795F}
     EndGlobalSection
  
Back to top
 
IP Logged
 
El Dr. Gusman
Junior Member
**
Offline


Posts: 22
Joined: Feb 4th, 2020
Re: "Compile" shortcut not working
Reply #30 - Mar 9th, 2020 at 8:42pm
Print Post  
Ok, more tests. If there are more than 8 vsMicro projects inside solution folders, not in the root, the compilation fails. Whenever I move one project to the solution's root all the projects compile again correctly.

So it's not a problem with the .sln, it's a problem with vsMicro, it fails if there are more than 8 projects under solution folders.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: "Compile" shortcut not working
Reply #31 - Mar 9th, 2020 at 8:46pm
Print Post  
Interesting, we don't have any limits. When you say "arduino projects" are the projects mostly shared c++ projects? I think I could see one arduino project (.vcxproj) and many other shared projects (.vcxitems)?
  
Back to top
WWW  
IP Logged
 
El Dr. Gusman
Junior Member
**
Offline


Posts: 22
Joined: Feb 4th, 2020
Re: "Compile" shortcut not working
Reply #32 - Mar 9th, 2020 at 8:51pm
Print Post  
No, there are only two shared projects and 8 C++ Arduino ones.

Here's a video showing this.

https://mega.nz/#!PWRkFYRY!ZVrPO7HxmXJEyfJGXLLV9dT5ApZbyfQaGqNinc6PU5A

And I have attached a screenshot with all the project structure.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: "Compile" shortcut not working
Reply #33 - Mar 9th, 2020 at 8:58pm
Print Post  
Thanks very much for the report and great effort. It sounds like we will be able to replicate. It will be very interesting because we don't keep track of open projects or care where they are located. I suspect we need to add some better exception reporting.

Thanks again.
  
Back to top
WWW  
IP Logged
 
El Dr. Gusman
Junior Member
**
Offline


Posts: 22
Joined: Feb 4th, 2020
Re: "Compile" shortcut not working
Reply #34 - Mar 9th, 2020 at 9:13pm
Print Post  
Glad to help Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint