microsoft / microsoft/TypeScript-Sublime-Plugin
AttributeError: 'NoneType' object has no attribute 'get_mapping'
オープン
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 1.7k
- フォーク
- 236
- 平均マージ
- 21日 13時間
- マージ済み PR(30日)
- 1
説明
I just saw these things on my console, not sure why they are coming up:
Traceback (most recent call last):
File "F:\SublimeText\sublime_plugin.py", line 1072, in run_
return self.run(edit)
File "F:\SublimeText\Data\Packages\TypeScript\typescript\commands\references.py", line 35, in run
mapping = ref_info.get_mapping(str(cursor[0]))
AttributeError: 'NoneType' object has no attribute 'get_mapping'
Traceback (most recent call last):
File "F:\SublimeText\sublime_plugin.py", line 1072, in run_
return self.run(edit)
File "F:\SublimeText\Data\Packages\TypeScript\typescript\commands\references.py", line 35, in run
mapping = ref_info.get_mapping(str(cursor[0]))
AttributeError: 'NoneType' object has no attribute 'get_mapping'
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず typescript/commands/references.py の35行目を読み、報告された Sublime Text のセットアップで references コマンドを再現します。ref_info が None になる理由を追跡します。コマンドの実行時に報告された AttributeError が発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python, typescript
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100