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

cwd for Run python file in dedicated terminal is different from the one configured #21251

Closed
Beamouser opened this issue May 15, 2023 · 6 comments · Fixed by #21681
Closed

cwd for Run python file in dedicated terminal is different from the one configured #21251

Beamouser opened this issue May 15, 2023 · 6 comments · Fixed by #21681
Assignees
Labels
area-terminal author-verification-requested Issues potentially verifiable by issue author bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@Beamouser
Copy link

Beamouser commented May 15, 2023

Type: Feature Request

Terminal > Integrated: Cwd is ${fileDirname}

Run Python File button:
It's ok

But

Run Python File in Dedicated Terminal button:
Cwd is ${workspaceFolder}

Extension version: 2023.9.11351004
VS Code version: Code 1.78.2 (b3e4e68a0bc097f0ae7907b217c1119af9e03435, 2023-05-10T14:39:26.248Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: No

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label May 15, 2023
@karrtikr karrtikr changed the title Run python file in dedicated terminal, CWD cwd for Run python file in dedicated terminal is different from the one configured May 15, 2023
@karrtikr
Copy link

Thanks for the bug report! We just wanted to quickly acknowledge we received it and we will triage this as soon as we can.

@karrtikr
Copy link

Run Python File button:
It's ok

cwd appears to be ${workspaceFolder} for this as well. The user setting doesn't seem to play a role.

You can set "python.terminal.executeInFileDir" to achieve the same behavior. However, if you would still like that setting to play a role, let me know and I can open a feature request on VS Code on your behalf.

@karrtikr karrtikr closed this as not planned Won't fix, can't repro, duplicate, stale Jul 23, 2023
@github-actions github-actions bot added the info-needed Issue requires more information from poster label Jul 23, 2023
@Beamouser
Copy link
Author

So, I try to rewrite my problem.

I'm not good at english because of I'm a Chinese people, I'll show you some pictures.

I've already setted "python.terminal.executeInFileDir"

s_20230724094451

[Run Python File] button:

s_20230724094635

The CWD is D:\Works\Za\PythonProjects\Test

[Run Python File in Dedicated Terminal] button:

s_20230724094612

The CWD is D:\Works\Za\PythonProjects
So I got an exception, I konw I can change the file to absolute path

Is this my understand problem or the settings?

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Jul 24, 2023
@karrtikr karrtikr reopened this Jul 24, 2023
@karrtikr
Copy link

Thanks for clarifying, in original bug title you mentioned "Terminal > Integrated: Cwd is ${fileDirname}" which is different from this setting.

@karrtikr karrtikr added bug Issue identified by VS Code Team member as probable bug area-terminal needs PR Ready to be worked on and removed triage-needed Needs assignment to the proper sub-team labels Jul 24, 2023
@karrtikr karrtikr added this to the July 2023 milestone Jul 24, 2023
@github-actions github-actions bot removed the needs PR Ready to be worked on label Jul 24, 2023
@karrtikr
Copy link

Fix should be out in the pre-release version of the extension in a day, use the following to try it out:

image

@karrtikr karrtikr added author-verification-requested Issues potentially verifiable by issue author needs PR Ready to be worked on labels Jul 24, 2023
@karrtikr
Copy link

Fix should be out, let me know.

@rzhao271 rzhao271 added the verified Verification succeeded label Jul 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 26, 2023
@eleanorjboyd eleanorjboyd removed the needs PR Ready to be worked on label Dec 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-terminal author-verification-requested Issues potentially verifiable by issue author bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants