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) Upgraded from 6 to 7. No code hilighting in .ino file. Won't compile. (Read 7953 times)
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Upgraded from 6 to 7. No code hilighting in .ino file. Won't compile.
Mar 5th, 2016 at 7:55pm
Print Post  
For some reason, I decided to upgrade from AS 6 to 7. After lots of errors and reading posts here I've got VS installed. My problem now is:

Text in .ino files is just black and white. My .cpp and .h files seem fine.

When I try to Build my solution I get lots of errors. The first is:

Code
Select All
C:\Arduino\arduino-1.0.6\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I"C:\Arduino\arduino-1.0.6\hardware\arduino\cores\arduino" -I"C:\Arduino\arduino-1.0.6\hardware\arduino\variants\mega" -o 5\ADS1015.cpp.o"  "D:\Development\Arduino\libraries\ADS1015\ADS1015.cpp"
ADS1015.cpp:3:18: warning: Wire.h: No such file or directory 



Looks like some sort of path issue?

Yes, I'm using 1.0.6 on purpose on account of this bug in arduino which has been fixed in avr c++:
https://github.com/arduino/Arduino/issues/2752
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upgraded from 6 to 7. No code hilighting in .ino file. Won't compile.
Reply #1 - Mar 6th, 2016 at 1:24pm
Print Post  
Hi,

The intellisense and the compile errors are different things.

First the compile error:-

The library you have used also required I2C. Please add the "Wire" library to your sketch .ino

Thanks
  
Back to top
IP Logged
 
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Re: Upgraded from 6 to 7. No code hilighting in .ino file. Won't compile.
Reply #2 - Mar 6th, 2016 at 4:35pm
Print Post  
I do include Wire.h


Here's the beginning of my .ino file. Compiles fine in the Arduino 1.0.6 IDE and in AS 6.2

Code (C++)
Select All

// Built in Arduino libraries
#include <avr/EEPROM.h>
#include <HardwareSerial.h>
#include <SPI.h>		// For SD card and clock
#include <Wire.h>		// for I2C (Accelerometer and pressure)
#include <avr/wdt.h>	// Watchdog timer

// External Libraries
#include <ADS1015.h>	// ADC for voltage.
#include <I2Cdev.h>		// For Gyro
#include <MPU6050.h>	// Gyro
#include <MS5803_I2C.h>  // Measurement Specialties pressure and temperature
#include <RTClib.h>		// RTC Clock
#include <SdFat.h>		// SPI SD card

// User Libraries
#include <Logger_SD.h>	// Logging
#include <Atlas_EZO.h>	// RGB, DO, EC, and pH
#include <SIM_module.h>	// Sim908

// Local libraries
#include "MemFree.h"
#include "HydroSphere2.h"
#include "HS_Console.h" // interactive console.
#include "HS_Schedule.h"	// schedule class
#include "HS_EEPROM.h"		// specific EEPROM methods
 



I've attached the compile output.
  

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: Upgraded from 6 to 7. No code hilighting in .ino file. Won't compile.
Reply #3 - Mar 6th, 2016 at 8:10pm
Print Post  
Hi,

I think the best thing to do it uninstall atmel 7 and uninstall the "visual studio shell" that it installs.

Then install Visual Studio Community Edition. Visual Micro is up to date for Visual Studio whereas the AS7 version is quite old. AS7 has a number of issues that make arduino development more difficult and is not required now that Microsof have made a free version of Visual Studio.

This issue is not related to the issues I mention above but its going to work in VS
  
Back to top
IP Logged
 
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Re: Upgraded from 6 to 7. No code hilighting in .ino file. Won't compile.
Reply #4 - Mar 7th, 2016 at 6:30pm
Print Post  
I was able to install Visual Micro through the Tools-Extensions & Updates menu.

When I try to open my project, it says "This project is incompatible with the current editor.

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upgraded from 6 to 7. No code hilighting in .ino file. Won't compile.
Reply #5 - Mar 7th, 2016 at 6:34pm
Print Post  
Hi,

Did you select the C++ option during install of vs? If not you can do that via control panel> add and remove programs > visual studio > change

Can you create a new empty c++ project? This proves if c++ is installed. "File>New>Project>C++>Win32 or empty project"

Does "File>New>Arduino Project" work?

Thanks
  
Back to top
IP Logged
 
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Re: Upgraded from 6 to 7. No code hilighting in .ino file. Won't compile.
Reply #6 - Mar 7th, 2016 at 6:35pm
Print Post  
I was able to open the project through File->Open->Arduino Project.

And it compiles!

There's so much extra CRAP in VS 2015 that has nothing to do with microcontrollers. I wish there was a guide to deleting or at least hiding all the extra stuff.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upgraded from 6 to 7. No code hilighting in .ino file. Won't compile.
Reply #7 - Mar 7th, 2016 at 6:45pm
Print Post  
Great.

It's easy to customize. 

Click "Tools>Customize" and you see two tabs. One allows you to switch on/off tool bars and the other add/remove menu items.

Use "Tools>Import and export settings" to backup or restore all settings. + The reset button takes you back to default.
« Last Edit: Mar 7th, 2016 at 6:47pm by Tim@Visual Micro »  
Back to top
IP Logged
 
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Re: Upgraded from 6 to 7. No code hilighting in .ino file. Won't compile.
Reply #8 - Mar 7th, 2016 at 8:40pm
Print Post  
Thanks!

I see how to customize it, but I'm a bit afraid I'll turn of something I may end up needing.
Also, I can't figure out how to turn off the items in the Tool manu I don't need (most of them).

It would be great if there was a script, or even a list of all the standard things installed with VS2015 that can be removed/turned off without consequence.

I think a lot more people would switch away from the standard arduino IDE if the alternative were simpler.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upgraded from 6 to 7. No code hilighting in .ino file. Won't compile.
Reply #9 - Mar 7th, 2016 at 9:06pm
Print Post  
You can save your current settings and experiment. Give your first settings export a name such as "original_vs2015" so you can easily find it to revert.

You don't need the tools menu.

The file, edit, view, debug, visual micro, project, build, window, help menus are probably all you need.

You probably can hide all tool bars except the visual micro ones and the "Standard"

Most people find that after working with it for a few weeks it doesn't really matter how many option there are because you just use the ones you need. Which isn't very many except other become more useful over time.
« Last Edit: Mar 7th, 2016 at 9:07pm by Tim@Visual Micro »  
Back to top
IP Logged
 
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Re: Upgraded from 6 to 7. No code hilighting in .ino file. Won't compile.
Reply #10 - Mar 11th, 2016 at 4:05pm
Print Post  
So I've installed VS 2015 on a second machine. Here's my procedure if it helps anyone:

Install VS community 2015 with custom selected and only C++ checkbox selected. Once installed, Tools->Extensions and Updates. 

If you want a smaller version of Visual Studio and only want Arduino then uninstall the following:
  • Application Insights and HockeyApp Tools
  • Azure AD Authentication Connected Service
  • Get Xamarin
  • Microsoft Azure Mobile Services Connected Service
  • Microsoft Azure Storage Connected Service
  • Microsoft COnnected Services
  • Microsoft Office 365 API tools
  • Microsoft Connected Services

 
Install Arduino IDE for Visual Studio
« Last Edit: Mar 11th, 2016 at 4:22pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint