-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing CMakeLists.txt requires Eclipse to be rebooted (IEP-1401) #1119
Comments
@leenowell hi ! Could you please provide me with the following information:
I will take a look |
Thanks for getting back to me. The command doesn't matter you just need to any change (e.g. add a space) to make a change to CMakeLists.txt and it happens. This is the Eclipse version meeting Eclipse IDE for C/C++ Developers (includes Incubating components) Version: 2024-12 (4.34.0) Thanks Lee. |
My env: I have tested this scenarios: Could you please provide Product Info logs. go to "Espressif" menu -> Product Information -> copy console content -> and just paste it here. I want to verify if your tools are installed correctly. |
I am also on Ubuntu but version 24.04.1 As requested here are the product logs Executing /usr/bin/python3 /home/lee/esp/esp-idf/tools/idf_tools.py list
CDT Build environment variables Operating System: linux |
@leenowell hi ! I did replicate your environment. Here are my settings:
I couldn't reproduce your issue. I recorded a video for you showing how I tested it. Screencast.from.2025-01-17.17-44-19.webmI see you're encountering the issue in a custom project. Please try testing the problem using the standard examples from ESP-IDF and let me know the results. |
The video helped thanks. I did exactly the same as you by creating a new hello_world, letting it compile and then edited the CMakeFileLists.txt file at the same level as main. I then added a space to the end of the following line cmake_minimum_required(VERSION 3.16) I then pressed the build button and reproduced the error. I took a video of it but it was too big (100Mb+). |
@AndriiFilippov I managed to reduce the size of the video so hopefully you can see it ok VID-20250117-WA0002.mp4 |
Any update on this please? |
@leenowell hi ! I was not able to reproduce your issue. Please, send me error logs. Screencast.from.2025-01-21.14-59-54.webm |
As requested please find attached the error log I used the hello world example app and did the same as I did in the video I sent |
execute this command from Terminal and then retry modify CMakeList.txt: sudo chmod -R 755 /media/Documents/Lee/Dev/NewESP32Workspace/ |
It is a little more tricky than that as this file system is on an NFS share. If you are thinking this might be a file permission issue, I have checked all the files / directories in the structure and they are all 777 |
Hi @leenowell, Could you please try downloading the Espressif-IDE from this link (In the Artifacts section down below): https://github.com/espressif/idf-eclipse-plugin/actions/runs/12691399517 and check if the issue persists? |
Hi @sigmaaa I tried installing it but am struggling to get it to work. I am on Ubuntu 24.04 and downloaded [Espressif-IDE-3.2.0-linux.gtk.x86_64] and extracted it into a directory. I run espressif_ide and using ESP_IDF manager tried to install the idf by pointing it to my existing espidf directory and using the same location for git and python as my eclipse setup ( ). It starts to set up the environment and I get the following error window The log in the console is ` ERROR: Failed to check the tool while installed. Removing directory /home/lee/.espressif/tools/qemu-xtensa/esp_develop_9.0.0_20240606 Executing /usr/bin/python3 /home/lee/esp/esp-idf/tools/idf_tools.py install-python-env
Executing /usr/bin/python3 /home/lee/esp/esp-idf/tools/idf_tools.py export --format=key-value ` |
Hi @leenowell, This issue occurs when the IDF_PYTHON_ENV_PATH variable is set in the system environment. We are addressing this, and a fix will be included in the next release. In the meantime, please remove the IDF_PYTHON_ENV_PATH (it's recommended to remove all ESP-IDF-related variables to avoid conflicts) from the system environment variables. Then, restart your IDE and reinstall the tools. |
Hi @sigmaaa Yes that fixed it thanks. I run the same hello_world test and it seems to work fine on EspressifIDE. There were a couple of other errors though so have attached the log in case it helps. |
Hi @leenowell, After quickly looking into the logs, I don't see any critical issues. Most of them probably happened before the tools were installed. |
Describe the bug
If you change the CMakeLists.txt file then a "problem occurs" box appears and you can't build the project until you restart Eclipse
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Should be able to build the project without the error
Screenshots
If applicable, add screenshots to help explain your problem.
Espressif-IDE Product Information:
Espressif > Product Information (Copy content from the console and attach as a file)
Building in: /media/Documents/Lee/Dev/NewESP32Workspace/HomeIoT/build
Configuring in: /media/Documents/Lee/Dev/NewESP32Workspace/HomeIoT/build
Eclipse Error log:
Window > Show View > Other > Search for "Error Log" (Attach as a file)
Please attach the error log as described here https://github.com/espressif/idf-eclipse-plugin#error-log
CmakelistsBug.log
The text was updated successfully, but these errors were encountered: