Intellisense not showing for lib_extra_dirs

Yes, but as it is a large project, I will put here some parts, like main.cpp and main.h and some sensors libraries. Take a look:

I found the source of the problems, but I don´t know yet the root cause of the problem. It is missed in “c_cpp_properties.json” the “includepath” for my new library Interfaces, but why all others are there, except my new one?

I saw that @maxgerhardt fix a similar problem in the “includepath”, but again the point is: Why just the new Interfaces library isn´t in the “includepath” list :slight_smile: : Why manually adjust "c_cpp_properties.json" - #2 by maxgerhardt

VSCode/Platformio environment:

Compiling error message:

 *  Executing task in folder RastAtivosRTOS: C:\Users\Claudio Rosa\.platformio\penv\Scripts\platformio.exe run 

Processing wiscore_rak4631 (platform: nordicnrf52; board: wiscore_rak4631; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/nordicnrf52/wiscore_rak4631.html
PLATFORM: Nordic nRF52 (10.4.0) > WisCore RAK4631 Board
HARDWARE: NRF52840 64MHz, 243KB RAM, 796KB Flash
DEBUG: Current (jlink) External (jlink, stlink)
PACKAGES: 
 - framework-arduinoadafruitnrf52 @ 1.10600.0 (1.6.0) 
 - framework-cmsis @ 2.50700.210515 (5.7.0) 
 - tool-adafruit-nrfutil @ 1.503.0 (5.3) 
 - tool-sreccat @ 1.164.0 (1.64) 
 - toolchain-gccarmnoneeabi @ 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 33 compatible libraries
Scanning dependencies...
Dependency Graph
|-- SparkFun LIS3DH Arduino Library @ 1.0.3
|-- Adafruit BME680 Library @ 2.0.4
|-- SparkFun u-blox GNSS Arduino Library @ 2.2.25
|-- SX126x-Arduino @ 2.0.24
|-- ArduinoJson @ 7.0.4
|-- CayenneLPP @ 1.1.0
|-- PackPayload
|-- RAK12500
|-- RAK15007
|-- RAK1904
|-- RAK1906
|-- RAK4631
|-- RAK5801
|-- Wire @ 1.0
Building in release mode
Linking .pio\build\wiscore_rak4631\firmware.elf
.pio\build\wiscore_rak4631\src\main.cpp.o: In function `setup':
main.cpp:(.text.setup+0x160): undefined reference to `IniciaInterfaces(void*)'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\wiscore_rak4631\firmware.elf] Error 1
================================================================== [FAILED] Took 15.96 seconds ==================================================================

 *  The terminal process "C:\Users\Claudio Rosa\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close 

platformio.ini

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[upload_settings]
device_eui 	= '0xAC, 0x1F, 0x09, 0xFF, 0xFE, 0x0C, 0xF0, 0x41'
app_eui		= '0xAC, 0x1F, 0x09, 0xFF, 0x00, 0x00, 0x00, 0x02'
app_key		= '0x4B, 0x41, 0x70, 0x70, 0x6C, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x20, 0x4B, 0x65, 0x79'

[env:wiscore_rak4631]
platform = nordicnrf52
board = wiscore_rak4631
framework = arduino
; upload_port = COM8
monitor_speed = 115200
; monitor_dtr = 0
; monitor_rts = 0
; lib_extra_dirs =
;    /lib/Interfaces
lib_deps = 
	sparkfun/SparkFun LIS3DH Arduino Library @ ^1.0.3
	adafruit/Adafruit BME680 Library @ ^2.0.4
	sparkfun/SparkFun u-blox GNSS Arduino Library @ ^2.2.25
	beegee-tokyo/SX126x-Arduino @ ^2.0.24
	bblanchon/ArduinoJson @ ^7.0.4
	sabas1080/CayenneLPP @ ^1.1.0
; lib_ldf_mode = chain+
; build_type = debug
build_flags =
	; configurações da porta serial
	-D MONITOR_SPEED=115200
	-D UPLOAD_SPEED=115200
	; Debug opções
 	-D D_DESABILITA=0
	-D D_INFORMA=1
	-D D_ERRO=2
	-D CFG_DEBUG=D_ERRO

	; LEDs
	;-D LED_GREEN=35
	;-D PIN_LED1=35
	;-D LED_BLUE=36
	;-D PIN_LED2=36
	;-D LED_STATE_ON=1
	; calibração das variáveis ambientais
	-D SEALEVELPRESSURE_HPA=1010.0
	; Desabilitar INT1/INT2 no RAK1904 para evitar conflito com RAK5801
	; INT1 de RAK1904
	; -D LIS3DH_CTRL_REG3=0x25
	; INT2 de RAK1904 .
	; -D LIS3DH_CTRL_REG6=0x25
	
	; Bateria
	-D PIN_VBAT=WB_A0
	-D VBAT_MV_PER_LSB=0.73242188F  ; 3.0V ADC range and 12 - bit ADC resolution = 3000mV / 4096
	-D VBAT_DIVIDER_COMP=1.73       ; Compensation factor for the VBAT divider, depend on the board
	; -D REAL_VBAT_MV_PER_LSB=(VBAT_DIVIDER_COMP * VBAT_MV_PER_LSB)

	; LoRa
	-D REGION=LORAMAC_REGION_AU915
	-D SUBBAND=1
	-D SCHED_MAX_EVENT_DATA_SIZE=APP_TIMER_SCHED_EVENT_DATA_SIZE ; /**< Maximum size of scheduler events. */
	-D SCHED_QUEUE_SIZE=60										 ; /**< Maximum number of events in the scheduler queue. */
	-D LORAWAN_DATERATE=DR_0
	-D LORAWAN_TX_POWER=TX_POWER_0
	-D JOINREQ_NBTRIALS=3

	-D DEV_EUI=${upload_settings.device_eui}
	-D APP_EUI=${upload_settings.app_eui}
	-D APP_KEY=${upload_settings.app_key}

	; Private defination
	-D MAX_SIZE=51						; // depends on spreading factor and frequency used
	-D LORAWAN_APP_DATA_BUFF_SIZE=64	; tamanho do buffer para o payload a ser enviado via LoRa 
	-D LORAWAN_APP_INTERVAL=20000		; definição do temporizador do intervalo de transmissão dos dados da aplicação. 20 mili segundos
	; configuração dos canais usados para passar o payload no CayenneLPP
	-D LPP_CHANNEL_BATT=1             	; Base Board
	-D LPP_CHANNEL_HUMID_2=6          	; RAK1906
	-D LPP_CHANNEL_TEMP_2=7           	; RAK1906
	-D LPP_CHANNEL_PRESS_2=8          	; RAK1906
	-D LPP_CHANNEL_GAS_2=9            	; RAK1906
	-D LPP_CHANNEL_GPS=10             	; RAK1910/RAK12500
	-D LPP_CHANNEL_ACCEL=113			; rak1904 2 bytes per axis, 0.001G