PlatformIO Community

PLease give me a CLEAR and simple include path

Thanks platformIO for making things complex and creating explaining text that does not explain anything

I know I should keep it simple and include all my code limited to 1 single project

You can add folders to the workspace as much as you want they disapear in thin mist …
You can erase .vscode as much as you want nothing can be included how should he know where from

please for include per libarary give me a means to add a library xxxxx> a.h;b.h,c.h a.cpp b.cpp c.cpp
located SOMEWHERE (MY choice!!!) in MY DISK
and allow me to add the path of XXXXX to the include path so that include path not found DISAPEARS FOREVER
so that library path not found DISAPEARS for ever
and I’m able to add XXXXX ,YYYYY “LYBRARY ENTITIES” to my different PROJECTS
without being blocked for a whole week… it is 2020 tme for amaturisme is FINISHED

Ok, I think in the middle of all that I see you ignored the message that the top of c_cpp_properties.json… which told you changes to the file would be lost…

… meaning now would be a good time to read the documentation linked … … specifically the -Idir flag since you want to add to the include path.

Folders added to workspaces aren’t ‘just disappearing’… you’re doing something without realising it… perhaps opening a new window, which is also a new ‘empty’ workspace, or something simple like that, which then throws you because you don’t know why the workspace is now empty.

Check out what I do, maybe it will help (All my custom dependencies that I use on many projects are in .lib and its in the same directory as all my project folders):


;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

platform = atmelavr
framework = arduino

lib_extra_dirs = ../.lib
lib_deps = 

board = ATmega328PB

upload_protocol = usbtiny
upload_flags =
  -e  ;For some reason this MCU has a verification error unless completely erased before every upload
  -b 1000000
  ;-Uhfuse:w:0xDF:m ;wdt off
  ;-Uhfuse:w:0xCF:m ;wdt on

Hope it helps bud!

1 Like