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) latestest code update of vismuicro breaks my code (solved, arduino ide config issue)) (Read 7668 times)
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
latestest code update of vismuicro breaks my code (solved, arduino ide config issue))
Jun 8th, 2016 at 8:44pm
Print Post  
help.  all i did was update to your new version that you pushed yesterday and suddenly I am dead in water:

Compiling debug version of 'Speedo' for 'Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)'
Build folder: file:///d:/TEMP/VMicroBuilds/Speedo/mega_atmega2560

C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\Wire.cpp:26:19: fatal error: twi.h: No such file or directory
   #include "twi.h"
                   ^
compilation terminated.

An error was encountered during the 'Deep Search' discovery process.
Either resolve the error or switch off the 'Deep Search Includes' option.
     Tip: When deep search is switched off, headers must be #included in the [project_name.ino] for all required libraries (for example: #include <SPI.h>)
     Tip: Deep search must be off if the project source contains links/shortcuts to code outside of the project structure. The source will have been #included using a relative path preceeded by ..\ (for example: #include "..\..\foo\foo.h")

please advise....
« Last Edit: Jun 10th, 2016 at 6:58pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: latestest code update of vismuicro breaks my code
Reply #1 - Jun 8th, 2016 at 9:02pm
Print Post  
Did you follow the suggestion in the error message and try with deep search switched off? It's on the vMicro>Compiler menu.

  
Back to top
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: latestest code update of vismuicro breaks my code
Reply #2 - Jun 8th, 2016 at 9:46pm
Print Post  
with it now off, even more errors occur.

once again, it seems that visual micro updates break working code. 

so upset and losing dev time form this again VisMicro issue.

with it off:

Compiling debug version of 'Speedo' for 'Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)'
Build folder: file:///d:/TEMP/VMicroBuilds/Speedo/mega_atmega2560
Speedo.ino:In file included from
Speedo.h:11:112: fatal error: Adafruit_SSD1306.h: No such file or directory
:learn.adafruit.com\downloads\pdf\monochrome-oled-breakouts.pdf
:compilation terminated
bounceUtilities.cpp:In file included from
bounceUtilities.h:9:22: fatal error: Bounce2.h: No such file or directory
:#include <Bounce2.h>
:compilation terminated
Error compiling project sources
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: latestest code update of vismuicro breaks my code
Reply #3 - Jun 8th, 2016 at 9:49pm
Print Post  
Hmm, well no one else reporting this so we had better check your config.

Please switch on "vMicro>Compiler>show build properties" and also "Verbose"

Then build and email the output to info [at] visualmicro.com

Or attach it as a file here

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: latestest code update of vismuicro breaks my code
Reply #4 - Jun 8th, 2016 at 10:13pm
Print Post  
By the way I just looked back at your history. You have had a lot of help in terms of how Arduino works and also how the debugger works. All is documented in our docs and the Arduino docs so it was just free help.

One "breakage" after upgrade was because you had switched off "automatic debugging" by mistake and your "serial window wasn't automatically opening". You hadn't read the docs so didn't fully understand how the debugger was responsible for opening the serial window. It's not a problem but I spent quite some time explaining.

Another "breakage" was the fact that a breakpoint was automatically created because you didn't have any defined but had debug enabled. This new Tutorial feature was described in the "release notes" and easily switched off.

In all your posts I have always asked for Arduino version and verbose output is also often requested. I always hope that users appreciate that much of what I do is for free and try their best to help resolve issues or misunderstandings as quickly as possible. So it's really useful when users give as much information as possible with their reports or it slows down the process.

There are at times going to be issues and you can see in the release notes that many changes are implemented. Some because Arduino changes and others to help make the software better. 

I don't think it's very fair to be so angry when you use this site and hope that providing the info requested in my previous post will at least show the full error along with build commands.
« Last Edit: Jun 8th, 2016 at 10:13pm by Tim@Visual Micro »  
Back to top
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: latestest code update of vismuicro breaks my code
Reply #5 - Jun 8th, 2016 at 10:53pm
Print Post  
see below:

Code
Select All
Compiling debug version of 'aaa_AA_Speedo' for 'Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)'
Build folder: file:///d:/TEMP/VMicroBuilds/aaa_AA_Speedo/mega_atmega2560
Additional Defines: VIS_MICRO_REMOTE_PIN_AA 253952;VM_DEBUG;VM_DEBUG_ENABLE 1;VM_DEBUG_BANDWIDTH_THROTTLE_MS 50;VM_DEBUGGER_TYPE_HARDWARESERIAL 0;VM_DEBUGGER_TYPE_SOFTWARESERIAL 1;VM_DEBUGGER_TYPE_FASTSERIAL 2;VM_DEBUGGER_TYPE_USB 3;VM_DEBUGGER_TYPE_TEENSY 4;VM_DEBUGGER_TYPE_UART 5;VM_DEBUGGER_TYPE_USART 6;VM_DEBUGGER_TYPE_USBSERIAL 7;VM_DEBUGGER_TYPE_TTYUART 8;VM_DEBUGGER_TYPE_NET_CONSOLE 9;VM_DEBUGGER_TYPE_Uart 10;VM_DEBUGGER_TYPE_COSA 11;VM_DEBUGGER_TYPE_CDCSerialClass 12;VM_DEBUGGER_TYPE_HARDWARESERIAL1 13;VM_DEBUGGER_TYPE_HARDWARESERIAL2 14;VM_DEBUGGER_TYPE_HARDWARESERIAL3 15;VM_DEBUGGER_TYPE AD_I2C_DEVICES 1;
Architecture Tools: C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/
Sketchbook: file:\\\C:\Users\aaa\Documents\Arduino
Sketch Include Paths
Include Path 'C:\Source\Arduino\aaa_AA_Speedo'
Core Include Paths
Include Path 'C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino'
Include Path 'C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega'
Library Include Paths (2)
Include Path 'C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire'
Build Core Paths: C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino
Using library VM_DBG version 0.0.0 in folder C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\4n0o2ano.mqu\Micro Platforms\default\debuggers\VM_DBG
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega" -I"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\4n0o2ano.mqu\Micro Platforms\default\debuggers\VM_DBG" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire" -I"C:\Program Files (x86)\Arduino\libraries" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries" -I"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\4n0o2ano.mqu\Micro Platforms\default\debuggers" -I"C:\Users\GTessler\Documents\Arduino\libraries" "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\4n0o2ano.mqu\Micro Platforms\default\debuggers\VM_DBG\VM_DBG.cpp" -o "d:\TEMP\VMicroBuilds\aaa_AA_Speedo\mega_atmega2560\VM_DBG\VM_DBG.cpp.o" -DVIS_MICRO_REMOTE_PIN_AA=253952 -DVM_DEBUG -DVM_DEBUG_ENABLE=1 -DVM_DEBUG_BANDWIDTH_THROTTLE_MS=50 -DVM_DEBUGGER_TYPE_HARDWARESERIAL=0 -DVM_DEBUGGER_TYPE_SOFTWARESERIAL=1 -DVM_DEBUGGER_TYPE_FASTSERIAL=2 -DVM_DEBUGGER_TYPE_USB=3 -DVM_DEBUGGER_TYPE_TEENSY=4 -DVM_DEBUGGER_TYPE_UART=5 -DVM_DEBUGGER_TYPE_USART=6 -DVM_DEBUGGER_TYPE_USBSERIAL=7 -DVM_DEBUGGER_TYPE_TTYUART=8 -DVM_DEBUGGER_TYPE_NET_CONSOLE=9 -DVM_DEBUGGER_TYPE_Uart=10 -DVM_DEBUGGER_TYPE_COSA=11 -DVM_DEBUGGER_TYPE_CDCSerialClass=12 -DVM_DEBUGGER_TYPE_HARDWARESERIAL1=13 -DVM_DEBUGGER_TYPE_HARDWARESERIAL2=14 -DVM_DEBUGGER_TYPE_HARDWARESERIAL3=15 -DVM_DEBUGGER_TYPE=VM_DEBUGGER_TYPE_HARDWARESERIAL -DVM_DEBUG_AUTO_REPORTING -DVM_DEBUG_I2C -DVM_DEBUG_READ_I2C_DEVICES=1
Using library Wire version 1.0 in folder C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega" -I"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\4n0o2ano.mqu\Micro Platforms\default\debuggers\VM_DBG" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire" -I"C:\Program Files (x86)\Arduino\libraries" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries" -I"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\4n0o2ano.mqu\Micro Platforms\default\debuggers" -I"C:\Users\GTessler\Documents\Arduino\libraries" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\utility" "d:\TEMP\VMicroBuilds\aaa_AA_Speedo\mega_atmega2560\aaa_AA_Speedo.cpp" -o "d:\TEMP\VMicroBuilds\aaa_AA_Speedo\mega_atmega2560\aaa_AA_Speedo.cpp.o" -DVIS_MICRO_REMOTE_PIN_AA=253952 -DVM_DEBUG -DVM_DEBUG_ENABLE=1 -DVM_DEBUG_BANDWIDTH_THROTTLE_MS=50 -DVM_DEBUGGER_TYPE_HARDWARESERIAL=0 -DVM_DEBUGGER_TYPE_SOFTWARESERIAL=1 -DVM_DEBUGGER_TYPE_FASTSERIAL=2 -DVM_DEBUGGER_TYPE_USB=3 -DVM_DEBUGGER_TYPE_TEENSY=4 -DVM_DEBUGGER_TYPE_UART=5 -DVM_DEBUGGER_TYPE_USART=6 -DVM_DEBUGGER_TYPE_USBSERIAL=7 -DVM_DEBUGGER_TYPE_TTYUART=8 -DVM_DEBUGGER_TYPE_NET_CONSOLE=9 -DVM_DEBUGGER_TYPE_Uart=10 -DVM_DEBUGGER_TYPE_COSA=11 -DVM_DEBUGGER_TYPE_CDCSerialClass=12 -DVM_DEBUGGER_TYPE_HARDWARESERIAL1=13 -DVM_DEBUGGER_TYPE_HARDWARESERIAL2=14 -DVM_DEBUGGER_TYPE_HARDWARESERIAL3=15 -DVM_DEBUGGER_TYPE=VM_DEBUGGER_TYPE_HARDWARESERIAL -DVM_DEBUG_AUTO_REPORTING -DVM_DEBUG_I2C -DVM_DEBUG_READ_I2C_DEVICES=1
aaa_AA_Speedo.ino:In file included from
aaa_AA_Speedo.h:11:112: fatal error: Adafruit_SSD1306.h: No such file or directory
:learn.adafruit.com\downloads\pdf\monochrome-oled-breakouts.pdf
:compilation terminated
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega" -I"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\4n0o2ano.mqu\Micro Platforms\default\debuggers\VM_DBG" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire" -I"C:\Program Files (x86)\Arduino\libraries" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries" -I"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\4n0o2ano.mqu\Micro Platforms\default\debuggers" -I"C:\Users\GTessler\Documents\Arduino\libraries" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\utility" "d:\TEMP\VMicroBuilds\aaa_AA_Speedo\mega_atmega2560\bounceUtilities.cpp" -o "d:\TEMP\VMicroBuilds\aaa_AA_Speedo\mega_atmega2560\bounceUtilities.cpp.o" -DVIS_MICRO_REMOTE_PIN_AA=253952 -DVM_DEBUG -DVM_DEBUG_ENABLE=1 -DVM_DEBUG_BANDWIDTH_THROTTLE_MS=50 -DVM_DEBUGGER_TYPE_HARDWARESERIAL=0 -DVM_DEBUGGER_TYPE_SOFTWARESERIAL=1 -DVM_DEBUGGER_TYPE_FASTSERIAL=2 -DVM_DEBUGGER_TYPE_USB=3 -DVM_DEBUGGER_TYPE_TEENSY=4 -DVM_DEBUGGER_TYPE_UART=5 -DVM_DEBUGGER_TYPE_USART=6 -DVM_DEBUGGER_TYPE_USBSERIAL=7 -DVM_DEBUGGER_TYPE_TTYUART=8 -DVM_DEBUGGER_TYPE_NET_CONSOLE=9 -DVM_DEBUGGER_TYPE_Uart=10 -DVM_DEBUGGER_TYPE_COSA=11 -DVM_DEBUGGER_TYPE_CDCSerialClass=12 -DVM_DEBUGGER_TYPE_HARDWARESERIAL1=13 -DVM_DEBUGGER_TYPE_HARDWARESERIAL2=14 -DVM_DEBUGGER_TYPE_HARDWARESERIAL3=15 -DVM_DEBUGGER_TYPE=VM_DEBUGGER_TYPE_HARDWARESERIAL -DVM_DEBUG_AUTO_REPORTING -DVM_DEBUG_I2C -DVM_DEBUG_READ_I2C_DEVICES=1
bounceUtilities.cpp:In file included from
bounceUtilities.h:9:22: fatal error: Bounce2.h: No such file or directory
:#include <Bounce2.h>
:compilation terminated
Error compiling project sources 


« Last Edit: Jun 8th, 2016 at 10:57pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: latestest code update of vismuicro breaks my code
Reply #6 - Jun 8th, 2016 at 11:09pm
Print Post  
Thanks,

1)

The Bounce2 error is because a few versions ago Visual Micro was changed inline with the Arduino Ide. 

That means that in both the Arduino Ide and in Visual Micro the project path can not be an include path, therefore you have to #include "Bounce2.h" and not <Bounce2.h>.

2)

The other error seems to be the Adafruit_SSD1306.h library can not be found. Can you confirm that the aaa_AA_Speedo.ino contains #include <Adafruit_SSD1306.h>?
  
Back to top
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: latestest code update of vismuicro breaks my code
Reply #7 - Jun 9th, 2016 at 3:13am
Print Post  
nope. it made no difference.  i am totally broke since I did the upgrade.  i should have left your version alone from a week ago.  totally now dead in the water.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: latestest code update of vismuicro breaks my code
Reply #8 - Jun 9th, 2016 at 12:10pm
Print Post  
This compile hasn't changed in the last week.

The error will now be different because you changed the code. You need to republish the error here so I can see it.

You should also publish or email a snippet of the code that #includes the Adafruit_SSD1306.h so we can see where the error about :learn.adafruit.com\downloads\pdf\monochrome-oled-breakouts.pdf comes from Smiley

