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

Getting unknown platform error when trying to debug cordova project on windows though running Project from command Palette is working fine. #4874

Closed
v-pavanp opened this issue Apr 1, 2016 · 1 comment

Comments

@v-pavanp
Copy link

v-pavanp commented Apr 1, 2016

  • VSCode Version: 0.10.12-alpha
  • OS Version:Windows10

Steps to Reproduce:
_Create setup for Cordova project._
- a. Run npm command from command prompt to install cordova. (npm install cordova –g)
- b. Create cordova project using yeoman “ yo cordova” and select Windows option.
- c. Verify cordova version by running command: cordova –v
- d. Install platform package using command : “cordova platform add windows –g” and cordova
platform add WP8 –g”
- e. Verify install and available platforms “cordova platforms ls”
- f. Build project using command : cordova build windows.
- g. Run emulator using “cordova emulate windows”
***Launch VS code

  1. Open project root directory.
  2. Click on the debug icon (Choose Cordova debugger) in the View bar, and then click the configure gear icon (Configure-gear) to choose the Cordova debug environment.
  3. Update launch.json and remove all the config entries except one.
  4. Update platform value to wp8 or windows or anycpu.
  5. Now press F1 and enter : cordova: Build and then cordova: Run.
  6. Verify app behavior and output.
  7. Now Try to debug app by selecting configuration name provided in the launch.json and verify output.

Actual: Getting platform error.
image
Error Message in output window:
waiting for v8 protocol on stdin/stdout
workbench.main.js:90 [cordova-debug-adapter] Error: Unknown Platform: wp8: Error: [cordova-debug-adapter] Error: Unknown Platform: wp8
at Object.w [as create](file:///C:/Program Files %28x86%29/Microsoft VS Code Alpha/resources/app/out/vs/workbench/workbench.main.js:30:24005)
at file:///C:/Program Files (x86)/Microsoft VS Code Alpha/resources/app/out/vs/workbench/workbench.main.js:100:13355
at Object.p [as _notify](file:///C:/Program Files %28x86%29/Microsoft VS Code Alpha/resources/app/out/vs/workbench/workbench.main.js:23:21660)
at Object.n.undefined.F.enter (file:///C:/Program Files (x86)/Microsoft VS Code Alpha/resources/app/out/vs/workbench/workbench.main.js:23:24988)
at n.undefined.t.Class.define._run (file:///C:/Program Files (x86)/Microsoft VS Code Alpha/resources/app/out/vs/workbench/workbench.main.js:23:26309)
at n.undefined.t.Class.define._chainedError (file:///C:/Program Files (x86)/Microsoft VS Code Alpha/resources/app/out/vs/workbench/workbench.main.js:23:25668)
at n (file:///C:/Program Files (x86)/Microsoft VS Code Alpha/resources/app/out/vs/workbench/workbench.main.js:23:23496)
at Object.p [as _notify](file:///C:/Program Files %28x86%29/Microsoft VS Code Alpha/resources/app/out/vs/workbench/workbench.main.js:23:21660)
at Object.n.undefined.F.enter (file:///C:/Program Files (x86)/Microsoft VS Code Alpha/resources/app/out/vs/workbench/workbench.main.js:23:24988)
at n.undefined.t.Class.define._run (file:///C:/Program Files (x86)/Microsoft VS Code Alpha/resources/app/out/vs/workbench/workbench.main.js:23:26309)

Expected:

  1. User should be able to debug app.
  2. User should get the intellisense when updating Platform value or tooltip should display proper message with all the available and supported platforms.
    image

image

@v-pavanp v-pavanp added the v-test label Apr 1, 2016
@egamma
Copy link
Member

egamma commented Apr 2, 2016

This issue was moved to microsoft/vscode-cordova#88

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

No branches or pull requests

2 participants