Open fredlcore opened 7 months ago
Here's my platformio.ini, just in case:
; 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
[platformio]
src_dir = src/BSB_LAN
[env:Olimex-EVB]
platform = https://github.com/platformio/platform-espressif32.git
board = esp32-evb
framework = arduino
build_src_filter = +<*>
upload_speed = 460800
board_build.partitions = min_spiffs.csv
build_flags = -DDS218 -DBSB_BUS -Werror=tautological-compare -Wtype-limits -Wimplicit-fallthrough
; -DCORE_DEBUG_LEVEL=5
upload_port = /dev/cu.*usb*serial*
build_type = debug
monitor_filters = esp32_exception_decoder, time
monitor_speed = 115200
lib_deps = arduino-libraries/Ethernet, miq19/eModbus
[env:due-PPS]
platform = atmelsam
board = due
framework = arduino
build_flags =
-DPPS_BUS
-DDS213
lib_deps =
arduino-libraries/Ethernet@^2.0.1
[env:esp32-JoyIt]
platform = https://github.com/platformio/platform-espressif32.git
board = esp32doit-devkit-v1
framework = arduino
monitor_speed = 115200
monitor_filters = esp32_exception_decoder, time
build_src_filter = +<*>
upload_port = /dev/cu.usbserial*
upload_speed = 460800
board_build.partitions = min_spiffs.csv
build_flags = -DNODEMCU
lib_deps =
arduino-libraries/Ethernet
+1 I am seeing the same error FileNotFoundError: [Errno 2] No such file or directory: '/[...path...]/.pio/build/nanoTag/.sconsign311.tmp'
If I change the env name it works again for some time and then fails with the same error again
+1 Same issue all of a sudden
What I figured out solves the problem most of the time is to completely remove the .pio
folder (although "Full Clean" also removes all the contents within .pio
it doesn't remove the folder itself) and before doing any build run, save the platformio.ini
file. Even with no changes, this starts the dependency run which would otherwise run when starting the build run. But the dependencies might not be completely downloaded/installed yet, so the build then fails. And with more failed builds, the matter seems to get worse. Sometimes, for example, I had MyScript.ino.cpp
, MyScript 1.ino.cpp
and MyScript 2.ino.cpp
in my src
folder (which should have been placed in the build
folder above the src
directory. Only when I figured out that they ended up in my src
folder, the build run succeeded.
So there's something not quite right in the way of the timing here, I guess, but the above mentioned procedure did the trick for me, at least for now...
What I figured out solves the problem most of the time is to completely remove the
.pio
folder (although "Full Clean" also removes all the contents within.pio
it doesn't remove the folder itself) and before doing any build run, save theplatformio.ini
file. Even with no changes, this starts the dependency run which would otherwise run when starting the build run. But the dependencies might not be completely downloaded/installed yet, so the build then fails. And with more failed builds, the matter seems to get worse. Sometimes, for example, I hadMyScript.ino.cpp
,MyScript 1.ino.cpp
andMyScript 2.ino.cpp
in mysrc
folder (which should have been placed in thebuild
folder above thesrc
directory. Only when I figured out that they ended up in mysrc
folder, the build run succeeded. So there's something not quite right in the way of the timing here, I guess, but the above mentioned procedure did the trick for me, at least for now...
Can confirm this. I wasn't able to pinpoint the root of the problem, but maybe someone can tell us when these errors started happening, so we can track it down in this repository.
What exactly is it that you cannot confirm? I can reproduce here that after doing a full clean or rm .pio
, the dependencies are not immediately pursued. I have to save platformio.ini
in order to do so. Otherwise it will happen while the build run is being executed. This seems to be at least part of the problem on my side.
I have to take a closer look tomorrow. If saving platformio.ini
after the dependencies have downloaded, is reproducing a working scenario, that would help us a lot in the right direction.
Maybe I wasn't expressing myself accurately, what I mean is this:
.pio
folderplatformio.ini
in order forIf I omit step 3, the dependencies will only start to download upon starting the build process, so that compilation and downloading occurs in parallel.
I have a project (https://github.com/fredlcore/BSB-LAN) that I use with PlatformIO on MacOS Sonoma 14.2.1. For a while nowmore and more often I run into errors in the build process that sometimes go away just by clicking "Build" again, sometimes not. Sometimes it helps for a few builds if I rename the project (for example from
[env:esp32-JoyIt]
to[env:esp32-Joy-It]
), sometimes not. Also, the same code will compile fine for esp32-evb, but not for an esp32doit-devkit-v1 - or vice versa. I have tried "Full Clean" several times and have also removed the corresponding platforms from.platformio/platforms
so that they got re-downloaded and reinstalled, as well as removing the build and libdeps folders from the .pio folder. Nothing helped.These are some of the errors that I'm randomly getting:
Sometimes, when the build does go through and the firmware is being built as the last step, I sometimes get this error:
I don't know if this is intended or not, but after a failed build, the corresponding folder inside the .pio/build folder gets removed, so I cannot even do a post-mortem here.
I've seen other solutions on the web at least for this
.sconsign311.tmp
error, which included removing the directories I mentioned above, but as I said, none of that helped in the long run. I'd be glad if someone could help me fix this. Thank you!