esp32-c6 linux eclipse esp-adf development environment does not work
-
esp32.damiano
- Posts: 39
- Joined: Sat Aug 23, 2025 6:09 am
esp32-c6 linux eclipse esp-adf development environment does not work
what is the proper way to install the following development environment
CPU is a esp32c6 NOT an extensa or other arm derivatives ! (it is YOUR CPU)
ESP-ADF since I am using a ES8388 with a custom board
ESP-IDF 5.5.1 (not the one inside ESP-ADF, that is really old and as far as I understand has no clang support at all)
codeblocks IDE (tried eclipse in all the permutations and the latest CDT is even worse the the old one)
codeblocks has a clang plugin.... hopefully it will work
the issue is being able to install a clang into tools, apparently, when I select the esp32c6 to install in esp-idf/install.sh the clang part is NOT installed.... and .... WOW the amount of code that there is, just to "tar -xzf some-archive" is .... amazing, I suppose some AI wrote it
while waiting for a solution....
may I suggest that you AVOID using the latest shiny "feature", that does exactly the same thing as the previous one, in a DIFFERENT way.
what you are doing is reinventing the wheel as an hexagon .... yes, it will not roll down the hill.... we get that
CPU is a esp32c6 NOT an extensa or other arm derivatives ! (it is YOUR CPU)
ESP-ADF since I am using a ES8388 with a custom board
ESP-IDF 5.5.1 (not the one inside ESP-ADF, that is really old and as far as I understand has no clang support at all)
codeblocks IDE (tried eclipse in all the permutations and the latest CDT is even worse the the old one)
codeblocks has a clang plugin.... hopefully it will work
the issue is being able to install a clang into tools, apparently, when I select the esp32c6 to install in esp-idf/install.sh the clang part is NOT installed.... and .... WOW the amount of code that there is, just to "tar -xzf some-archive" is .... amazing, I suppose some AI wrote it
while waiting for a solution....
may I suggest that you AVOID using the latest shiny "feature", that does exactly the same thing as the previous one, in a DIFFERENT way.
what you are doing is reinventing the wheel as an hexagon .... yes, it will not roll down the hill.... we get that
-
esp32.damiano
- Posts: 39
- Joined: Sat Aug 23, 2025 6:09 am
Re: esp32-c6 linux eclipse esp-adf development environment does not work
further info
reinstalled eclipse CDT, updated to latest 2025-9, then, I have the following in .profile
so, before starting eclipse I esp-env to set the vars, tested they survive to a new shell
NOTE a recent IDF is needed since the one in ADF is buggy, for eclipse dev purposes
what happens is that eclipse plugin does NOT obey to the env vars and just goes around messing
See the screenshot
reinstalled eclipse CDT, updated to latest 2025-9, then, I have the following in .profile
Code: Select all
esp-env ()
{
echo "esp-env just defines the basic IDF PATH vars"
export WIRADIO_PATH=/home/damiano/work/IPPml-ws/wiradio
export IDF_TOOLS_PATH=${WIRADIO_PATH}/esp-tools
export IDF_PATH=${WIRADIO_PATH}/esp-idf
export ADF_PATH=${WIRADIO_PATH}/esp-adf
}
NOTE a recent IDF is needed since the one in ADF is buggy, for eclipse dev purposes
what happens is that eclipse plugin does NOT obey to the env vars and just goes around messing
See the screenshot
- Attachments
-
- ksnip_20250913-083807.png (33.31 KiB) Viewed 866 times
-
esp32.damiano
- Posts: 39
- Joined: Sat Aug 23, 2025 6:09 am
Re: esp32-c6 linux eclipse esp-adf development environment does not work
can confirm that the eclipse plugin is broken on the above configuration
it keep installing into .espressif even if the shell variable IDF_TOOLS_PATH say otherwise
it keep installing into .espressif even if the shell variable IDF_TOOLS_PATH say otherwise
-
esp32.damiano
- Posts: 39
- Joined: Sat Aug 23, 2025 6:09 am
Re: esp32-c6 linux eclipse esp-adf development environment does not work
I can successfully idf.py build , from shell
when I try to debug from eclipse, the WHOLE project is rebuilt .....
beside being half as fast as the bash compilation, it is totally against the normal makefile rules
something that was working up until five years ago
the whole clang-llvm logic is a total mess, basically another layer of wrappers over compilation
slow and unreliable + good luck finding where the problem is
when I try to debug from eclipse, the WHOLE project is rebuilt .....
beside being half as fast as the bash compilation, it is totally against the normal makefile rules
something that was working up until five years ago
the whole clang-llvm logic is a total mess, basically another layer of wrappers over compilation
slow and unreliable + good luck finding where the problem is
-
esp32.damiano
- Posts: 39
- Joined: Sat Aug 23, 2025 6:09 am
Re: esp32-c6 linux eclipse esp-adf development environment does not work
so, after the whole process of compile, debug start from eclipse this is the result
NOTE the useful error
Java used to give some meaningful traces, not anymore
NOTE the useful error
Java used to give some meaningful traces, not anymore
-
esp32.damiano
- Posts: 39
- Joined: Sat Aug 23, 2025 6:09 am
Re: esp32-c6 linux eclipse esp-adf development environment does not work
wonderful, the eclipse plugin has screwed even the working environment
this is what I get when I try to clean up the project
NOTE that it used to work, before attempting to use the eclipse plugin
in some way, somewhere the location of the tools is redefined
looking around for alternatives
this is what I get when I try to clean up the project
NOTE that it used to work, before attempting to use the eclipse plugin
Code: Select all
$ esp-dev
esp-dev is used when you wish to use the shell to compile
esp-env just defines the basic IDF PATH vars
ADF_PATH: /home/damiano/work/IPPml-ws/wiradio/esp-adf
IDF_PATH: /home/damiano/work/IPPml-ws/wiradio/esp-idf
Checking "python3" ...
Python 3.11.2
"python3" has been detected
ERROR: ESP-IDF Python virtual environment "/home/damiano/.espressif/python_env/idf5.4_py3.11_env/bin/python" not found. Please run the install script to set it up before proceeding.
Checking "python3" ...
Python 3.11.2
"python3" has been detected
Traceback (most recent call last):
File "/home/damiano/work/IPPml-ws/wiradio/esp-adf/tools/adf_install_patches.py", line 19, in <module>
from idf_py_actions.tools import idf_version
File "/home/damiano/work/IPPml-ws/wiradio/esp-idf/tools/idf_py_actions/tools.py", line 25, in <module>
from esp_idf_monitor import get_ansi_converter
ModuleNotFoundError: No module named 'esp_idf_monitor'
looking around for alternatives
-
esp32.damiano
- Posts: 39
- Joined: Sat Aug 23, 2025 6:09 am
Re: esp32-c6 linux eclipse esp-adf development environment does not work
Tried the new ESP-IDF plugin beta for Eclipse, cannot set where the tools directory is, simply there is no choice
https://dl.espressif.com/dl/idf-eclipse ... ates/beta/
Can anybody send a message to developers "removing features do NOT make people satisfied"
so, went back to trying to get Eclipse CDT 2025-09 to work with the latest official ESP-IDF plugin
https://dl.espressif.com/dl/idf-eclipse ... tes/latest
One of the BIG issues is that it appears that tools are part of IDF, but they are not really, they have a life of their own
Since tools are on their own, make it clear, allow users to install them like ESP-TOOLS, a simple bash script, you could even use python, please STANDARD python, not a hacked version.
anyway, I have it mostly working, this is the latest error message
NOTE that the code can be compiled and run on the CPU, I do it using idf.py
what does NOT work is the IDE and the debugger
I cannot open a bug into github for IDF plugin since their idiotic double verification had shut me out
It is quite easy to gave GOOD review on github, just shut people out.....
I am really tired
https://dl.espressif.com/dl/idf-eclipse ... ates/beta/
Can anybody send a message to developers "removing features do NOT make people satisfied"
so, went back to trying to get Eclipse CDT 2025-09 to work with the latest official ESP-IDF plugin
https://dl.espressif.com/dl/idf-eclipse ... tes/latest
One of the BIG issues is that it appears that tools are part of IDF, but they are not really, they have a life of their own
Since tools are on their own, make it clear, allow users to install them like ESP-TOOLS, a simple bash script, you could even use python, please STANDARD python, not a hacked version.
anyway, I have it mostly working, this is the latest error message
Code: Select all
(Eclipse:26524): Gtk-CRITICAL **: 16:31:00.825: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
I[16:31:00.988] Built preamble of size 0 for file /home/damiano/work/IPPml-ws/wiradio/eclip-esp/tryadf/main/main.c version 1 in 0.80 seconds
I[16:31:01.029] Indexing c17 standard library in the context of /home/damiano/work/IPPml-ws/wiradio/eclip-esp/tryadf/main/main.c
Sep 13, 2025 4:31:01 PM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint notify
WARNING: Failed to send notification message.
org.eclipse.lsp4j.jsonrpc.JsonRpcException: java.io.IOException: Stream Closed
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageConsumer.consume(StreamMessageConsumer.java:72)
at org.eclipse.lsp4e.LanguageServerWrapper.lambda$3(LanguageServerWrapper.java:419)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.notify(RemoteEndpoint.java:135)
at org.eclipse.lsp4j.jsonrpc.services.EndpointProxy.invoke(EndpointProxy.java:88)
at jdk.proxy11/jdk.proxy11.$Proxy30.cancelProgress(Unknown Source)
at org.eclipse.lsp4e.progress.LSPProgressManager.lambda$1(LSPProgressManager.java:104)
at org.eclipse.core.runtime.jobs.Job$2.run(Job.java:187)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.io.IOException: Stream Closed
at java.base/java.io.FileOutputStream.writeBytes(Native Method)
at java.base/java.io.FileOutputStream.write(FileOutputStream.java:367)
at java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:125)
at java.base/java.io.BufferedOutputStream.implFlush(BufferedOutputStream.java:252)
at java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:246)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageConsumer.consume(StreamMessageConsumer.java:69)
... 7 more
what does NOT work is the IDE and the debugger
I cannot open a bug into github for IDF plugin since their idiotic double verification had shut me out
It is quite easy to gave GOOD review on github, just shut people out.....
I am really tired
-
esp32.damiano
- Posts: 39
- Joined: Sat Aug 23, 2025 6:09 am
Re: esp32-c6 linux eclipse esp-adf development environment does not work
Latest error that just crash the eclipse editing window
enough for the day
Code: Select all
eclipse.buildId=4.37.0.20250905-1455
java.version=21.0.8
java.vendor=Eclipse Adoptium
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.cpp.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.cpp.productCode: Select all
java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: trying to get AST for non-added document
at java.base/java.util.concurrent.CompletableFuture.encodeRelay(CompletableFuture.java:368)
at java.base/java.util.concurrent.CompletableFuture.completeRelay(CompletableFuture.java:377)
at java.base/java.util.concurrent.CompletableFuture$UniRelay.tryFire(CompletableFuture.java:1097)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2194)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:220)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:204)
at org.eclipse.lsp4e.LanguageServerWrapper.lambda$3(LanguageServerWrapper.java:419)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:185)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:97)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:114)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: trying to get AST for non-added document
... 11 moreCode: Select all
org.eclipse.lsp4j.jsonrpc.ResponseErrorException: trying to get AST for non-added documentWho is online
Users browsing this forum: Baidu [Spider], Bing [Bot], Google [Bot], meta-externalagent and 1 guest