You can email your code if you want it will be destroyed afterwards.

You can also compile with the Arduino Ide to prove things

Certainly no need to update the arduino ide. These errors are problems with the user code.

Thanks

« Last Edit: Jun 9th, 2016 at 12:10pm by Tim@Visual Micro »  
Back to top
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: latestest code update of vismuicro breaks my code
Reply #9 - Jun 9th, 2016 at 1:35pm
Print Post  
I solved it by updating my ard ide from 1.6.5 to the latest 1.6.7

I suspect that either that ide or your latest update is not compatible with existing end user code.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: latestest code update of vismuicro breaks my code
Reply #10 - Jun 9th, 2016 at 1:52pm
Print Post  
Hi,

Thanks for the update, good to hear you sorted it. Here are some points that might help in the future or avoid confusion:-

Your reports yesterday with verbose output show you were using Arduino 1.6.7. That's what the -DARDUINO=10607 means in the compiler output and one reason why I asked for it. Normally it is easier if users report their Arduino Ide version early but when confronted with many words it's easier just to ask for the verbose output Smiley

Your first report was an error compiling the "Wire" library but in the verbose output yesterday we can see the compiler has compiled and was using the "Wire" library without issue. So it seems you solved the original issue but then had two other issues.

The latest two errors seemed fairly clear:-
  • It is important to #include local sketch/project headers with "quotes" and not <chevrons>. 
  • The Adafruit_SSD1306.h was #included in the aaa_AA_speed.h but not in the aaa_AA_speed..ino (see note below)


There has been some confusion for users surrounding two changes released in Arduino 1.6.6... 

The first is the "deep search includes" facility which negates the need to ensure that any required library is also #included in the project_name.ino. With Arduino 1.6.5 or with "Visual Micro > Deep Search" switch off libraries need to be #included in the project_name.ino. In fact this is good practice anyway because intellisense currently works better if this is done.

The second, is that when you run Arduino 1.6.6+ it moves the installed hardware location so that 1.6.5 can no longer find it and can potentially have issues with some boards. 

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