Coder Social home page Coder Social logo

Comments (7)

krzmaz avatar krzmaz commented on September 26, 2024

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?

from linakdeskesp32controller.

10bn avatar 10bn commented on September 26, 2024

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:

  1. Downloading your latest release:
    Screenshot 2022-10-18 084523

  2. Opening it with VS Code --> search for PlatfomIO --> Enable (Workspace):
    image

  3. Click Build:
    image

  4. Console Output:

 *  Executing task: C:\Users\Max\.platformio\penv\Scripts\platformio.exe run --environment esp32dev 

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` 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']

 *  The terminal process "C:\Users\Max\.platformio\penv\Scripts\platformio.exe 'run', '--environment', 'esp32dev'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

Thanks for checking on this! :)

from linakdeskesp32controller.

krzmaz avatar krzmaz commented on September 26, 2024

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:
image

I will try to keep in mind to create another tag

from linakdeskesp32controller.

10bn avatar 10bn commented on September 26, 2024

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. 

from linakdeskesp32controller.

10bn avatar 10bn commented on September 26, 2024

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.

from linakdeskesp32controller.

krzmaz avatar krzmaz commented on September 26, 2024

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.

from linakdeskesp32controller.

10bn avatar 10bn commented on September 26, 2024

Yeah, that was good help. :)

Thanks a lot. Unfortuanteley the esp reboot's a lot and I opened a seperate issue for that.
#17

from linakdeskesp32controller.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.