bbcmicrobit / bbcmicrobit/PythonEditor

blocks: no warnings when connecting 'incompatible' blocks

オープン
#40 コメント 5 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
201
フォーク
126
PR マージ指標
30日以内にマージされた PR はありません

説明

(This one probably isn't trivial, as I think it's partially a blockly/Python limitation)

One of the things that blocks is quite good at is avoid syntax errors.

However, our current implementation doesn't protect the user from type error as well as it could.

For example, the following code fails as soon as it is run on the micro:bit
![image](https://cloud.githubusercontent.com/assets/147113/23947894/8abfaf0a-0978-11e7-844b-abc617bc3b8b.png)

PXT gives slightly more useful feedback:
![blocks types](https://cloud.githubusercontent.com/assets/147113/23947948/c7bb7ba0-0978-11e7-9f30-014e40112a2d.gif)

Do we have a way of giving more immediate feedback to users about type mismatches? Or even better, perhaps (although it's spooky action at a distance) automatically inserting the required conversion so it 'just works'?

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

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

調査の方向性

この issue にはファイル、テスト、エントリーポイントが記載されていません。まずブラウザーと micro:bit で互換性のないブロックの例を再現し、その後、Blockly/Python における現在の型処理の挙動を調査してください。型の不一致に対する即時のフィードバックを提供するか、安全な変換を挿入する、合意済みのアプローチが得られれば完了です。

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

評価

技術スタック
javascript, python
領域
embedded-iot, frontend
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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