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) build process stuck (Read 4998 times)
JamesFarmer
Junior Member
**
Offline


Posts: 58
Joined: Mar 1st, 2020
build process stuck
Mar 4th, 2020 at 3:07am
Print Post  
my build is not finsihing now stuck at 
Extracting .ino prototypes ...
\1.22.0-80-g6c4433a-5.2.0\bin\xtensa-esp32-elf-g++"   -DESP_PLATFORM -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DHAVE_CONFIG_H -DGCC_NOT_5_2_0=0 -DWITH_POSIX ls/sdk/include/config" ls/sdk/include/app_trace" ls/sdk/include/app_update" ls/sdk/include/asio" ls/sdk/include/bootloader_support" ls/sdk/include/bt" ls/sdk/include/coap" ls/sdk/include/console" ls/sdk/include/driver" ls/sdk/include/esp-tls" ls/sdk/include/esp32" ls/sdk/include/esp_adc_cal" ls/sdk/include/esp_event" ls/sdk/include/esp_http_client" ls/sdk/include/esp_http_server" ls/sdk/include/esp_https_ota" ls/sdk/include/esp_ringbuf" ls/sdk/include/ethernet" ls/sdk/include/expat" ls/sdk/include/fatfs" ls/sdk/include/freemodbus" ls/sdk/include/freertos" ls/sdk/include/heap" ls/sdk/include/idf_test" ls/sdk/include/jsmn" ls/sdk/include/json" ls/sdk/include/libsodium" ls/sdk/include/log" ls/sdk/include/lwip" ls/sdk/include/mbedtls" ls/sdk/include/mdns" ls/sdk/include/micro-ecc" ls/sdk/include/mqtt" ls/sdk/include/newlib" ls/sdk/include/nghttp" ls/sdk/include/nvs_flash" ls/sdk/include/openssl" ls/sdk/include/protobuf-c" ls/sdk/include/protocomm" ls/sdk/include/pthread" ls/sdk/include/sdmmc" ls/sdk/include/smartconfig_ack" ls/sdk/include/soc" ls/sdk/include/spi_flash" ls/sdk/include/spiffs" ls/sdk/include/tcp_transport" ls/sdk/include/tcpip_adapter" ls/sdk/include/ulp" ls/sdk/include/vfs" ls/sdk/include/wear_levelling" ls/sdk/include/wifi_provisioning" ls/sdk/include/wpa_supplicant" ls/sdk/include/xtensa-debug-module" ls/sdk/include/esp-face" ls/sdk/include/esp32-camera" ls/sdk/include/esp-face" ls/sdk/include/fb_gfx" -std=gnu++11 -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-missing-field-initializers -Wno-sign-compare -fno-rtti -c -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=108011 -DARDUINO_LOLIN_D32_PRO -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="LOLIN_D32_PRO" -DARDUINO_VARIANT="d32_pro" -DESP32 -DCORE_DEBUG_LEVEL=0 es\esp32" iants\d32_pro" raries\FS\src" raries\WiFiClientSecure\src" raries\WiFi\src" raries\HTTPClient\src" -I"C:\Users\Home\Documents\Arduino\libraries\ArduinoJson\src" raries\SPIFFS\src" raries\EEPROM\src" raries\Wire\src" raries\SPI\src" -I"C:\Users\Home\Documents\Arduino\libraries\bsec\src" d0.cpp" -o proc\sketch-gcc-e.cpp"
System.IO.FileNotFoundException: Could not find file proc\sketch-gcc-e.cpp'.
File name: proc\sketch-gcc-e.cpp'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
   at System.IO.File.ReadAllText(String path)
   at Visual.Micro.MiroAppAPI.SketchCompilerArduino.TryRunCTags(Board brd, List`1 includePaths, SketchLibraryListUnSorted knownLibs)
   at Visual.Micro.MiroAppAPI.SketchCompilerArduino._compile(SketchBuilder lsketch, String primaryClassName, Boolean verbose, Boolean isDebug)
   at Visual.Micro.MiroAppAPI.SketchCompilerArduino.compile(SketchBuilder lsketch, String primaryClassName, Boolean verbose, Boolean isDebug)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp._CompileDo(Object oProject, Boolean IsDebugStartCommand, Boolean isRebuild, Boolean UseGdbIfAvailable)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.CompileDo(Object oProject, Boolean IsDebugStartCommand, Boolean isRebuild, Boolean UseGdbIfAvailable)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.OnBeforeCommandEvent(String sGuid, Int32 ID, Object CustomIn, Object CustomOut, Boolean& CancelDefault)

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: build process stuck
Reply #1 - Mar 4th, 2020 at 3:10am
Print Post  
please follow the guide in yellow above and attach or email a .txt file. Both properties mentioned above need to be enabled for us to see the config.
  
Back to top
WWW  
IP Logged
 
JamesFarmer
Junior Member
**
Offline


Posts: 58
Joined: Mar 1st, 2020
Re: build process stuck
Reply #2 - Mar 4th, 2020 at 3:40am
Print Post  
Also getting visuial stuido for arduino (visual Micro) stop responding
  
Back to top
 
IP Logged
 
JamesFarmer
Junior Member
**
Offline


Posts: 58
Joined: Mar 1st, 2020
Re: build process stuck
Reply #3 - Mar 6th, 2020 at 7:49pm
Print Post  
attached is with both
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
JamesFarmer
Junior Member
**
Offline


Posts: 58
Joined: Mar 1st, 2020
Re: build process stuck
Reply #4 - Mar 6th, 2020 at 7:58pm
Print Post  
sorry the last file i did not copy all this one is correct there something wrong in this project or solution I can open a simple new solution it build correct
« Last Edit: Mar 6th, 2020 at 8:21pm by JamesFarmer »  

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: build process stuck
Reply #5 - Mar 6th, 2020 at 8:11pm
Print Post  
Maybe a virus checker issue but please zip and attach or email the following file. 0.cpp

more info...

This is the command that is run to create the file reported as missing. We can see the command is running okay but the next command fails to find the outputted file proc\sketch-gcc-e.cpp).

[code -gcc\1.22.0-80-g6c4433a-5.2.0\bin\xtensa-esp32-elf-g++"   -DESP_PLATFORM -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DHAVE_CONFIG_H -DGCC_NOT_5_2_0=0 -DWITH_POSIX ls/sdk/include/config" ls/sdk/include/app_trace" ls/sdk/include/app_update" ls/sdk/include/asio" ls/sdk/include/bootloader_support" ls/sdk/include/bt" ls/sdk/include/coap" ls/sdk/include/console" ls/sdk/include/driver" ls/sdk/include/esp-tls" ls/sdk/include/esp32" ls/sdk/include/esp_adc_cal" ls/sdk/include/esp_event" ls/sdk/include/esp_http_client" ls/sdk/include/esp_http_server" ls/sdk/include/esp_https_ota" ls/sdk/include/esp_ringbuf" ls/sdk/include/ethernet" ls/sdk/include/expat" ls/sdk/include/fatfs" ls/sdk/include/freemodbus" ls/sdk/include/freertos" ls/sdk/include/heap" ls/sdk/include/idf_test" ls/sdk/include/jsmn" ls/sdk/include/json" ls/sdk/include/libsodium" ls/sdk/include/log" ls/sdk/include/lwip" ls/sdk/include/mbedtls" ls/sdk/include/mdns" ls/sdk/include/micro-ecc" ls/sdk/include/mqtt" ls/sdk/include/newlib" ls/sdk/include/nghttp" ls/sdk/include/nvs_flash" ls/sdk/include/openssl" ls/sdk/include/protobuf-c" ls/sdk/include/protocomm" ls/sdk/include/pthread" ls/sdk/include/sdmmc" ls/sdk/include/smartconfig_ack" ls/sdk/include/soc" ls/sdk/include/spi_flash" ls/sdk/include/spiffs" ls/sdk/include/tcp_transport" ls/sdk/include/tcpip_adapter" ls/sdk/include/ulp" ls/sdk/include/vfs" ls/sdk/include/wear_levelling" ls/sdk/include/wifi_provisioning" ls/sdk/include/wpa_supplicant" ls/sdk/include/xtensa-debug-module" ls/sdk/include/esp-face" ls/sdk/include/esp32-camera" ls/sdk/include/esp-face" ls/sdk/include/fb_gfx" -std=gnu++11 -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-missing-field-initializers -Wno-sign-compare -fno-rtti -c -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=108011 -DARDUINO_LOLIN_D32_PRO -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="LOLIN_D32_PRO" -DARDUINO_VARIANT="d32_pro" -DESP32 -DCORE_DEBUG_LEVEL=0 es\esp32" iants\d32_pro" raries\FS\src" raries\WiFiClientSecure\src" raries\WiFi\src" raries\HTTPClient\src" -I"C:\Users\Home\Documents\Arduino\libraries\ArduinoJson\src" raries\SPIFFS\src" raries\EEPROM\src" raries\Wire\src" raries\SPI\src" -I"C:\Users\Home\Documents\Arduino\libraries\bsec\src" d0.cpp" -o proc\sketch-gcc-e.cpp" [/code]
  
Back to top
WWW  
IP Logged
 
JamesFarmer
Junior Member
**
Offline


Posts: 58
Joined: Mar 1st, 2020
Re: build process stuck
Reply #6 - Mar 6th, 2020 at 8:26pm
Print Post  
attqached all main mod file types

dont know if this note helps but this does build direct in Arduino IDE
« Last Edit: Mar 6th, 2020 at 8:30pm by JamesFarmer »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
JamesFarmer
Junior Member
**
Offline


Posts: 58
Joined: Mar 1st, 2020
Re: build process stuck
Reply #7 - Mar 6th, 2020 at 8:37pm
Print Post  
I have figured that it is a libary causing the issue, i will continue looking deeper to se why
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: build process stuck
Reply #8 - Mar 7th, 2020 at 6:31pm
Print Post  
If there is a source file in your project folder called MainMod0.cpp then rename or delete it.
  
Back to top
WWW  
IP Logged
 
JamesFarmer
Junior Member
**
Offline


Posts: 58
Joined: Mar 1st, 2020
Re: build process stuck
Reply #9 - Mar 9th, 2020 at 12:35pm
Print Post  
I end up deleting all files generated by visual studio created a new project with orginal arduino files and this fixed issue
  
Back to top
 
IP Logged
 
JamesFarmer
Junior Member
**
Offline


Posts: 58
Joined: Mar 1st, 2020
Re: build process stuck
Reply #10 - Mar 9th, 2020 at 12:59pm
Print Post  
so this is another project doing same thing started this morning freezing i would like to know what is going on because delete and recreating project is very time consuming
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
JamesFarmer
Junior Member
**
Offline


Posts: 58
Joined: Mar 1st, 2020
Re: build process stuck
Reply #11 - Mar 9th, 2020 at 12:59pm
Print Post  
so this is another project doing same thing started this morning freezing i would like to know what is going on because delete and recreating project is very time consuming
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
JamesFarmer
Junior Member
**
Offline


Posts: 58
Joined: Mar 1st, 2020
Re: build process stuck
Reply #12 - Mar 9th, 2020 at 1:02pm
Print Post  
the is same file as requested before
  

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


Posts: 2177
Joined: Feb 13th, 2019
Re: build process stuck
Reply #13 - Mar 9th, 2020 at 4:57pm
Print Post  
I see yuou are using the forum pre-release. While we investigate the root of this issue further, you might be able to work around it by disabling the new Prototype Generation system:

1) Add a Local Board.txt to your Project (Right Click Project > Add > Local Board.txt)
2) Add the below to the file, Save and Re-Build the project.
Code
Select All
vm.ctags=false 



You should then add your own c++ prototypes to the code (method signature with trailing ; instead of {} )

Thanks for the report
« Last Edit: Mar 9th, 2020 at 4:59pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
JamesFarmer
Junior Member
**
Offline


Posts: 58
Joined: Mar 1st, 2020
Re: build process stuck
Reply #14 - Mar 9th, 2020 at 6:21pm
Print Post  
it is getting past the part that was hanging but i do not understand the part 

"
You should then add your own c++ prototypes to the code (method signature with trailing ; instead of {} )"
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: build process stuck
Reply #15 - Mar 9th, 2020 at 6:29pm
Print Post  
You might not need to but this will explain. Calling testme() from the loop would fail without a prototype. This is because testme() is defined after loop(). 

Normally cpp code needs the prototypes but for ino code auto create them if they are missing. You have switched off the more advanced detection system so in this case you need to add the prototypes yourself.

In this example if we didn't add the prototype then visual micro would attempt a more crude prototype insertion before the 1st line of code. That would fail because a method signature includes a reference to the user type called myStruct. Therefore the prototype needs to be placed after myStruct and before loop(). This location is what we use ctags to determine.

Code (C++)
Select All
struct myStruct{
 int one .....
}
// c++ prototypes declared after types have been created. prototypes must have exact same signature as the method but with trailing semi-colon ;
testme(myStruct m);

//user code
void setup()
{}
void loop()
{
 myStruct m;
 testme(m)
}
void testme(myStruct m)
{

}

 

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


Posts: 58
Joined: Mar 1st, 2020
Re: build process stuck
Reply #16 - Mar 13th, 2020 at 9:22pm
Print Post  
thank you you i feel stupid for asking i was just reading under the influance
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: build process stuck
Reply #17 - Mar 13th, 2020 at 9:41pm
Print Post  
There is an update in the forum releases section that resolves the issue.

Thanks for the report.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint