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

'${workspaceFolder}' can not be resolved in a multi folder workspace. Scope this variable using ':' and a workspace folder name. #102162

Closed
lamaks opened this issue Jul 10, 2020 · 1 comment
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues
Milestone

Comments

@lamaks
Copy link

lamaks commented Jul 10, 2020

After update to VS Code 1.47.0 the following error prevents to run using workspace config.

image

workspace.code-workspace

 "folders": [
...
        {
            "name": "root",
            "path": "../"
        }
    ],
...
"launch": {
        // Use IntelliSense to learn about possible attributes.
        // Hover to view descriptions of existing attributes.
        // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
        "version": "0.2.0",
        "configurations": [
            {
                "type": "node",
                "request": "launch",
                "name": "Debug current unit test file",
                "program": "${workspaceFolder:root}/node_modules/jest/bin/jest",
                // ${relativeFile} returns path with back slash. jest can't find the file if we use back slash. So, just passing file name instead
                "args": [
                    "${fileBasename}",
                    "--runInBand",
                    "--coverage=false"
                ],
                "console": "integratedTerminal",
                "internalConsoleOptions": "neverOpen",
                "cwd": "${fileDirname}"
            }
        ]
    }

Version: 1.47.0
Commit: d5e9aa0
Date: 2020-07-09T08:01:54.115Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.5.0

@connor4312 connor4312 self-assigned this Jul 10, 2020
@connor4312 connor4312 added the debug Debug viewlet, configurations, breakpoints, adapter issues label Jul 10, 2020
@connor4312 connor4312 added this to the July 2020 milestone Jul 10, 2020
@connor4312
Copy link
Member

connor4312 commented Jul 10, 2020

This looks like an error coming from the config resolution step in our old debugger. You can change your configuration type to point directly to our new debugger by setting it to pwa-node. This should resolve the issue you're facing.

Happy Coding! ⌨️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues
Projects
None yet
Development

No branches or pull requests

2 participants