Hi there, THank you for taking the time to look a this. Im very new to platformio but after 11 hours of struggling i still have no clue what im missing.
I am on a totally fresh install of VScode and The pio env.
I keep having a million small errors and most of them arent in my code file.
I’ve looked through a lot of posts, gthub questions and followed youtube tutorials to no avail.
Im sure im just missing something small and simple that comes with experience.
Here is my .ini file
; 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 = espressif8266
board = esp8285
framework = arduino
lib_deps = links2004/WebSockets@^2.3.6
Ive attached a screen shot of my envirement to show the errors in terminal upon build i constantly hit my head on, the extensions i have installed and the “unable to open file” error i keep getting on the problems page in the terminal
You can’t just redefine compiler flags like that by writing them directly with no prefix in the platformio.ini. Use build_flags and build_unflags if you need to. In this case I don’t really see why you would need those flags, I suggest deletion.
Regarding the “Problems” section: I’m seeing two deprecation warnings regarding the usage of SPIFFS in your code. However, the warning can be safely ignored, it’s not a compiler error and won’t give you troubles in this version. Then there are two warnings in your library code.
The Adafruit neopixel warning is valid, but it has since been fixed in the main branch.
The “Unable to open file” error is the more critical one. The path looks very long so you might be hitting the MAX_PATH limitation. Either rename the project folder to shorten the path, or enable Windows long paths as general countermeasure.
I remember from my work days, having to use Windows 7 and 10. The file explorer allowed path names longer than the maximum allowed, but when you tried to copy or move a file from “the depths” it would complain about something else other than the path length, and fail!