-
Notifications
You must be signed in to change notification settings - Fork 26
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
add ${workspaceFolder} to "PYTHONPATH" in launch.json by default #343
Comments
Thanks for the issue. Pylance doesn't actually handle debugging of Python code. Transferring. |
@Akopov4 You see an issue when you run or you see it with handling of imports in the editor? |
it's not an issue, it's feature request |
without it, when a user tries to run
user might want it to just work when debugging? that said, if user run user could use but it will at least make it to just work for debugger? |
maybe |
@heejaechang usually directories like .vscode, .idea and so on are included in gitignore file. So they don't affect production codes. This configuration is used by debugger and by "Run python file" in the editor. Soultion of @V4n1sh is better then my one |
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue. |
I support this feature request, in general I think we can do better with out-of-the-box experience - I was surprised how much effort and setup it takes to just start debugging any Python code in VSCode for a new project as opposed to PyCharm where it "just works". |
Plus one. So we can finally get rid of "source"ing env.sh each and every time. |
No, please DO NOT make this as default. For those who use For any new project, just create a |
Hi, I'm new User of VScode. Previously I used Jetbrains Pycharm and not for a long time ago switched to VSCode.
Please add
"env": {
"PYTHONPATH": "${workspaceFolder};${env:PYTHONPATH}"
}
as default configuration parameters, when create to launch.json
Pycharm did it for a long time ago
Thank you in advance
The text was updated successfully, but these errors were encountered: