microsoft / microsoft/vscode-python-debugger

Terminal doesn't use custom bash profile when debugging

オープン
#521 コメント 14 件 リアクション 13 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug needs PR
主要言語
TypeScript
スター
181
フォーク
126
平均マージ
2日 3時間
マージ済み PR(30日)
3

説明

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:

  1. Assign custom profile to integrated terminal settings.(and restart maybe)
  2. 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)
  3. Check profile - it is cutom.
  4. Debug python script (F5 or Debug -> Start Debugging) - it loads bashrc profile instead of custom
  5. 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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、記載されている terminal.integrated.shellArgs.osx 設定、カスタムの --rcfile、および F5 を使用した Python のデバッグ起動で問題を再現します。統合ターミナルの環境と、デバッグ開始後の環境を比較します。デバッグによって起動されたプロセスが ~/.bashrc を読み込むのではなく、設定されたカスタムプロファイルを保持すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
bash, python, typescript
領域
cli, devtools
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。