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

can't open new editor if current directory at startup was deleted #19649

Closed
skybrian opened this issue Jan 31, 2017 · 1 comment
Closed

can't open new editor if current directory at startup was deleted #19649

skybrian opened this issue Jan 31, 2017 · 1 comment
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@skybrian
Copy link

skybrian commented Jan 31, 2017

  • VSCode Version: 1.8.1
  • OS Version: MacOS 10.12.2

Steps to Reproduce:

# shut down VS Code
mkdir foo
cd foo
code .
# close editor window
cd ..
rmdir foo
code .
# editor window is blank

The second time it starts, there is a blank (all black) window. Using 'Toggle Developer Tools' there is an error on the console:

Uncaught Error: ENOENT: no such file or directory, uv_cwd path.js:1144

The code looks like this:

if (cwd === undefined)
          cwd = process.cwd();

Apparently, this dies if the process's current directory at startup no longer exists.

To recover, quit out of VS Code (instead of just closing the editor window).

@bpasero
Copy link
Member

bpasero commented Feb 1, 2017

#2259

@bpasero bpasero closed this as completed Feb 1, 2017
@bpasero bpasero added the *duplicate Issue identified as a duplicate of another issue(s) label Feb 1, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants