Closed frak0d closed 3 years ago
I have similar issue and the workarounds are either to add path to git and python in the Windows environment Path, or install VSC extension from this .vsix file from here: https://github.com/espressif/vscode-esp-idf-extension/issues/434#issuecomment-869739163
(Just make sure not to try some of the previous versions posted in the same thread as they don't work) :(
I have similar issue and the workarounds are either to add path to git and python in the Windows environment Path
Latest Git and python are already in path, but in idf logs it says git is incompatible so it's going to download again.
Btw merging #444 and building a vsix works too.
Except now my problem is that I am unable to change port, it's defaulting to COM1, and COM1 is not physically accessible on my PC :(
@Tanishq-Banyal This is the same .vsix I gave you the link before - just be sure you get the last one (from 28-6-21) as there were couple tries before that didn't fix the issue :(. I used offline installer v2.8 with IDF 4.2.1 selected and with the latest .vsix now working and I dont need to pollute Windows Path with the git and python :) Still didn't make thorough test, but at least this obstacle I think is fixed :) Regarding duplicate downloading git and python - you can refer to the same link I gave you before, but my very first posting: bugs1 to 4, but I think this issue was fixed with some of the first .vsix brianignacio5 posted in the same thread (which are actually from fix idf git python setup #444)
To change ports you can use the ESP-IDF: Select port to use
command or change idf.portWin
in the Visual Studio Code User/Workspace/Workspace Folder configuration settings
To change ports you can use the
ESP-IDF: Select port to use
command or changeidf.portWin
in the Visual Studio Code User/Workspace/Workspace Folder configuration settings
I have already tried both ways. Even though I can see port is COM3 in settings file, but it still uses COM1 (which is not physically accessible on my PC)
I suspect this happened due to some bug in #444 (I am using master branch of extension merged with #444 in vscode)
There is a configuration setting called idf.saveScope
or Idf: Save Scope
to choose where to save configuration settings and its default is User or Global settings. This is used by the extension to know where to save settings.
Maybe there is a setting in your <project directory>/.vscode/settings.json
with idf.portWin
that is overriding your User settings. Please take a look at vscode settings precedence
Maybe there is a setting in your
<project directory>/.vscode/settings.json
withidf.portWin
that is overriding your User settings. Please take a look at vscode settings precedence
Thanks, that worked, didnt knew that there were 2 settings.json (one global and one per project)
I have the same problem but I have solved. My finding is that esp-idf-tool can not be installed in folder whose name has space such as Program Files folder.
Describe the bug :- I installed esp-idf using Windows installer from espressif website. It installed successfully and I am able to use esp-idf in commandline.
The tools exist in proper directories and I can manually run them but this extension isn't detecting them. During setup of esp-idf extension, its saying
INVALID ESP-IDF
an throws out error sayinggit not found in current environment
.Then I also tried uninstalling esp-idf and letting the extension download esp-idf itself, still same error. And I even compared the checksum of the
esp-idf-v4.3.zip
downloaded by extension as well as by windows installer, its same, so my download is not currupt.Please fix this extension. I have a limited internet and due to this extension and its countless failed downloads i already used up a lot of my data plan and my time.
To Reproduce :-
Expected behavior :- I expect it to detect the tools properly.
Screenshots :-![image](https://user-images.githubusercontent.com/68330937/123502330-3a1fba00-d669-11eb-9a77-e7b92d5992df.png)
Environment :-
Logs Obtained via esp-idf doctor command :-
%USERPROFILE%\.vscode\extensions\espressif.esp-idf-extension-VERSION\esp_idf_vsc_ext.log
$HOME/.vscode/extensions/espressif.esp-idf-extension-VERSION/esp_idf_vsc_ext.log
Extension Configuration settings :- (all of these are wrong paths, so I also tried with correct paths, still same result)
Additional context :-
444 may fix this issue.
EDIT :-
I created a fork and merged #444 to it. then i created .vsix package using github workflow & installed it.
After some manual config in settings.json (because the web interface wasnt working), It works now !! (except that i am unable to change port)
444 SHOULD BE FIXED AND MERGED ASAP 🙏