简体   繁体   中英

Code-sense in embedXcode doesn't hightlight syntax for the library I've included

Code-sense mostly works-- all of the core Arduino types are hightlighted properly. But no types referencing the FastLED library are.

代码检测不起作用

My code compiles fine. And, syntax is hightlighted properly in FastLED.h

代码感知工作

How can I make use of code-sense in xCode for Arduino libraries?

At the top of my .ino file, I do this

// Core library for code-sense
#include "Wiring.h"
#include "Arduino.h"

// Include application, user and local libraries
#include "LocalLibrary.h"
#include "FastLED.h"

I am running XCode 5.1 on OSX 10.9.2 with embedXcode+ (professional) release 136. I checked out the FastLED_2.1 branch, as master does not support Teensy 3.1, the board I am using.

Solved. It appears that NO libraries listed in USER_LIBS_LIST confer the benefits to code-sense to your main ino file. However, once I moved the FastLED from

/Users/justin/Documents/Arduino/Libraries

to

/Applications/Arduino.app/Contents/Resources/Java/libraries

and restarted XCode, everything works great.

It seems the table for libraries reached an overflow.

WARNING Overflow reached

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM