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

Fixing 'no such file or directory' error when using workspaceFolder #89

Closed
wants to merge 1 commit into from

Conversation

croach
Copy link

@croach croach commented Sep 30, 2017

Loading the extension created by the yo code command results in the following error:

[${workspaceFolder}]: Error: ENOENT: no such file or directory, scandir '${workspaceFolder}'

This happens because the workspaceFolder environment variable used in the multiple instances of launch.json does not exist (no longer exists?). The documentation suggests that workspaceRoot variable is what should be used. This commit switches all instances of workspaceFolder to workspaceRoot to fix issue #88.

The `workspaceFolder` environment variable used in the multiple
instances of launch.json does not exist (no longer exists?). The
[documentation][1] suggests that `workspaceRoot` variable is what
should be used. This commit switches all instances of
`workspaceFolder` to `workspaceRoot`.

[1]: https://code.visualstudio.com/docs/editor/tasks#_variable-substitution
@msftclas
Copy link

msftclas commented Sep 30, 2017

CLA assistant check
All CLA requirements met.

@aeschli aeschli closed this in 5005543 Oct 2, 2017
@aeschli
Copy link
Contributor

aeschli commented Oct 2, 2017

Thanks for pointing to this, we published that change to early. ${workspaceFolder} will be available in 1.18

@aeschli aeschli added this to the September 2017 milestone Oct 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants