microsoft / vscode-mock-debug

Starter sample for developing debug adapters for VSCode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run from scratch - Failed at the mock-debug@0.27.0 watch script.

TwitchBronBron opened this issue · comments

I ran into an issue where the debugger wouldn't run when building a local version of the vscode-mock-debug extension from scratch.

Steps to reproduce:

  1. clone a fresh copy of this repo:
    git clone https://github.com/Microsoft/vscode-mock-debug.git C:\temp\vscode-mock-debug
  2. Open C:\temp\vscode-mock-debug with vscode
  3. Press F5 to debug the extension. The following is output to the console

Executing task: "npm run watch" <

mock-debug@0.27.0 watch c:\Temp\vscode-mock-debug
tsc -w -p ./src

error TS5023: Unknown compiler option 'noUnusedLocals'.
error TS5023: Unknown compiler option 'noImplicitThis'.
error TS5023: Unknown compiler option 'strictNullChecks'.
error TS5023: Unknown compiler option 'noUnusedParameters'.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mock-debug@0.27.0 watch: tsc -w -p ./src
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mock-debug@0.27.0 watch script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users[username]\AppData\Roaming\npm-cache_logs\2018-03-13T15_11_52_966Z-debug.log
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

  1. A new VSCode window (let's call it "Extension VSCode") opens with the extension running inside
  2. In Extension VSCode, open a new folder C:\temp\markdown-project
  3. In Extension VSCode, create a new file C:\temp\markdown-project\readme.md and add a few lines of valid markdown
  4. Open the new file and add a few breakpoints.
  5. In Extension VSCode, run the debugger by pressing F5 on your keyboard.
  6. In Extension VSCode, a popup appears in the bottom right with the following message:

Activating extension 'andreweinand.mock-debug' failed: Cannot find module 'C:\Temp\vscode-mock-debug\out\extension'.

Environment Information

NodeJS Version
NodeJS v9.6.1

VSCode version:
Version 1.22.0-insider
Commit 112670122d3acf863aa9542b1642d64c69be10bf
Date 2018-03-13T05:16:22.707Z
Shell 1.7.9
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64

Well don't I feel silly. I didn't run npm install in the C:\Temp\vscode-mock-debug folder. Once I did that, everything worked properly.