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

simulator start fails on windows if username has space in it #398

Open
dogoth opened this issue Sep 22, 2022 · 2 comments
Open

simulator start fails on windows if username has space in it #398

dogoth opened this issue Sep 22, 2022 · 2 comments
Labels
bug Something isn't working InBacklog

Comments

@dogoth
Copy link

dogoth commented Sep 22, 2022

VSCode Version: 1.71.1
OS Version: Win 11 Pro
Extension Version: 1.25.9

Steps to Reproduce:

  1. when installing windows, choose pick a username that has a space in it. eg "John Smith"
  2. install Visual Studio Code, Azure IoT Tools
  3. start a nodejs iot edge solution (not sure if language choice here is significant)
  4. create module, use "Build and Run IoT Edge Solution in Simulator" feature

error message:
"
ERROR: Error while executing command: docker-compose -f C:\Users\John Smith\AppData\Local.iotedgehubdev\data\data\docker-compose.yml down. Command '['docker-compose', '-f', 'C:\Users\John', 'Smith\AppData\Local.iotedgehubdev\data\data\docker-compose.yml', 'down']' returned non-zero exit status 1.
"

further down an extra clue
"
"No such command: Smith\AppData\Local.iotedgehubdev\data\data\docker_compose.yml"
"

this suggests that the issue is the space during filename declaration to the command for docker-compose, the space maknig it treat the second half as a argument

looks to be issue here:

cmd = "docker-compose -f {0} down".format(EdgeManager.COMPOSE_FILE)

the argument to -f needs to be in quotes

@konichi3
Copy link
Collaborator

Thanks for reporting. We are adding to the backlog

@konichi3
Copy link
Collaborator

konichi3 commented Jul 6, 2023

Simulator is in maintenance mode at this time.

Does the solution work on either real device or EFLOW without issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working InBacklog
Projects
None yet
Development

No branches or pull requests

2 participants