-
Notifications
You must be signed in to change notification settings - Fork 124
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
How to fix the mess after esp-idf-tools-setup-offline-2.6.exe offline installer? (IEP-416) #259
Comments
Update1: After set I run ESP-IDF 4.2 CMD to set extra path settings for ESP then copy the path var from there, replace \ with / and add a PATH environment variable, but next when run Help>Product Information: I got some garbage for PATH in the report that stays in front of what I set for PATH: PATH: D:/ESP/tools/idf-eclipse/2021-03//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin/server;D:/ESP/tools/idf-eclipse/2021-03//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\ActiveState Komodo Edit 11;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\PuTTY;D:\AndroidSDK\platform-tools;C:\Program Files\Java\jdk-12.0.1\bin;C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin;C:\Users\xx\AppData\Local\Microsoft\WindowsApps;;D:\ESP\esp-idf;and_from_here _start whatever_I_put_for_PATH…. So I go back delete the content of the PATH variable, then paste again and finally was fixed Now Question1: what to do with those idf_python_env_path, idf_python_export_path, virtualenv_python Question 2: Core build toolchains Do I need to add/edit anything: Question3: How to fix those ‘fatal:’ at the end of the report from Help>Product Information I have and which dir to put in Windows or Eclipse PATH variable for Python (that was no found)? Thanks |
Hi @samsam4 We are sorry that it didn't work out of the box. It seems to be there is some issue in running install tools and configuring environment variables. To troubleshoot further, could you please provide the Eclipse error log https://github.com/espressif/idf-eclipse-plugin#error-log. You can export and attach a file. |
Hello,
Attached is my error log as requested. Meanwhile could you, please, answer the 3 questions in my second positing after I partially resolved the issue as I any way prefer not to uninstall/install again the offline installer if it possible to fix whatever left manually?
Thanks
|
Hello @samsam4 Looks like you have forgotten to attach a log file. Could you check? Also,can you run the install tools action from Eclipse: Please send the console log if you see any error during the install tools. |
No I didn't forget - I replied on the email I received, because it claimed that I could either reply directly to the email or online. |
Thank you @samsam4 for reporting the problem. It seems that paths to Python and Git were not set properly for some reason. Would it be possible to attach content of file: |
Hi, attached zipped else git doesn't accept it. |
@samsam4 Thank you for the log.
This Eclipse is located in Eclipse plugin loads the configuration file from Eclipse root directory. If you're using custom installation of Eclipse, please make sure to copy this |
Looks here is the problem from the error log. Let me look further on this. Basically git is not found on the PATH while running idf_tools.py export command
|
As a workaround, you can always run |
@georgik |
@kolipakakondal PATH: D:/ESP/tools/idf-eclipse/2021-03//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin/server;D:/ESP/tools/idf-eclipse/2021-03//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin; .... Can you elaborate only why installer set // (double slashes) - is it bug, intentionally or doesn't matter? |
@kolipakakondal I made two different attempts: First delete PATH env var hoping that Install tools will create it. So I made second attempt, create and set PATH variable as: Run again Help > ESP-IDF Tools Manager > Install Tools After run Help>Product information (pay attention what PATH variables is reported, although in settings still show whatever I set when created it; neither 'fatals' for git at the end were resolved) :( : Executing D:\ESP\python_env\idf4.2_py3.8_env\Scripts\python.exe D:\ESP\esp-idf\tools\idf_tools.py list
IDF_PATH: D:/ESP/esp-idf Operating System: windows 10 |
@samsam4 Hm, that's interesting error. Please try following workaround.
If this approach does not work, please help us to diagnose more information using following steps:
Expected result:
Test build:
Expected result:
Test Eclipse:
|
@georgik D:\ESP\python_env\idf4.2_py3.8_env\Scripts\python.exe 522kb What is the second for and do I need to declare it anywhere in environment variables etc? |
@samsam4 This is common in Windows Python distribution which is quite misleading. One would expect that python.exe is the actual Python interpreter, but it's not always the case. D:\ESP\tools\idf-python\3.8.7\python.exe 100kb - is the common Python interpreter So even when it might look like two Pythons, it's just one, where the second is the starting binary for the first one. When you invoke python.exe in virtualenv it will load site-packages that are specific for virtualenv, that's the case of ESP-IDF, because idf_tools.py is using virtualenv for each major version of ESP-IDF. You can find different virtualenvs in You can find project which bundles idf-python at https://github.com/espressif/idf-python . It's so called Embedded Python with additional package of So to answer your question. Add just path to Python in virtualenv |
@georgik Help>Product Information: The only problem was this reoccurring Eclipse PATH problem that adds/duplicates autogenerated PATH at the beginning of the PATH I already put there, so I delete completely PATH on Window>Preferences>C/C++Build>Environment and restarted Eclipse so now is only autogenerated PATH and I clean, build and flash the the blink example - dont see any other problems so far :) Will try though and the new installer 2.8 in a new dir later, so could have some straws to compare if also doesnt go as expected ;) Thank you and best regards |
@samsam4 Thank you for the feedback. @kolipakakondal Please, could you check whether Eclipse plugin is adding path to Git and Python from the JSON to system PATH when launching subprocesses? |
Hi @samsam4 I have prepared a fix for this issue by setting up the git path to the java run-time process. To verify this, I need your help. Download artifacts from here https://github.com/espressif/idf-eclipse-plugin/suites/2671932894/artifacts/58873860 Let me know how it goes. |
Hi @georgik - problem is with the idf.py export command, which is getting failed because of the git path issue #259 (comment). Let's wait for the @samsam4 feedback with the local build. |
@kolipakakondal #261 |
It's simple! Maybe these instructions could help you @samsam4
|
Hi @samsam4 Did you have a chance to verify the above build? |
@kolipakakondal |
Hi @samsam4 No. It will be with the next version of the plugin and offline installer |
@kolipakakondal |
Kindly try to look at this issue, I am unable to import projects other than the example in eclipse. I was facing the same issue, I uninstall again and then install again, run the example, it workd. |
@samsam4 Thank you for reporting problem with CMD initializer. The behavior is really strange. echo. should print an empty line to the screen. Here is information from Microsoft manual: https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/echo The initializer is using common Windows CMD Please, could you provide an information which Antivirus is present on the Windows PC? In some cases Antivirus adds it's own wrapper around cmd or runs it in container. Do you experience the same problem when using PowerShell launcher from Desktop? |
@georgik while at the sane time idf_cmd_init.bat started from the installer generated shortcut produces the errors output I posted before |
Update: Cause for "'echo.' is not recognized as an internal or external command, operable program or batch file." identified: |
@samsam4 Wow. That's insidious trap. I would never guess that |
@samsam4 Regarding 'echo.' problem: I was not able to find the source of the 'echo.' file in deployment process. |
@georgik The only serious issue I have so far not resolved - cant get/access 'make' command (in 2.6 installer too). As per ESP documentation 'make' may be removed in future, but it claims should be still available, but I cant get it neither in ESP-IDF cmd nor in power shell? |
@samsam4 Thank you for posting those logs and testing the installation. Regarding make I've checked old documentation and v3.3 is referencing Make was replaced by Please, could you send a link to the documentation mentioning |
Hi @samsam4 The errors you see in the error log related to eclipse loading and it does not cause any issue to idf eclipse plugins and functionality. Anyway, those are not real errors to be considered. Hence, ignore them. IDF Eclipse plugin works only with the CMake and ESP-IDF 4.0 and higher. Glad that the online installer approach worked for you. I believe we can close this issue. |
Yes, I think you can close this issue. After I see 2.9 offline installer if there are some issues I could start a new thread. If you select "Browse" on previous dialog for Select Destination Location. There is a workaround to type the name of the path including the new folder, but it is not quite intuitive and could be problem for some people. @georgik there were few places were is mentioned:
, but it was my mistake - I didnt read all the chain of links that follow - it's different toolchain that uses the old MSYS2. I was trying to explore one library for SPI displays that is using esp-idf 4.0 but still using 'make' for the creation and flashing spiffs images, but obviously will have to search other solution :( Thanks for the cooperation in a timely manner! Best regards! |
@samsam4 Thank you for pointing out the Browse problem. I'll check whether it's possible to add it somehow. The installer is based on Inno Setup which has limited options of changing UI. |
@georgik This is a 'cosmetic' i.e. not so important issue, but because I saw on the other dialogs in the same installer that you already have such button, I thought is just missed on this particular one that I mentioned above. |
Unfortunately the old problem with 'fatal's and cant find python in the PATH etc. resurfaced without to make any changes in installation, even didn't open this installation of Eclipse for couple days. Only downloaded one ESP project from here, imported it and when I saw some errors checked Help>Product Information, then saw similar errors like before, closed the new project and return to 'blink' project - same error output for Help>Product Information, ... restart Eclipse, restart Windows, always same output: Executing D:\ESP2_9b_tools.espressif\python_env\idf4.2_py3.8_env\Scripts\python.exe D:\ESP2_9b\tools\idf_tools.py list
IDF_PATH: D:/ESP2_9b/ Operating System: windows 10 |
Will close this issue as the latest problem although observed and before with 2.6 is with the newest version of plugin/installer 2.9beta, so better to rise it as a new issue. |
@samsam4 Thank you for all the data. Let me just add an update about Make New Folder. One solution would be to implement a completely new page to handle the selection like here: https://stackoverflow.com/questions/42145152/inno-setup-how-do-i-specify-multiple-directories-for-select-destination-locatio Feel free to add PR to https://github.com/espressif/idf-installer We're considering moving away from Inno Setup which has many limitations like missing Make New Folder. |
@georgik Thanks for the update - I'd suggest to forget for now for this problem as it is really petty for most of the people that will use this installer. Seems there far more important problems to polish meanwhile, so better fix them with higher priority ;) |
The issue related to environment variables got fixed with v2.1.1 |
@kolipakakondal The issue related to environment variables got fixed with v2.1.1 Unfortunately the tests I made with the newest as of today v2.1.2 plugin shows neither problem with environment variables were fixed even there are more problems than before as the projects cant even kick off because the plugin keeps asking again and again for git and python locations :( :( |
I am also experiencing the same issues on a fresh install of the latest Eclipse and ESP-IDF on my Mac. @samsam4 - have you managed to have any luck getting a project opened? |
@nathangoss |
Installation passed smooth without any errors reported, but after Create a new project using ESP-IDF Templates (based on instructions in README.md) after Build returns:
Build not configured correctly
So I start looking in the settings that suppose to be set automatically from installer, but what I see from my installation is quite different from what you show in the README.md
Help>Product Information reports:
IDF_PATH: D:/ESP/esp-idf
IDF_PYTHON_ENV_PATH:
PATH:
Operating System: windows 10
![Eclipse1](https://user-images.githubusercontent.com/30199901/116884375-ac899600-abf4-11eb-9749-790182ca0397.png)
![Environment](https://user-images.githubusercontent.com/30199901/116884410-b6ab9480-abf4-11eb-8862-9a0cd63b1f2d.png)
Java Runtime Version: 15.0.1+9-18
Eclipse Version: 4.18.0.v20201202-1800
Eclipse CDT Version: 10.1.0.202010062020
ESP-IDF version cannot be checked. IDF_PATH or IDF_PYTHON_ENV_PATH are not set.
Python set for IDF_PYTHON_ENV:
Python declared in PATH variable: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
Help>ESP-IDF Tools Manager> List installed tools reports:
![Help_ESP-IDFtools_ListInstalledTools](https://user-images.githubusercontent.com/30199901/116884435-bc08df00-abf4-11eb-8939-758ce7018ae3.png)
Some tools are not installed or IDF_PATH is not set. …
So how can make this installation work without to waste weeks of trying?
Thanks
The text was updated successfully, but these errors were encountered: