Skip to content
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

Cannot install on Windows because my Windows user id has a space in it (VSC-1090) #939

Closed
1 task done
roblatour opened this issue Apr 14, 2023 · 16 comments · Fixed by #1159
Closed
1 task done

Cannot install on Windows because my Windows user id has a space in it (VSC-1090) #939

roblatour opened this issue Apr 14, 2023 · 16 comments · Fixed by #1159
Assignees
Labels
bug-report Bug Report from users on Github (don't use this tag manually, its supposed to be used via the issue) Issue Template Ignored Author hasn't follow the issue template ongoing Ongoing Issue or PR, this label will be used for issue or PR which is to be excluded by stale bot
Milestone

Comments

@roblatour
Copy link

OS

Windows

Operating System version

windows 11

Visual Studio Code version

1.77.3

ESP-IDF version

5.0.1

Python version

?

Doctor command output

.

Extension

I tried the defauts (which include my user name)
I also tried creating a directory c:/ESP and tried using it too, it did not work

Description

Cannot install on Windows because my Windows user id has a space in it.

I read the instructions at
https://github.com/espressif/vscode-esp-idf-extension/blob/master/docs/tutorial/install.md
more specifically,
NOTE: Make sure that IDF_PATH and IDF_TOOLS_PATH doesn't have any spaces to avoid any build issues.

However when I tried to change those two path in the installer set up screen, the installer ignored what I had entered and threw an error include a path with my user name (which has a space in it).

Setting up a new user on my computer just for the sake of this one piece of software is a non starter.

If there is another work-around please advise, and I would also too suggest that the document at the above link be updated too.

Debug Message

.

Other Steps to Reproduce

.

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@roblatour roblatour added the bug-report Bug Report from users on Github (don't use this tag manually, its supposed to be used via the issue) label Apr 14, 2023
@github-actions github-actions bot changed the title Cannot install on Windows because my Windows user id has a space in it Cannot install on Windows because my Windows user id has a space in it (VSC-1090) Apr 14, 2023
@radurentea radurentea self-assigned this Apr 18, 2023
@brianignacio5
Copy link
Collaborator

When you try to use another location, what error do you receive ? Can you describe the steps you are following ?

@roblatour
Copy link
Author

Here is a screenshot of the error I get:

ss2

Here too is a video of the install process (I had to zip it to be able to upload it)
vid2.zip

@brianignacio5 brianignacio5 added this to the v1.6.2 milestone Apr 19, 2023
@brianignacio5
Copy link
Collaborator

I just tested the extension using spaces in PATH and the setup went through. Which version of the extension are you using ? Did you update to latest version ?

@brianignacio5 brianignacio5 added the Issue Template Ignored Author hasn't follow the issue template label Apr 28, 2023
@roblatour
Copy link
Author

roblatour commented Apr 28, 2023

As shown in the video (inside the zip file) of my previous post I was using v1.6.1 of the extension, trying to install v5.0.1 of esp-idf

Having that said, this morning I gave it another try, creating a folder on my c: drive called
c:\esp
and using that for the container name and c:\esp.espressif for the tool directory and it seemed to work fine.

However, I wasn't paying attention to the version of the IDF I install (v5.0 or v5.0.1) so I uninstalled the visual studio extension and deleted the c:\esp folders contents and tried again (to be sure) to install 5.0.1 (it didn't work - same error as originally reported). Then I tried 5.0, and after that the master branch. In all cases I got the same error about the spaces in the path name (as from my original post).

Of note, I have tried, reloading after the extension uninstall, exiting visual studio code, and even rebooting - but the problem remains. I assume something is being cached as a temp file someplace??

@roblatour
Copy link
Author

roblatour commented May 2, 2023

I finally found a work-around by creating a directory on my c: drive, and putting both the container and tool set directories in it as follows:

ss

Also, prior to pressing the 'Install' button (shown on the screen shot above) I pre-populated the esp-idf directory with a download of that library from github - that is to say I downloaded it as a zip file, and unzipped it into the c:\esp-r-r5-1\esp-idf folder. Following this from the cmd prompt I issued to the following command to populate all the linked subdirectories:
git submodule update --init –recursive

Hope this will be of help to others while this issue is worked out.

@Eplankton
Copy link

Exactly the same problem with me.

@brianignacio5 brianignacio5 removed this from the v1.6.2 milestone May 4, 2023
@github-actions
Copy link

This issue has been marked as stale since there are no activities, and this will be closed in 5 days if there are no further activities

@github-actions github-actions bot added the stale Stale PR or Issue label May 20, 2023
@roblatour
Copy link
Author

stale but unresolved, would like to see a fix for the future.

@github-actions github-actions bot removed the stale Stale PR or Issue label May 21, 2023
@github-actions
Copy link

github-actions bot commented Jun 5, 2023

This issue has been marked as stale since there are no activities, and this will be closed in 5 days if there are no further activities

@github-actions github-actions bot added the stale Stale PR or Issue label Jun 5, 2023
@radurentea radurentea removed the stale Stale PR or Issue label Jun 6, 2023
@github-actions
Copy link

This issue has been marked as stale since there are no activities, and this will be closed in 5 days if there are no further activities

@github-actions github-actions bot added the stale Stale PR or Issue label Jun 22, 2023
@radurentea radurentea removed the stale Stale PR or Issue label Jun 22, 2023
@github-actions
Copy link

github-actions bot commented Jul 8, 2023

This issue has been marked as stale since there are no activities, and this will be closed in 5 days if there are no further activities

@github-actions github-actions bot added the stale Stale PR or Issue label Jul 8, 2023
@radurentea radurentea removed the stale Stale PR or Issue label Jul 13, 2023
@radurentea radurentea reopened this Jul 13, 2023
@kolipakakondal kolipakakondal linked a pull request Jul 25, 2023 that will close this issue
5 tasks
@kolipakakondal kolipakakondal added this to the v1.7.0 milestone Jul 25, 2023
@Manoshanmugam
Copy link

Manoshanmugam commented Jul 31, 2023

Even I am facing the same issue while installing even after changing the file path without spaces (i.e I am facing the exact same issue like @roblatour ) , can someone guide me to install espidf with vs code extension?

@github-actions
Copy link

This issue has been marked as stale since there are no activities, and this will be closed in 5 days if there are no further activities

@github-actions github-actions bot added the stale Stale PR or Issue label Aug 16, 2023
@radurentea radurentea added ongoing Ongoing Issue or PR, this label will be used for issue or PR which is to be excluded by stale bot and removed stale Stale PR or Issue labels Aug 16, 2023
@brianignacio5 brianignacio5 removed this from the v1.7.0 milestone Jan 24, 2024
@lmatter
Copy link

lmatter commented Jan 30, 2024

This is not necessarily an esp-idf issue. I sadly have a space in my windows username and had this problem building Marlin 3D printer firmware - I think it's a VSCode issue.
Anyway, change the folders in configuration to ones without spaces.

@kolipakakondal kolipakakondal added this to the v1.8.0 milestone Feb 5, 2024
@Teunderbolt
Copy link

Installation goes well (installed in a dedicated folder directly on C://) tested it with version 1.6.5 and with the latest version 1.7.0. When building I get an error, because the project folder is in my user folder and my user folder has a space. A quick search learned me that this has been resolved with platformio but not with espressifs own vscode extension. I beg you please fix this.

@radurentea radurentea mentioned this issue Mar 15, 2024
5 tasks
@brianignacio5 brianignacio5 removed this from the v1.8.0 milestone May 31, 2024
@brianignacio5
Copy link
Collaborator

Should be fixed by PR #1159

@brianignacio5 brianignacio5 added this to the v1.8.0 milestone Jun 7, 2024
@brianignacio5 brianignacio5 linked a pull request Jun 7, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Bug Report from users on Github (don't use this tag manually, its supposed to be used via the issue) Issue Template Ignored Author hasn't follow the issue template ongoing Ongoing Issue or PR, this label will be used for issue or PR which is to be excluded by stale bot
Projects
None yet
8 participants