microsoft / vscode-azure-iot-edge

Azure IoT Edge for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.azure-iot-edge
Other
51 stars 36 forks source link

Edge Simulator cannot start on Windows if username has space in it #642

Open dogoth opened 2 years ago

dogoth commented 2 years ago

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[username withspace]\AppData\Local.iotedgehubdev\data\data\docker-compose.yml down. Command '['docker-compose', '-f', 'C:\Users\[username', 'withspace]\AppData\Local\.iotedgehubdev\data\data\docker-compose.yml', 'down']' returned non-zero exit status 1.

Does this issue occur when all other extensions are disabled?: Yes/No

dogoth commented 2 years ago

further down in the terminal, another hint that the space is the issue: "No such command: withspace]\AppData\Local.iotedgehubdev\data\data\docker_compose.yml"

dogoth commented 2 years ago

looking further into codebases of dependencies, seems that issue is in the iotedgehubdev component i recreated this ticket in that repo: https://github.com/Azure/iotedgehubdev/issues/398