You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Neither "Use an existing ESP-IDF directory from file system" (providing existing ESP-IDF directory /opt/install/esp-idf) nor "Download ESP-IDF" work. Both will eventually result in a "Problem Occured" modal with the error message:
'Installing tools...' has encountered a problem.
Cannot invoke "String.indexOf(int)" because "value" is null
The Eclipse Console view has the following output:
Notice the nonsensical executable path null/bin/python.
For Git path, I use the prepopulated /usr/bin/git (which indeed is the correct path)
For Python path, prepopulated /home/abdull/.espressif/python_env/idf5.4_py3.11_env/bin/python3 does indeed exist (I don't know which tool prepared the $HOME/.espressif/ directory structure, but it does include ./python_env/idf5.4_py3.11_env/bin/python3, which is a symlink to /usr/bin/python3, which in turn is a symlink to python3.11, which in turn exists on my system (i.e., at /usr/bin/python3.11) ).
To Reproduce
Steps to reproduce the behavior:
Download Espressif-IDE-3.0.0-linux.gtk.x86_64.tar.gz and extract. Start by executing command ./espressif-ide
Close Welcome message
Open ESP-IDF Manager
Click "Add ESP-IDF"
Expected behavior
Specified ESP-IDF shall be added to ESP-IDF Manager's IDF Tools list. But actually isn't.
Screenshots
See inline.
Espressif-IDE Product Information:
Espressif > Product Information (Copy content from the console and attach as a file)
As the output includes too much sensitive information, please let me know which data in particular is required, and I'll update
* xtensa-esp-elf-gdb: GDB for Xtensa
- 14.2_20240403 (recommended, installed)
* riscv32-esp-elf-gdb: GDB for RISC-V
- 14.2_20240403 (recommended, installed)
* xtensa-esp-elf: Toolchain for 32-bit Xtensa based on GCC
- esp-13.2.0_20240530 (recommended, installed)
* esp-clang: Toolchain for all Espressif chips based on clang (optional)
- esp-17.0.1_20240419 (recommended, installed)
* riscv32-esp-elf: Toolchain for 32-bit RISC-V based on GCC
- esp-13.2.0_20240530 (recommended, installed)
* esp32ulp-elf: Toolchain for ESP32 ULP coprocessor
- 2.38_20240113 (recommended, installed)
* cmake: CMake build system (optional)
- 3.24.0 (recommended, installed)
- 3.16.3 (supported)
* openocd-esp32: OpenOCD for ESP32
- v0.12.0-esp32-20240726 (recommended, installed)
* ninja: Ninja build system (optional)
- 1.11.1 (recommended, installed)
* esp-rom-elfs: ESP ROM ELFs
- 20240305 (recommended, installed)
* qemu-xtensa: QEMU for Xtensa (optional)
- esp_develop_9.0.0_20240606 (recommended, installed)
* qemu-riscv32: QEMU for RISC-V (optional)
- esp_develop_9.0.0_20240606 (recommended, installed)
OK
# truncated due to sensitive details
Eclipse Error log:
Window > Show View > Other > Search for "Error Log" (Attach as a file)
Because of sensitive data, adding the interesting bits here instead:
# ...
!ENTRY com.espressif.idf.core 4 0 2024-08-27 19:26:46.954
!MESSAGE Cannot run program "null/bin/python" (in directory "/"): error=2, No such file or directory
!STACK 0
java.io.IOException: Cannot run program "null/bin/python" (in directory "/"): error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
at com.espressif.idf.core.ProcessBuilderFactory.run(ProcessBuilderFactory.java:42)
at com.espressif.idf.ui.tools.ToolsJob.runCommandIdfPyInIdfEnv(ToolsJob.java:359)
at com.espressif.idf.ui.tools.ToolsJob.getIdfVersionFromIdfPy(ToolsJob.java:310)
at com.espressif.idf.ui.tools.ToolsJob.processExportCmdOutput(ToolsJob.java:121)
at com.espressif.idf.ui.tools.ToolsInstallationJob.run(ToolsInstallationJob.java:78)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
... 7 more
# ...
!ENTRY com.espressif.idf.core 4 0 2024-08-27 19:26:46.965
!MESSAGE Cannot invoke "String.indexOf(int)" because "value" is null
!STACK 0
java.lang.NullPointerException: Cannot invoke "String.indexOf(int)" because "value" is null
at java.base/java.lang.ProcessEnvironment.validateValue(ProcessEnvironment.java:120)
at java.base/java.lang.ProcessEnvironment$Value.valueOf(ProcessEnvironment.java:203)
at java.base/java.lang.ProcessEnvironment$StringEnvironment.put(ProcessEnvironment.java:243)
at java.base/java.lang.ProcessEnvironment$StringEnvironment.put(ProcessEnvironment.java:221)
at java.base/java.util.AbstractMap.putAll(AbstractMap.java:281)
at com.espressif.idf.core.ProcessBuilderFactory.run(ProcessBuilderFactory.java:38)
at com.espressif.idf.ui.tools.ToolsJob.runCommandIdfPyInIdfEnv(ToolsJob.java:359)
at com.espressif.idf.ui.tools.ToolsJob.loadTargetsAvailableFromIdfInCurrentToolSet(ToolsJob.java:164)
at com.espressif.idf.ui.tools.ToolsInstallationJob.run(ToolsInstallationJob.java:103)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
!ENTRY com.espressif.idf.core 4 0 2024-08-27 19:26:46.968
!MESSAGE Cannot invoke "String.indexOf(int)" because "value" is null
!STACK 0
java.lang.NullPointerException: Cannot invoke "String.indexOf(int)" because "value" is null
at java.base/java.lang.ProcessEnvironment.validateValue(ProcessEnvironment.java:120)
at java.base/java.lang.ProcessEnvironment$Value.valueOf(ProcessEnvironment.java:203)
at java.base/java.lang.ProcessEnvironment$StringEnvironment.put(ProcessEnvironment.java:243)
at java.base/java.lang.ProcessEnvironment$StringEnvironment.put(ProcessEnvironment.java:221)
at java.base/java.util.AbstractMap.putAll(AbstractMap.java:281)
at com.espressif.idf.core.ProcessBuilderFactory.run(ProcessBuilderFactory.java:38)
at com.espressif.idf.ui.tools.ToolsJob.runCommandIdfPyInIdfEnv(ToolsJob.java:359)
at com.espressif.idf.ui.tools.ToolsJob.loadTargetsAvailableFromIdfInCurrentToolSet(ToolsJob.java:164)
at com.espressif.idf.ui.tools.ToolsInstallationJob.run(ToolsInstallationJob.java:103)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
ESP-IDF Manager: 'Installing tools...' has encountered a problem. Cannot invoke "String.indexOf(int)" because "value" is null
ESP-IDF Manager: 'Installing tools...' has encountered a problem. Cannot invoke "String.indexOf(int)" because "value" is null (IEP-1317)
Aug 27, 2024
@Abdull thanks for reporting this issue was happening with master branch for esp-idf and is fixed with the most recent release please let us know if you face this again
Describe the bug
In a freshly installed Espressif IDE 3.0.0 (via
Espressif-IDE-3.0.0-linux.gtk.x86_64.tar.gz
), despite fulfilling all prerequisites and following the steps installations steps found in https://github.com/espressif/idf-eclipse-plugin/blob/27f07351f83acc220e4630d29120d2dd89a02c07/README.md#Installation , I cannot setup the ESP-IDF via the ESP-IDF Manager.Neither "Use an existing ESP-IDF directory from file system" (providing existing ESP-IDF directory
/opt/install/esp-idf
) nor "Download ESP-IDF" work. Both will eventually result in a "Problem Occured" modal with the error message:The Eclipse Console view has the following output:
Eclipse *Console* output (click to expand)
Notice the last couple of lines:
Notice the nonsensical executable path
null/bin/python
./usr/bin/git
(which indeed is the correct path)/home/abdull/.espressif/python_env/idf5.4_py3.11_env/bin/python3
does indeed exist (I don't know which tool prepared the$HOME/.espressif/
directory structure, but it does include./python_env/idf5.4_py3.11_env/bin/python3
, which is a symlink to/usr/bin/python3
, which in turn is a symlink topython3.11
, which in turn exists on my system (i.e., at/usr/bin/python3.11
) ).To Reproduce
Steps to reproduce the behavior:
Espressif-IDE-3.0.0-linux.gtk.x86_64.tar.gz
and extract. Start by executing command./espressif-ide
Expected behavior
Specified ESP-IDF shall be added to ESP-IDF Manager's IDF Tools list. But actually isn't.
Screenshots
See inline.
Espressif-IDE Product Information:
Espressif > Product Information (Copy content from the console and attach as a file)
As the output includes too much sensitive information, please let me know which data in particular is required, and I'll update
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
Because of sensitive data, adding the interesting bits here instead:
The text was updated successfully, but these errors were encountered: