formulahendry / formulahendry/vscode-code-runner

wrong macro expansion for $dir in windows ! (includes backward slash)

Open
#239 1 comment 1 reaction 0 assignees View on GitHub
need more info
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

## Environment data
VS Code version: 1.19.1
Python Extension version: 3.5.2
Python Version: 3.5
OS and version: Windows 8.1

## Actual behavior
in settings.json , when we use `$dir ` in any settings , it takes backward slash as separator and becoz of that "path1\path2\path3\" , since it includes a backward slash at end of path , that end quotes " gets ignored and it throws me a file not found error .

## Expected behavior
`$dir` should resolve to `"path1\\path2\\path3\\"` or `"path1/path2/path3/"` (with forward slashes)

## Steps to reproduce:
Put this in settings.json

```
"code-runner.executorMap": {
"cpp": "cd $dir "
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.