Skip to content
This repository has been archived by the owner on Apr 23, 2022. It is now read-only.

Generate PnP device code failed in root directory #960

Open
czgtest opened this issue Apr 20, 2020 · 0 comments
Open

Generate PnP device code failed in root directory #960

czgtest opened this issue Apr 20, 2020 · 0 comments

Comments

@czgtest
Copy link

czgtest commented Apr 20, 2020

Repro on : Windows10
VSCode: 1.44.2
Workbench: 0.13.0

Generate PnP device code failed , get error as bellow
image
Repro step:
0). open D:\ root folder in VScode

  1. Open Command Palette and select “IoT Plug and Play: Generate Device Code Stub...”.
  2. Select DCM file such as SampleDevice.capabilitymodel.json.
  3. Input project name such as “sample_device”.
  4. Select “ANSI C” as the language.
  5. Select “Via IoT Hub device connection string” as connection method.
  6. Select “CMake Project on Windows” as project type.
  7. Select “Via Source Code”
  8. Check VS Code open a new window with generated device code stub files

here is error logs:

[IoT Plug and Play] Check IoT Plug and Play CodeGen CLI ...CodeGen CLI v0.6.8 is installed and ready to use.
[IoT Plug and Play] Selected device capability model file: d:\SampleDevice.capabilitymodel.json
Input project name: testdevice
Selected CodeGen language: ANSI C
Selected device connection type: ConnectionString
Selected CodeGen project type: CMake_Windows
Selected device SDK reference type: SourceCode
dtcodegen 0.6.8

ERROR(S):
Required option 'p, project-type' is missing.
USAGE:
Generate CMake project on Windows:
dtcodegen generate --dcm-path c:\iot\mxchip_iot_devkit.capabilitymodel.json
Generate Ardiono project for MXChip IoT DevKit:
dtcodegen generate --dcm-path c:\iot\mxchip_iot_devkit.capabilitymodel.json
[IoT Plug and Play] generate PnP device code failed.

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

No branches or pull requests

3 participants