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

VS Code extension not able to Build and Run on Simulator #389

Open
sramshaw opened this issue May 3, 2022 · 1 comment
Open

VS Code extension not able to Build and Run on Simulator #389

sramshaw opened this issue May 3, 2022 · 1 comment

Comments

@sramshaw
Copy link

sramshaw commented May 3, 2022

Fresh install of vscode on a fresh install of Linux Mint, following the example at https://docs.microsoft.com/en-us/azure/iot-edge/how-to-vs-code-develop-module?view=iotedge-2020-11 , which was updated in April 2022.
Created the IoT solution, added extensions, including Azure IoT Edge as part of Azure IoT Tools, but was never able to use 'Build and Run IoT Edge Solution on Simulator' on the right click on the debug template.
A popup comes up to request a choice of device, where I click 'Setup' rather than 'Cancel'.
I choose the device and then see in the terminal
sudo "iotedgehubdev" setup -c "<device conection string>" -i "<iot hub connection string>"
followed by a success
and it stops there

As a result, instead I have to build the Iot Solution with the contextual menu on the debug template
I do the setup with contextual menu 'Setup Iot Edge Simulator' in AZURE IOT HUB panel for the device I choose for simulator setup
then run a manual command after the one created by the above
sudo iotedgehubdev start -d <path to debug manifest> -v
that gives what the howto instructions hints at.
When done, Ctrl+C
then stop simulator manually with
sudo iotedgehubdev stop

attaching to the running container works.

@mhshami01
Copy link
Contributor

Hello @sramshaw,

Thank you for your feedback. Have you tried using the 'Build and Run IoT Edge Solution on Simulator' after the setup step succeeded? If so, what happens?

Also, please note that VSCode IoT Edge extension issues would have been the appropriate location to post this question.

Sincerely,
--H

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants