Using `{later}` to sync state
まだ誰も着手していません。
評価
調査の方向性
まず、デバッグアダプターに応答する素朴な later コールバックを再現し、SIGPIPE エラーを捕捉します。アダプター接続がプロセス間でどのように共有されているか、また別のソケットとレスポンスルーティングが必要かどうかを調査します。書き込みエラーなしで状態の同期が機能すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I've been exploring the use of later to repeatedly poll the debug adapter and synchronize state. This would alleviate one of my biggest concerns with this project currently, which is the lag time/expression for synchronization.
I think it's probably the way to go, but I need to really understand how to communicate between processes responsibly from a later callback. In naive tests it's raising an error when trying to reply back to the adapter.
Error in writeChar(content_str, x)
ignoring SIGPIPE signal
I think this is because the connection to the adapter is captured in the closure that is passed to later, which as I understand it runs a callback in a separate background process. From what I know of multiprocess R, passing connection objects is always error prone, so I'm guessing it's related to this behavior.
I might need a separate socket connection just for the later callback, but that would probably mean that I need to be more mindful about routing responses.
@lionel- does this sound like a reasonably hypothesis for this error? Any behaviors I should avoid when dealing with multiprocess communication within a later callback?
- 主要言語
- R
- スター
- 20
- フォーク
- 2
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dgkf/debugadapter のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
dgkf/debugadapter#24 · コメント 3 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
dgkf/debugadapter#18 ·
-
難易度 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 ·
-
complexity::1-low effort::1-hours priority::3-could
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
jumpingrivers/audit.workbench#43 ·
メンテナーはふだん 1 日以内に返信
-
complexity::1-low effort::1-hours priority::3-could
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
jumpingrivers/audit.connect#71 ·
メンテナーはふだん 1 日以内に返信