microsoft / microsoft/vscode-python-debugger
Terminal doesn't use custom bash profile when debugging
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- TypeScript
- Star
- 181
- Fork
- 126
- Merge trung bình
- 2 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 3
Mô tả
redirected here from closed issue https://github.com/microsoft/vscode/issues/80434
The bug appeared after one of few last updates.
When integrated terminal starts it uses custom profile (as expected),
but after python script is started it loads profile from ~/.bashrc
In my settings.json I have the following settings:
"terminal.integrated.shellArgs.osx": [
"--rcfile", "/Volumes/DISK/projs/TechStuff/settings/profile"
],
"terminal.integrated.env.osx": {"HISTFILE":"/dev/null"},
"terminal.integrated.setLocaleVariables": false,
Environment data
Version: 1.38.0
Commit: 3db7e09f3b61f915d03bbfa58e258d6eee843f35
Date: 2019-09-03T21:47:00.464Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Darwin x64 17.7.0
Expected behaviour
using custom profile (environment)
Actual behaviour
using standard profile (environment), after starting python script
Steps to reproduce:
- Assign custom profile to integrated terminal settings.(and restart maybe)
- Open page(tab) with any python script and open integrated terminal.
(You can put string like echo 'bashrc loaded' in profile file to see it loads) - Check profile - it is cutom.
- Debug python script (F5 or Debug -> Start Debugging) - it loads bashrc profile instead of custom
- Check which profile is loaded (can use printenv command if you set different env. variables or check echo print as mentioned above) - standard profile loaded.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện sự cố với các cài đặt terminal.integrated.shellArgs.osx được liệt kê, một --rcfile tùy chỉnh và thao tác khởi chạy debug Python bằng F5. So sánh môi trường từ terminal tích hợp với môi trường sau khi debug bắt đầu. Được xem là hoàn tất khi tiến trình được khởi chạy bởi debug giữ nguyên profile tùy chỉnh đã cấu hình thay vì tải ~/.bashrc.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- bash, python, typescript
- Lĩnh vực
- cli, devtools
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100