Feature: verifying breakpoints when srcrefs are not found, auto-sourcing objects
まだ誰も着手していません。
評価
調査の方向性
既知のファイルに利用可能な srcrefs がない場合のブレークポイント検証を追跡することから始めます。ファイルまたはオブジェクトのソースを安全に取得する方法を調査します。これには、パッケージがインストールされていない場合の処理と、ソースから取得したオブジェクトをグローバル環境と非表示環境のどちらに置くべきかの検討が含まれます。ソースが取得されていないファイルでもブレークポイントを検証でき、長時間実行されるコードを不必要に評価することなく、パッケージの失敗がクライアントに意味のあるメッセージを返せれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Placing a breakpoint in a file that hasn't been sourced currently causes the breakpoint to go un-verified, meaning that it is not traced.
Intuitively, this makes sense, as the code in the file can't be linked to code known in the interpreter to know which code to trace. But we can do better.
- When attempting to verify a breakpoint with a known file path, but no known srcrefs exist for the file, we can source the file before attempting to set the breakpoint so that we can find which code to trace.
- Sourced objects probably need to be loaded into the global environment... maybe there's a better way to hide them in a hidden environment (though I can't imagine how a user would know how to call them in such a scenario)?
- To avoid sourcing a whole script, we might be able to parse it first, identify the expression containing the object to be traced and then source only that object to avoid unnecessary evaluation of possibly long-running code (ie, an analysis script with long data pull or transformation steps)
- When attempting to verify code from a package which is not yet installed, we should emit a more meaningful message back to the client indicating that the package must be installed or is out of date.
- 主要言語
- R
- スター
- 20
- フォーク
- 2
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dgkf/debugadapter のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
dgkf/debugadapter#25 · コメント 3 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
dgkf/debugadapter#24 · コメント 3 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
dgkf/debugadapter#15 · コメント 5 件 · リアクション 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
dgkf/debugadapter#13 · コメント 3 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
dgkf/debugadapter#11 · コメント 2 件 ·
dgkf/debugadapter の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
stan-dev/priorsense#150 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
bennettoxford/opencodecounts#170 ·