User forums > Using Code::Blocks
Auto Complete offeres members from all libraries
AZ:
Gents,
i seemed to be unable to pinpoint the right combination of the options in the "Code Completion" plugin ( Settings-> Editor -> Code Completion ) to show the list of _only_ members of this selected object/variable.
Expected result
after typing a dot (.) i expect to see all member functions/data only for this specific object.
Current behavior:
after typing a dot (.) i have a list of _all_ members functions/data from all libraries/classes.
I'm attaching the snapshots of the current configuration.
Please advise.
AZ:
and
oBFusCATed:
Do you have a minimal example that reproduces the problem?
AZ:
--- Quote from: oBFusCATed on November 18, 2016, 06:38:00 am ---Do you have a minimal example that reproduces the problem?
--- End quote ---
Yes, sure:
1. Generate the Arduino project using your template.
2. Add https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home - LiquidCrystal library into the "libraries" sub dir of the project.
3. Resulting code:
--- Code: ---#include <Arduino.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
/*
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
LiquidCrystal_I2C lcd(0x3F,2,1,0,4,5,6,7) ;
void setup() {
// initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards:
pinMode(13, OUTPUT);
lcd.
}
void loop() {
digitalWrite(13, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(13, LOW); // set the LED off
delay(1000); // wait for a second
}
--- End code ---
I also added references to the library (absolute path ) in the project->build->Search Directories-> Linker and project->build->Search Directories->compiler.
I still can't build the project, but i'm not sure if these two issues are related.
oBFusCATed:
This is not minimal example. ::)
Minimal example is a file that has no includes.
Navigation
[0] Message Index
[#] Next page
Go to full version