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 5559 times)
El Dr. Gusman
Junior Member
**
Offline


Posts: 22
Joined: Feb 4th, 2020
"Compile" shortcut not working
Mar 9th, 2020 at 3:15pm
Print Post  
Hi. My Arduino IDE suddenly has stopped accepting the "compile" shortcut.
I have F6 as the compile shortcut and until now it worked as expected, but suddenly it does not work.
Whenever I press "F6" the active configuration drop down gets cleared and it does not compile anything. After that I can't compile any project at all independently of it being or not an Arduino project and I must restart VS. If I compile from the "Compile" option in the project's context menu it works and all other project types also work from the menu and using the shortcut, the problem starts when using the shortcut in an Arduino project.

I have tried to uninstall and reinstall the extension from Visual Studio with no luck.

Also, it seems to be solution specific, a new solution does work but the main one where I'm using vsMicro does not.

The solution is fully published on Github: https://github.com/gusmanb/zxshield

Any ideas?
  
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 #1 - Mar 9th, 2020 at 4:51pm
Print Post  
I didn't know there is an F6. Do you mean F5? What short cut keys show on the vs Debug menu for Start and "Sart without debugging"?

fyi: I can say that we don't mess with shortcut keys or capture edit keystrokes. We only response to Visual Studio events such as BuildSolution or BuildProject. I think you are saying that clicking the menu item Build or Debug>Start always works? We don't know the difference between a keyboard launch and menu click.
  
Back to top
WWW  
IP Logged
 
El Dr. Gusman
Junior Member
**
Offline


Posts: 22
Joined: Feb 4th, 2020
Re: "Compile" shortcut not working
Reply #2 - Mar 9th, 2020 at 6:31pm
Print Post  
F6 is "compile solution". And yes, it does not make any difference between using "F6" or "compile solution" menu, both fail, but "compile" does work (until compile solution is used once).

Everything always worked and suddenly in the middle of a debug session it stopped compiling.

I have recorded a video with the problem. 

https://mega.nz/#!qOZTjYAS!YNm_R-Vsi2M_Gxq_JOTFd6zEDlsS3R0tvCtrEGknaI0
  
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 #3 - Mar 9th, 2020 at 6:35pm
Print Post  
Thanks we will investigate to see if we can see what might cause vs to fail in this way.

If you show the vMicro project toolbar or revie the Vmicro menu, do the visual micro build commands work?

« Last Edit: Mar 9th, 2020 at 6:35pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
El Dr. Gusman
Junior Member
**
Offline


Posts: 22
Joined: Feb 4th, 2020
Re: "Compile" shortcut not working
Reply #4 - Mar 9th, 2020 at 6:39pm
Print Post  
Nope, it makes no difference. 
Also, it must be something corrupted in the .sln file, if I open the projects individually it works.
  
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 #5 - Mar 9th, 2020 at 6:44pm
Print Post  
additonal questions

1) can we see what shows in the "Build" output window when the problem happens
2) Can you confirm if the "vMicro>General>Active Code" has priority over the solution explorer?
3) Does this problem happen if you open the project in a solution of it's own without the c# projects?
4) When the issue happens is the cursor focussed in the code editor window or on the solution explorer or some other tool window?


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


Posts: 22
Joined: Feb 4th, 2020
Re: "Compile" shortcut not working
Reply #6 - Mar 9th, 2020 at 6:44pm
Print Post  
Ok, something else. Fiddling around with the vMicro menu it started compiling again. The first time it fails and the second one starts working. Also, I see that the first time I try it from the menu the compilation configuration dropdown gets restored, so the problem must be there.

Compile solution -> stops working
Compile from project context menu -> does not work
Compile once from the vsMicro menu -> does not work BUT the compile config dropdown shows again the correct selection
Compile again from the vsMicro menu -> works
  
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 #7 - Mar 9th, 2020 at 6:45pm
Print Post  
Ah our messages crossed.

Can you confirm the types of all the projects in the solution so we can try to reproduce?

Thanks
« Last Edit: Mar 9th, 2020 at 6:46pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
El Dr. Gusman
Junior Member
**
Offline


Posts: 22
Joined: Feb 4th, 2020
Re: "Compile" shortcut not working
Reply #8 - Mar 9th, 2020 at 6:47pm
Print Post  
1) That's what was shown on the video on the bottom pane, it shows nothing at all.
2) Confirmed
3) The problem only happens with this concrete solution, that's why I added a link to the git of the project so you can download it
4) It doesn't matters, I have tested from the VS menu, VS context menu and code window and "compile solution" has the same effect always.
  
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 #9 - Mar 9th, 2020 at 6:48pm
Print Post  
Our messages crossed again.

It is strange however I can say that when we compile we also refresh the intellisense which means writing back to the VS CLCompile settings in the project properties. We have to ask VS for the current confiuration name such as debug/release and then set the settings for that configuration. It sounds like this is forcing vs to get things right again.


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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: "Compile" shortcut not working
Reply #10 - Mar 9th, 2020 at 6:49pm
Print Post  
The window at the bottom of the video is the visual micro output window. I would like to see the vs output window, it's called "Output" not "Micro Output".
  
Back to top
WWW  
IP Logged
 
El Dr. Gusman
Junior Member
**
Offline


Posts: 22
Joined: Feb 4th, 2020
Re: "Compile" shortcut not working
Reply #11 - Mar 9th, 2020 at 6:50pm
Print Post  
There are multiple project types: .net Core, classic desktop, SpectNetIDE, Arduino

But, again, it was working during all the development process and suddenly today without changing nothing it stopped working.

Well, there has been one change I think, I moved the "ZXMIDIFirmware" project from the root to a solution folder, "MIDI" (not physically moved the folder, just organized it with a "solution folder").
  
Back to top
 
IP Logged
 
El Dr. Gusman
Junior Member
**
Offline


Posts: 22
Joined: Feb 4th, 2020
Re: "Compile" shortcut not working
Reply #12 - Mar 9th, 2020 at 6:55pm
Print Post  
Tim@Visual Micro wrote on Mar 9th, 2020 at 6:49pm:
The window at the bottom of the video is the visual micro output window. I would like to see the vs output window, it's called "Output" not "Micro Output".


No, that's the "Output" window but with the "Show output from" dropdown set to "Micro build". Which one do you want to see? There's no "Build" dropdown option when I activate a vsMicro project...
  

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 #13 - Mar 9th, 2020 at 6:56pm
Print Post  
The drop down list is the words "Micro Build"  Smiley
  
Back to top
WWW  
IP Logged
 
El Dr. Gusman
Junior Member
**
Offline


Posts: 22
Joined: Feb 4th, 2020
Re: "Compile" shortcut not working
Reply #14 - Mar 9th, 2020 at 7:01pm
Print Post  
Sorry, what do you mean? Yes, as I said that's the "Output" window showing the "Micro Build" output because it's selected on the dropdown. Which option do you want to see (as an advance, "Compilar" which means "Compile" shows nothing)?

  

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 #15 - Mar 9th, 2020 at 7:03pm
Print Post  
1) When the problem happens I would like to see what is in all of them or for you to see if there is some message about a problem. I don't know your spoken laguage so the names don't mean much to me. The normal vs messages are usally in an output window called "Output"
2) Which extensions do you have installed? Help>About>Diag?

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


Posts: 22
Joined: Feb 4th, 2020
Re: "Compile" shortcut not working
Reply #16 - Mar 9th, 2020 at 7:19pm
Print Post  
The "output" window is what you see there, but usually it has the "build" (compilar) dropdown menu selected. 

As I said, there is no output at all in none of the different outputs when the problem happens, it's like VS doesn't starts the build phase, vsMicro "clears" the debug/release config dropdown and then VS doesn't knows what to do until vsMicro "Build" command re-sets it.

Here is a video where you can see it.
https://mega.nz/#!KDRDEILL!hm2A89bPvWQZ7vU-It_Q7CtHnWqeIfbx3A70WejKNEM

About extensions, there's no "Diag" option, it's "DxDiag" and that's the DirectX diagnostic tool... Maybe you meant "copy info"? This is VS2019 in case you haven't seen it.

I only have the Xamarin extensions by MS, vsMicro and SpectNetIde, which I have tried to disable for testing with no luck.

.........

Microsoft Visual Studio Community 2019
Versión 16.4.4
VisualStudio.16.Release/16.4.4+29728.190
Microsoft .NET Framework
Versión 4.8.03752

Versión instalada: Community

Visual C++ 2019   00435-60000-00000-AA869
Microsoft Visual C++ 2019

Administrador de paquetes NuGet   5.4.0
Administrador de paquetes NuGet de Visual Studio. Para obtener más información acerca de NuGet, visite https://docs.nuget.org/

Arduino IDE for Visual Studio by Visual Micro   19.0
Visual Micro is an Arduino Compatible IDE for Visual Studio 2015-2019. For more information and forum please visit www.visualmicro.com.

Asistentes de Microsoft Visual C++   1.0
Asistentes de Microsoft Visual C++

ASP.NET and Web Tools 2019   16.4.460.23317
ASP.NET and Web Tools 2019

ASP.NET Web Frameworks and Tools 2019   16.4.460.23317
Para obtener más información, visite https://www.asp.net/

Azure Functions and Web Jobs Tools   16.4.460.23317
Azure Functions and Web Jobs Tools

Extensibility Message Bus   1.2.0 (d16-2@8b56e20)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

Extensión IntelliCode   1.0
Información detallada de la extensión Visual Studio IntelliCode

Extensiones de herramientas de contenedor de Visual Studio (versión preliminar)   1.0
Vea, administre y diagnostique contenedores en Visual Studio.

Herramientas comunes de Windows Azure   1.10
Ofrece servicios comunes para su uso con los servicios móviles de Microsoft Azure y Microsoft Azure Tools.

Herramientas de Azure App Service v3.0.0   16.4.460.23317
Herramientas de Azure App Service v3.0.0

Herramientas de C#   3.4.1-beta4-19614-01+165046097562cfe65b09c2e9a9d8f7cd88526f2c
Los componentes de C# utilizados en el IDE. En función del tipo de proyecto y la configuración, se podría utilizar una versión diferente del compilador.

Herramientas de entrega continua de Microsoft para Visual Studio   0.4
Configuración simplificada de las canalizaciones de Azure DevOps desde el IDE de Visual Studio.

Herramientas de TypeScript   16.0.11031.2001
Herramientas de TypeScript para Microsoft Visual Studio

Herramientas de Visual Basic   3.4.1-beta4-19614-01+165046097562cfe65b09c2e9a9d8f7cd88526f2c
Los componentes de Visual Basic utilizados en el IDE. En función del tipo de proyecto y la configuración, se podría utilizar una versión diferente del compilador.

Microsoft Azure Tools   2.9
Microsoft Azure Tools para Microsoft Visual Studio 2019 - v2.9.21016.1

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual Studio Tools para contenedores   1.1
Desarrolle, ejecute y valide sus aplicaciones de ASP.NET Core en el entorno de destino. Presione F5 para ejecutar la aplicación directamente en un contenedor con opción de depuración, o bien presione CTRL + F5 para editar y actualizar la aplicación sin necesidad de recompilar el contenedor.

Mono Debugging for Visual Studio   16.5.24 (1fafd7e)
Support for debugging Mono processes with Visual Studio.

Paquete del host de adaptador de depuración de Visual Studio Code   1.0
Capa de interoperabilidad para el hospedaje de adaptadores de depuración de Visual Studio Code en Visual Studio

Paquete VC de Microsoft Visual Studio   1.0
Paquete VC de Microsoft Visual Studio

ProjectServicesPackage Extension   1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

Spect.NET IDE for ZX Spectrum   2.0.6
Visual Studio 2019 Integrated Development Environment for ZX Spectrum 48/128/+2/+3

SQL Server Data Tools   16.0.61912.09160
Microsoft SQL Server Data Tools

Test Adapter for Boost.Test   1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test.  The use terms and Third Party Notices are available in the extension installation directory.

Test Adapter para Google Test   1.0
Habilita las herramientas de prueba de Visual Studio con las pruebas unitarias escritas para Google Test. Los términos de uso y los avisos de terceros están disponibles en el directorio de instalación de la extensión.

Visual C++ for Linux Development   1.0.9.29512
Visual C++ for Linux Development

Visual F# Tools 10.4 para F# 4.6   16.4.0-beta.19556.5+e7597deb7042710a7142bdccabd6f92b0840d354
Herramientas de Microsoft Visual F# 10.4 para F# 4.6

Visual Studio Tools para CMake   1.0
Visual Studio Tools para CMake

Visual Studio Tools para CMake   1.0
Visual Studio Tools para CMake

Visual Studio Tools para contenedores   1.0
Visual Studio Tools para contenedores

VisualStudio.DeviceLog   1.0
Información sobre el paquete

VisualStudio.Foo   1.0
Information about my package

VisualStudio.Mac   1.0
Mac Extension for Visual Studio

Xamarin   16.4.000.309 (d16-4@1d551f9)
Extensión de Visual Studio para habilitar la implementación de Xamarin.iOS y Xamarin.Android.

Xamarin Designer   16.4.0.475 (remotes/origin/d16-4@ac250f5aa)
Extensión de Visual Studio para habilitar las herramientas de Xamarin Designer en Visual Studio.

Xamarin Templates   16.4.25 (579ee62)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK   10.1.3.7 (d16-4/d66aed0)
Xamarin.Android Reference Assemblies and MSBuild support.
    Mono: fd9f379
    Java.Interop: xamarin/java.interop/d16-4@c4e569f
    ProGuard: xamarin/proguard/master@905836d
    SQLite: xamarin/sqlite/3.28.0@46204c4
    Xamarin.Android Tools: xamarin/xamarin-android-tools/master@9f4ed4b


Xamarin.iOS and Xamarin.Mac SDK   13.10.0.17 (5f802ef)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
  
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 #17 - Mar 9th, 2020 at 7:25pm
Print Post  
In response to your question asking which output window I want to see. I want to see any that have any useful messages immediatly after the problem happens and to know the type of each project in the solution.
  
Back to top
WWW  
IP Logged
 
El Dr. Gusman
Junior Member
**
Offline


Posts: 22
Joined: Feb 4th, 2020
Re: "Compile" shortcut not working
Reply #18 - Mar 9th, 2020 at 7:28pm
Print Post  
Check the last video, I have gone through all of these and there's no output at all in none of them.
  
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 #19 - Mar 9th, 2020 at 7:32pm
Print Post  
Can you create a new configuration called something like VMDebug. Drop down the list of config names to create a new one.

Select the new configuration instead of Debug/Release

Open "Build>Configuration Manager". Uncheck all projects from build and deploy.

When working with your own configuration with all projects excluded from standard vs builds, do Visual Micro and VS work correctly?
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint