bbcmicrobit / bbcmicrobit/PythonEditor

Mixed spaces and tabs in indentions

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

説明

Here's a situation the results in a mix of tabs and spaces in an indent - disastrous.

There's source code somewhere outside the editor (maybe web page, maybe a text editor) that includes a tab followed by spaces within an indent of a line. Copying and pasting that code into the online editor doesn't result in the space being converted; in fact, it seems an even stranger mix of spaces and tabs results in that line's indent. Although the code still _appears_ fine on screen (in online editor), it won't work properly on the micro:bit.

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

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

調査の方向性

ファイル、テスト、エントリポイントのいずれも指定されていません。まず、インデント内にタブに続いてスペースが含まれるコードを貼り付けてオンラインエディターで問題を再現し、その結果のインデントを micro:bit で実行したコードのインデントと比較してください。この入力で無効なインデントが発生しなくなれば完了としますが、意図する正規化の動作は指定されていません。

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

評価

技術スタック
javascript
領域
frontend, web-dev
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
28/100

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

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