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) Adding Arduino 1.5.x (1.5.8) libraries does not add the #includes to the code (Read 8044 times)
marc
Junior Member
**
Offline


Posts: 12
Location: Belgium
Joined: Jan 29th, 2012
Adding Arduino 1.5.x (1.5.8) libraries does not add the #includes to the code
Dec 22nd, 2014 at 12:20pm
Print Post  
Hello,

Yesterday I installed a new hardrive (SSD) on my PC with Windows 7 Pro(64b).
Installed Arduino 1.0.6 and Aduino 1.5.8.
Installed Visual Studio 12
Installed Visual Micro version 1.1412.10 version minor 1

Working with Arduino 1.0.6 with core libraries: no problems
Working with Arduino 1.0.6 with custom libraries: no problems

Working with Arduino 1.5.8 with core libraries: does not work
Working with Arduino 1.5.8 with custom libraries: no problems

Installed Visual Studio Community 2013: same as Visual Studio 12

Add C:\arduino-1.5.8 in the PATH --> same problem.
Reset of the userinterface: no progress.

It seems that all the libraries under C:\arduino-1.5.8\libraries are not accessible, all the other libraries under C:\arduino-1.5.8\hardware\arduino\avr\libraries and C:\arduino-1.0.6\libraries are working.

The strange thing is, when you open the menu:  PROJECT > Add/import Sketch Library > Core >
all the names of the libraries are vissible.

Did some test with Arduino 1.5.6-r2 and 1.5.7: no progress

On my old harddrive, there where no problems (Arduino 1.5.7 with Visual Studio 12 Windows 7 Pro(64b)).

Working with Arduino 1.5.8 without using Visual Studio --> no problems

I am going to try Atmel Studio 6.2, probably this will work.

Kind Regards,

Marc


« Last Edit: Dec 22nd, 2014 at 9:56pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
marc
Junior Member
**
Offline


Posts: 12
Location: Belgium
Joined: Jan 29th, 2012
Re: not possible to open core libraries from Arduino 1.5.x (1.5.8)
Reply #1 - Dec 22nd, 2014 at 1:16pm
Print Post  
Hello,


Same problem with Atmel Studio 6.2

Regard,

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: not possible to open core libraries from Arduino 1.5.x (1.5.8)
Reply #2 - Dec 22nd, 2014 at 1:22pm
Print Post  
Hi,

They are working in my tests.

Some small confusion somewhere so here is some info to help track the issue or prompt other questions ..

The difference between 1.5 and 1.0 libs can be that the 1.5 libs hide/show based on the selected board.

So the question is which board do you have selected for your project? Did you try switch to another board and back again to see if the issue resolves?

Do you have more than one project in your solution?

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


Posts: 12
Location: Belgium
Joined: Jan 29th, 2012
Re: not possible to open core libraries from Arduino 1.5.x (1.5.8)
Reply #3 - Dec 22nd, 2014 at 1:37pm
Print Post  
Hi,

First of all I was going to write a small program for The Arduino Yun, then I tried the Uno.
It seems not to work.

For the Arduino Yun, when you choose the "Bridge" library, it does not even put "#include <Bridge.h>" into the code.
For the Arduino Uno I choose "Servo" library, the same, no progress.

Each time, I made a new project.

Regards,

Marc




« Last Edit: Dec 22nd, 2014 at 1:38pm by marc »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: not possible to open core libraries from Arduino 1.5.x (1.5.8)
Reply #4 - Dec 22nd, 2014 at 1:55pm
Print Post  
Okay I have seen the issue is that the .h files, for new format libs, are not put in the sketch code for you but they do show on the project>add/import menu and do compile/intellisense okay.

Libraries such as EEPROM work okay because they are older format. 

The libraries seem to work okay if you put the #includes in yourself. These are always the .h files from the lib/src folder

For Bridge it is this:-

#include <Bridge.h>
#include <Console.h>
#include <FileIO.h>
#include <HttpClient.h>
#include <Mailbox.h>
#include <Process.h>
#include <YunClient.h>
#include <YunServer.h>

You can paste lib includes into the code manually then click Save and they will be recognised.

We will issue a minor sp2 update over the next few days. Thanks for the report.
  
Back to top
IP Logged
 
marc
Junior Member
**
Offline


Posts: 12
Location: Belgium
Joined: Jan 29th, 2012
Re: not possible to open core libraries from Arduino 1.5.x (1.5.8)
Reply #5 - Dec 22nd, 2014 at 2:36pm
Print Post  
Hi,

When I type it manualy it seems to work now, strange, before, it wasn't

I have many warnings during compilation, but no errors.

Regards,

Marc

#include <Bridge.h>
#include <Console.h>
#include <FileIO.h>
#include <HttpClient.h>
#include <Mailbox.h>
#include <Process.h>
#include <YunClient.h>
#include <YunServer.h>

void setup()
{

  /* add setup code here */

}

void loop()
{

  /* add main program code here */

}


  

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: not possible to open core libraries from Arduino 1.5.x (1.5.8)
Reply #6 - Dec 22nd, 2014 at 2:40pm
Print Post  
Have you switch on Tools>Visual Micro>Warnings?

If so switch it off so you see what you see in the Arduino IDE. I see Arduino have quite a few warnings for some libraries.

ps: pressing Save after adding libs is important, that is when the project include paths are re-calculated and intellisense will start to work for the libs.
« Last Edit: Dec 22nd, 2014 at 2:41pm by Tim@Visual Micro »  
Back to top
IP Logged
 
marc
Junior Member
**
Offline


Posts: 12
Location: Belgium
Joined: Jan 29th, 2012
Re: not possible to open core libraries from Arduino 1.5.x (1.5.8)
Reply #7 - Dec 22nd, 2014 at 2:56pm
Print Post  
Hi,

Thx for the info.

Warnings were switched on, my mistake.
I'll wait for the next update.

Keep up the good work!

Kind regards,

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adding Arduino 1.5.x (1.5.8) libraries does not add the #includes to the code
Reply #8 - Dec 22nd, 2014 at 9:54pm
Print Post  
Hi,

Thanks for the message.

It is working if you have core and libraries visible in the sketch. 

It's a bug in the latest release that is caused by not having the sources toggled into the project.

Click the project then the menu "Project>Show all core and library sources". This toggles the core and libs in/out of the current solution.

Then when you add libs the #includes will be added automatically for you.

None of these things affect compilation so, as you will see, you can do as you please with the project structure.
« Last Edit: Jan 11th, 2015 at 3:04am by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adding Arduino 1.5.x (1.5.8) libraries does not add the #includes to the code
Reply #9 - Jan 11th, 2015 at 3:05am
Print Post  
fixed in beta versions 1412.10 (sp3+)
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint