Skip to content

Cannot read property 'windows' of null #18669

Closed

Description

@neilyoung
  • VSCode Version: Version 1.9.0-insider (1.9.0-insider) f67f87c
    2017-01-17T07:02:22.533Z
  • OS Version:
    Mac OSX Sierra

Steps to Reproduce:

  1. Create an Node JS server and run it
  2. Hit 'Restart'

Activity

  1. added
    debug
    on Jan 18, 2017
  2. isidorn commented on Jan 18, 2017

    @isidorn

    Can not reproduce. I tried running our vscode smoke test sample https://github.com/Microsoft/vscode-smoketest-express and hitting restart, everything works fine.

    neilyoung do you reproduce this for any node js server. Can you please provide a workspace for which you see this so we can try reproducing it on our end.

  3. added
    info-needed
    on Jan 18, 2017
  4. neilyoung commented on Jan 18, 2017

    @neilyoung
    Author

    Maybe this helps: Usually once I hit debug VSCode asks me to create a launch configuration. Not in this case. Basically I can start debugging w/o any launch.json. The debugger starts, but if I restart the a.m. error appears.

    I was creating a launch.json now from the menu. The file created contains a wrong entry:

    "program": "${workspaceRoot}/${workspaceRoot}/index.js",

    Note the double workspaceRoot

    Once I remove that, I can restart w/o any problem.

    For me there are two new issues now, whereas the initial problem is gone:

    1. Why can I start debugging w/o having a launch.json?
    2. Why is my launch.json corrupted?
  5. isidorn commented on Jan 18, 2017

    @isidorn

    neilyoung great finding! I am able to reproduce it, will fix it today so you can check tomorrow's insiders for improvments.

    As for the corrupeted launch.json - I can reproduce this behavior and have created an issue #18723
    You can start debugging w/o having a launch.json becaue we are trying to simplify starting of a debug session for users. More about it can be found here #285

  6. added
    bug
    and removed
    info-needed
    on Jan 18, 2017
  7. isidorn commented on Jan 18, 2017

    @isidorn

    To verify:

    1. Start debugging without a 'launch.json'
    2. Hit restart -> should work
  8. neilyoung commented on Jan 18, 2017

    @neilyoung
    Author

    Cool :)

  9. locked and limited conversation to collaborators on Nov 18, 2017
  10. added a commit that references this issue on Sep 6, 2026
    9817e36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugdebugverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions