Code Monkey home page Code Monkey logo

Comments (10)

kolipakakondal avatar kolipakakondal commented on June 15, 2024 1

Can you please run git -C D:\esp-idf-4.0-beta2 describe --tags from the command line to verify that git works?

There is an issue reported with python3.8 with esp-idf on Windows OS, so please use python 3.7 and lower
#14

Try also with the 64-bit python version, seems to be you're using 32-bit.

from idf-eclipse-plugin.

kolipakakondal avatar kolipakakondal commented on June 15, 2024

"Install Tools" action from eclipse ideally configures the toolchain based on the IDF_PATH found.
But looking at the error - toolchain is not configured correctly due to some reason in your case.

To troubleshoot:

  1. Run Install Tools once again https://github.com/espressif/idf-eclipse-plugin#installing-esp-idf-tools
  2. Verify if all the environment variables configured correctly https://github.com/espressif/idf-eclipse-plugin#configuring-environment-variables
  3. Verify toolchains - https://github.com/espressif/idf-eclipse-plugin#configuring-core-build-toolchains

If you see toolchain is not configured correctly - go and configure toolchain as mentioned.

from idf-eclipse-plugin.

saahilshroff avatar saahilshroff commented on June 15, 2024

Hi @kolipakakondal

According to https://github.com/espressif/idf-eclipse-plugin, I am supposed to include "python_env/idf4.0_py3.7_env/bin" when I configure the "PATH" variable.
However, these are the only folders in my python_env/idf4.1_py3.8_env directory:

image

Should I just include these folders while configuring my "PATH" variable instead?

from idf-eclipse-plugin.

kolipakakondal avatar kolipakakondal commented on June 15, 2024

That should be fine since plugin appends /bin or /Scripts based on the operating system.

However, I would suggest you to troubleshoot why these environment variables are not auto-configured. Tools console/error log might provide some info on this.

from idf-eclipse-plugin.

saahilshroff avatar saahilshroff commented on June 15, 2024

"Install Tools" action from eclipse ideally configures the toolchain based on the IDF_PATH found.
But looking at the error - toolchain is not configured correctly due to some reason in your case.

To troubleshoot:

  1. Run Install Tools once again https://github.com/espressif/idf-eclipse-plugin#installing-esp-idf-tools
  2. Verify if all the environment variables configured correctly https://github.com/espressif/idf-eclipse-plugin#configuring-environment-variables
  3. Verify toolchains - https://github.com/espressif/idf-eclipse-plugin#configuring-core-build-toolchains

If you see toolchain is not configured correctly - go and configure toolchain as mentioned.

Completed the steps as suggested.
The error:
image

from idf-eclipse-plugin.

saahilshroff avatar saahilshroff commented on June 15, 2024

While re-installing the tools (HELP->Espressif IDF Tools Manager->Install tools), the following message showed up on the console window.
What should be done in such a case?

CONSOLE OUTPUT:
Installing tools...
This can take a while. Please be patient.
Executing C:\Users\40007382\AppData\Local\Programs\Python\Python38-32\python.exe D:\esp-idf-4.0-beta2\tools\idf_tools.py install all
Installing tools: xtensa-esp32-elf, esp32ulp-elf, cmake, openocd-esp32, mconf, ninja, idf-exe, ccache
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)
Skipping [email protected] (already installed)

Executing C:\Users\40007382\AppData\Local\Programs\Python\Python38-32\python.exe D:\esp-idf-4.0-beta2\tools\idf_tools.py install-python-env
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File "D:\esp-idf-4.0-beta2\tools\idf_tools.py", line 1317, in
main(sys.argv[1:])
File "D:\esp-idf-4.0-beta2\tools\idf_tools.py", line 1313, in main
action_func(args)
File "D:\esp-idf-4.0-beta2\tools\idf_tools.py", line 1112, in action_install_python_env
idf_python_env_path, _, virtualenv_python = get_python_env_path()
File "D:\esp-idf-4.0-beta2\tools\idf_tools.py", line 813, in get_python_env_path
idf_version_str = subprocess.check_output(['git', '-C', global_idf_path, 'describe', '--tags'], cwd=global_idf_path, env=os.environ).decode()
File "C:\Users\40007382\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Users\40007382\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', '-C', 'D:\esp-idf-4.0-beta2', 'describe', '--tags']' returned non-zero exit status 128.

Executing C:\Users\40007382\AppData\Local\Programs\Python\Python38-32\python.exe D:\esp-idf-4.0-beta2\tools\idf_tools.py export --format=key-value
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File "D:\esp-idf-4.0-beta2\tools\idf_tools.py", line 1317, in
main(sys.argv[1:])
File "D:\esp-idf-4.0-beta2\tools\idf_tools.py", line 1313, in main
action_func(args)
File "D:\esp-idf-4.0-beta2\tools\idf_tools.py", line 953, in action_export
idf_python_env_path, idf_python_export_path, virtualenv_python = get_python_env_path()
File "D:\esp-idf-4.0-beta2\tools\idf_tools.py", line 813, in get_python_env_path
idf_version_str = subprocess.check_output(['git', '-C', global_idf_path, 'describe', '--tags'], cwd=global_idf_path, env=os.environ).decode()
File "C:\Users\40007382\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Users\40007382\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', '-C', 'D:\esp-idf-4.0-beta2', 'describe', '--tags']' returned non-zero exit status 128.

from idf-eclipse-plugin.

kolipakakondal avatar kolipakakondal commented on June 15, 2024

Make sure you set the git to the windows system environment Path

from idf-eclipse-plugin.

saahilshroff avatar saahilshroff commented on June 15, 2024

Hi @kolipakakondal

I have set the git to the windows system environment PATH. The error persists!
image

from idf-eclipse-plugin.

saahilshroff avatar saahilshroff commented on June 15, 2024

Hi @kolipakakondal
The git was not working for esp-idf-4.0-beta2. Cloned another esp-idf from the git and worked with that.
Also, used python3.7 (64-bit version).

Everything works fine now!
Kudos to you for helping out.
Thanks! :)

from idf-eclipse-plugin.

moneshrathod avatar moneshrathod commented on June 15, 2024

I tried Run>Run As> Local C/C++ Application and it works for me

from idf-eclipse-plugin.

Related Issues (20)

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.