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

fileDirectoryAsCwd have no effect on terminal #146

Closed
michaelHL opened this issue Jul 22, 2017 · 2 comments
Closed

fileDirectoryAsCwd have no effect on terminal #146

michaelHL opened this issue Jul 22, 2017 · 2 comments

Comments

@michaelHL
Copy link

michaelHL commented Jul 22, 2017

  • OS: Windows 10 x64 (1607)
  • vscode: 1.14.2
  • code runner: 0.6.27

config:

{
    "code-runner.executorMap": {
        "c": "gcc -std=c99 -Wall $fileName -o $fileNameWithoutExt && $fileNameWithoutExt",
        "cpp": "g++ -std=c++11 $fileName -o $fileNameWithoutExt && $fileNameWithoutExt",
    },
    "code-runner.saveFileBeforeRun": true,
    "code-runner.fileDirectoryAsCwd": true,
    "code-runner.runInTerminal": false,
    "code-runner.preserveFocus": true,
    "code-runner.showExecutionMessage": true,
    "code-runner.clearPreviousOutput": true,
    "code-runner.showRunIconInEditorTitleMenu": false,

    "terminal.integrated.shell.windows": "C:\\Windows\\Sysnative\\cmd.exe"
}

I find it fails to change CWD when I switch "code-runner.runInTerminal" to true (I type C: in terminal window in advance):

works well in Output fails in Terminal

And I do not prefer to do some tricks in "code-runner.executorMap" (e.g. cd /d $dir && ...) 'cause it seems a bit messy, can you make some changes in terminal such as cd /path/to/file before running the code while "code-runner.fileDirectoryAsCwd" is set to be "true"? Thanks a lot ! 😛

@formulahendry
Copy link
Owner

@michaelHL Please try the latest version.

@michaelHL
Copy link
Author

@formulahendry Nice Shot! Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants