Closed 10bn closed 2 years ago
Hi, thanks for your interest in the project! This is unexpected, I have set up the CI explicitly to catch any such issues, the latest run finished today successfully on all platforms: https://github.com/krzmaz/LinakDeskEsp32Controller/actions/runs/3264545031
What is even more unexpected is that from the logs it seems that your build is using different versions of the dependencies than explicitly specified in platformio.ini
.
For example
ESPAsync_WiFiManager @ 1.15.0
is different than https://github.com/krzmaz/LinakDeskEsp32Controller/blob/main/platformio.ini#L78:
khoih-prog/ESPAsync_WiFiManager @ 1.9.8
Did you change your platformio.ini
file, or ran any automatic dependencies upgrades?
Hi, thank's for you fast response. I'm sorry, I was already fiddeling to long with this yesterday and forgot that I had changed something, because it wouldn't compile straight from the beginning.
Here are my steps with a fresh setup:
Downloading your latest release:
Opening it with VS Code --> search for PlatfomIO --> Enable (Workspace):
Click Build:
Console Output:
* Executing task: C:\Users\Max\.platformio\penv\Scripts\platformio.exe run --environment esp32dev
test_build_project_src
configuration option in section [env:googletest_esp32] is deprecated and will be removed in the next release! Please use test_build_src
instead
Warning! src_filter
configuration option in section [env:googletest_esp32] is deprecated and will be removed in the next release! Please use build_src_filter
instead
Warning! src_filter
configuration option in section [env:native] is deprecated and will be removed in the next release! Please use build_src_filter
instead
Processing esp32dev (platform: https://github.com/platformio/platform-espressif32.git#feature/idf-v4.0; board: esp32dev; framework: arduino)Platform Manager: Installing git+https://github.com/platformio/platform-espressif32.git#feature/idf-v4.0 git version 2.37.2.windows.2 Cloning into 'C:\Users\Max.platformio.cache\tmp\pkg-installing-6vixnn_o'... warning: Could not find remote branch feature/idf-v4.0 to clone. fatal: Remote branch feature/idf-v4.0 not found in upstream origin Error: VCS: Could not process command ['git', 'clone', '--recursive', '--depth', '1', '--branch', 'feature/idf-v4.0', 'https://github.com/platformio/platform-espressif32.git', 'C:\Users\Max\.platformio\.cache\tmp\pkg-installing-6vixnn_o']
Thanks for checking on this! :)
Sorry for that, this is a problem with upstream deleting needed branches.
fatal: Remote branch feature/idf-v4.0 not found in upstream origin
Please try using the mainline code:
I will try to keep in mind to create another tag
I cloned the main branch but it won't compile either.
* Executing task: C:\Users\Max\.platformio\penv\Scripts\platformio.exe run
Warning! `test_build_project_src` configuration option in section [env:googletest_esp32] is deprecated and will be removed in the next release! Please use `test_build_src` insteadWarning! `src_filter` configuration option in section [env:googletest_esp32] is deprecated and will be removed in the next release! Please use `build_src_filter` instead
Warning! `src_filter` configuration option in section [env:native] is deprecated and will be removed in the next release! Please use `build_src_filter` instead
Processing esp32dev (platform: https://github.com/platformio/platform-espressif32.git#feature/arduino-idf-master; board: esp32dev; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
patch C:\Users\Max\.platformio\platforms\espressif32@src-ba2d3999402da5eaf2c9d5863ef113c7\builder\main.py patches\gcc-ar-ranlib.patch
'patch' is not recognized as an internal or external command,
operable program or batch file.
*** Error 1
Exception: Problem while applying platform patches!
See scripts/apply_patches.py for more details!
:
File "C:\Users\Max\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 186:
env.SConscript(item, exports="env")
File "C:\Users\Max\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Script\SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\Max\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Script\SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Users\Max\dev\github\LinakDeskEsp32Controller\scripts\apply_patches.py", line 21:
raise Exception("Problem while applying platform patches!\n\n"
=========================================================================== [FAILED] Took 14.11 seconds ===========================================================================
Environment Status Duration
------------- -------- ------------
esp32dev FAILED 00:00:14.108
====================================================================== 1 failed, 0 succeeded in 00:00:14.108 ======================================================================
* The terminal process "C:\Users\Max\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
I got it working by installing patch and adding it to my env path. Then I had to log in and out from my windows session to make it work. My first try was pip install patch which wasn't working.
This is the patch executable I downloaded and used: https://sourceforge.net/projects/gnuwin32/
Thankyou for your help. If their is any more help from my side needed to get everything more streamlined please let me know.
Great to see that it worked eventually. And this is a good datapoint that the log
See scripts/apply_patches.py for more details!
doesn't work 😄 There is an instruction about manually patching the needed files there: https://github.com/krzmaz/LinakDeskEsp32Controller/blob/main/scripts/apply_patches.py#L17-L19
I will think about fixing this in the python script maybe.
Yeah, that was good help. :)
Thanks a lot. Unfortuanteley the esp reboot's a lot and I opened a seperate issue for that. https://github.com/krzmaz/LinakDeskEsp32Controller/issues/17
Hi, thanks for you work on this. I installed vs code and platform io but unfortunately I'm unable to compile your latest realease.
Here is my console ouptput. I would apprechiate if you could have a look and let me know why it suddenlty want's the ESPAsyncDNSServer?