Hi all)))
I’m beginner with PlatformIO program and sorry if my question have been repeated but I haven’t found the solution(
I installed this program on VS Code created new project and discovered three problems:
in c_cpp_properties.json file
Path is not a directory: “C:\Users\Green Eagle.platformio\packages\toolchain-atmelavr\bin\avr-gcc.exe”.
#include errors detected. Please update your includePath. IntelliSense features for this translation unit (C:\Users\Green Eagle\Documents\PlatformIO\Projects\111\src\main.cpp) will be provided by the Tag Parser.
cannot open source file “stdlib.h” (dependency of “Arduino.h”)
The include path warning (and it is only a warning, it shouldn’t be stopping you from working on your code) started appearing after a recent update to the Microsoft C/C++ Extension for VSCode, and Ivan is trying to get the bottom of it and get it fixed over there…
As far as the problems in main.cpp, it’s hard to tell exactly what is causing that without knowing the content of your platformio.ini and main.cpp files…
Do you have any extensions installed other than the C/C++ and PlatformIO IDE? If there is anything that does clang formatting, IntelliSense, etc, that may be interacting strangely.
Otherwise, I would suggest you close VSCode, delete C:/Users/Green Eagle/.platformio/ and let the PlatformIO IDE extension re-install the platform when you restart VSCode.
“C:\Users\Green Eagle\.platformio\penv\Scripts;C:\Users\Green Eagle\.platformio\penv;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS;C:\Program Files (x86)\Intel\iCLS Client\;Intel\iCLS Client\;C:\ (… some kind of programs) \Programs\Microsoft VS Code\bin”
and VS Code is writing:
This setting cannot be applied now. It will be applied when you open this folder directly.
But I’ll be using Atom instead of VS Code))) Atom don’t have these problems.))))))
Thank you @ivankravets and @pfeerick for help! ))))