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 After VisualStudio crash and auto recover do not compile anymore! (Read 3482 times)
paolo48
Junior Member
**
Offline


Posts: 69
Joined: Dec 22nd, 2015
After VisualStudio crash and auto recover do not compile anymore!
Feb 15th, 2016 at 6:35pm
Print Post  
After a VisualStudio crash (often it appends if you move windows during execution) I tried ricompilation of an already compiled program and I get a long list of error like this:
"d:\Program Files\Arduino\hardware\tools\avr/bin/avr-gcc" -w -Os -Wl,--gc-sections -mmcu=atmega2560 -o mega2560/interval_program_v2.ino.elf" mega2560\DS1307RTC-master\DS1307RTC.cpp.o" mega2560\Ethernet\Dhcp.cpp.o" mega2560\Ethernet\Dns.cpp.o" mega2560\Ethernet\Ethernet.cpp.o" mega2560\Ethernet\EthernetClient.cpp.o" mega2560\Ethernet\EthernetServer.cpp.o" mega2560\Ethernet\EthernetUdp.cpp.o" mega2560\Ethernet\utility\socket.cpp.o" mega2560\Ethernet\utility\w5100.cpp.o" mega2560\LiquidCrystal\FastIO.cpp.o" mega2560\LiquidCrystal\I2CIO.cpp.o" mega2560\LiquidCrystal\LCD.cpp.o" mega2560\LiquidCrystal\LiquidCrystal.cpp.o" mega2560\LiquidCrystal\LiquidCrystal_I2C.cpp.o" mega2560\LiquidCrystal\LiquidCrystal_SR.cpp.o" mega2560\LiquidCrystal\LiquidCrystal_SR2W.cpp.o" mega2560\LiquidCrystal\LiquidCrystal_SR3W.cpp.o" mega2560\MemoryFree\MemoryFree.cpp.o" mega2560\SPI\SPI.cpp.o" mega2560\Time\DateStrings.cpp.o" mega2560\Time\Time.cpp.o" mega2560\TimeAlarms\TimeAlarms.cpp.o" mega2560\VM_DBG\VM_mem_check.c.o" mega2560\VM_DBG\VM_DBG.cpp.o" mega2560\WiFi\WiFi.cpp.o" mega2560\WiFi\WiFiClient.cpp.o" mega2560\WiFi\WiFiServer.cpp.o" mega2560\WiFi\WiFiUdp.cpp.o" mega2560\WiFi\utility\server_drv.cpp.o" mega2560\WiFi\utility\spi_drv.cpp.o" mega2560\WiFi\utility\wifi_drv.cpp.o" mega2560\Wire\Wire.cpp.o" mega2560\Wire\utility\twi.c.o" mega2560\interval_program_v2.cpp.o" mega2560\ProjLinked\hooks.c.o" mega2560\ProjLinked\WInterrupts.c.o" mega2560\ProjLinked\wiring.c.o" mega2560\ProjLinked\wiring_analog.c.o" mega2560\ProjLinked\wiring_digital.c.o" mega2560\ProjLinked\wiring_pulse.c.o" mega2560\ProjLinked\wiring_shift.c.o" mega2560\ProjLinked\abi.cpp.o" mega2560\ProjLinked\CDC.cpp.o" mega2560\ProjLinked\HardwareSerial.cpp.o" mega2560\ProjLinked\HardwareSerial0.cpp.o" mega2560\ProjLinked\HardwareSerial1.cpp.o" mega2560\ProjLinked\HardwareSerial2.cpp.o" mega2560\ProjLinked\HardwareSerial3.cpp.o" mega2560\ProjLinked\HID.cpp.o" mega2560\ProjLinked\IPAddress.cpp.o" mega2560\ProjLinked\main.cpp.o" mega2560\ProjLinked\new.cpp.o" mega2560\ProjLinked\Print.cpp.o" mega2560\ProjLinked\Stream.cpp.o" mega2560\ProjLinked\Tone.cpp.o" mega2560\ProjLinked\USBCore.cpp.o" mega2560\ProjLinked\WMath.cpp.o" mega2560\ProjLinked\WString.cpp.o" mega2560\ProjLinked\SPI.cpp.o" mega2560\ProjLinked\twi.c.o" mega2560\ProjLinked\Wire.cpp.o" mega2560\ProjLinked\Dhcp.cpp.o" mega2560\ProjLinked\Dns.cpp.o" 

It look like previous compilation files has not been deleted!!

I have tried to clean the project but do not change the result!
« Last Edit: Feb 15th, 2016 at 8:23pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: After VisualStudio crash and auto recover do not compile anymore!
Reply #1 - Feb 15th, 2016 at 8:25pm
Print Post  
Build>Clean simply deletes the files and/or folder in d:\Users\pbecc\AppData\Local\V.Micro\Arduino\Builds\interval_program_v2

There can't be any confusion if you delete it manually.

It looks to me like you have linked the arduino core into your project? Can you add the vcxproj please as an attachment.
  
Back to top
IP Logged
 
paolo48
Junior Member
**
Offline


Posts: 69
Joined: Dec 22nd, 2015
Re: After VisualStudio crash and auto recover do not compile anymore!
Reply #2 - Feb 15th, 2016 at 10:15pm
Print Post  
Here is the attachment !

With other sketch is compile OK! 

If there is something wrong with the project file it is because has be autorecovered after crash!
  

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: After VisualStudio crash and auto recover do not compile anymore!
Reply #3 - Feb 15th, 2016 at 10:21pm
Print Post  
Yes the project file is full of links to libraries and arduino core.

You should see this in the solution explorer view? Maybe you need to click the small button on the solution explorer bar that has a tip of "Show all files". You need to switch off show all files so that you see the "filtered view" of the project.

When you see the filtered view you will see all the files. CTRL+SHIFT+CLICK the files to highlight them all then Right-Click and "Remove From Project"

or if you can't use the solution explorer very easily then delete the .vcxproj and .sln and then reopen the sketch with "File>Open arduino sketch". Visual micro will create a new project file but the arduino code will remain.
« Last Edit: Feb 15th, 2016 at 10:21pm by Tim@Visual Micro »  
Back to top
IP Logged
 
paolo48
Junior Member
**
Offline


Posts: 69
Joined: Dec 22nd, 2015
Re: After VisualStudio crash and auto recover do not compile anymore!
Reply #4 - Feb 16th, 2016 at 7:48am
Print Post  
Thanks!

I used the second method because was easier!

Do you know why re sizing or moving  windows crash Visual Studio?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint