NullPointerException com.mattermost.pasteinputtext.PasteInputEditText in onCreateInputConnection
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 28/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- android, react-native
- 領域
- mobile-dev
調査の方向性
まず 58 行目の PasteInputEditText.onCreateInputConnection を調査し、提供されている制御なしの React Native の使用方法を確認します。サンプルの props を使って Android 上で Sentry のスタックトレースを再現し、その後、失敗の原因がライブラリにあるのか統合にあるのかを判断します。Done には、確認済みの原因と検証済みの解決策を含める必要がありますが、issue では期待される動作もテストカバレッジも定義されていません。
索引モデルが issue の本文から書いたものです。
説明
Hey mattermost team, wonder if anyone hit this before on Android device.
More context on how we use it, we are using it as uncontrolled input like how bluesky is using it.
Will wanna identify if it's a library issue or my implementation issue.
Please let me know if any more information is needed.
Sample code on how I'm using it
const pasteInputRef = useRef<PasteInputRef>(null);
useImperativeHandle(ref, () => ({
focus: () => {
pasteInputRef.current?.focus();
},
blur: () => {
pasteInputRef.current?.blur();
},
clear: () => {
pasteInputRef.current?.clear();
},
}));
return (
<View style={containerStyle}>
<PasteInput
ref={pasteInputRef}
multiline
maxLength={500}
style={[styles.input, disabled && styles.disabled, inputStyle]}
onChangeText={onChangeText}
onPaste={() => {}}
autoCorrect
pointerEvents={disabled ? 'none' : 'auto'}
caretHidden={disabled}
editable={!disabled}
readOnly={disabled}
focusable={!disabled}
placeholderTextColor={disabled ? colorScheme['content-disabled'] : colorScheme['content-placeholder']}
allowFontScaling={false}
selectionColor={inputSelectionColor}
selectionHandleColor={androidInputSelectionHandleColor}
cursorColor={androidInputCursorColor}
>
{children}
</PasteInput>
</View>
);
Stack trace on Sentry:
com.mattermost.pasteinputtext.PasteInputEditText in onCreateInputConnection at line 58
android.view.inputmethod.InputMethodManager in startInputInner at line 2318
android.view.inputmethod.InputMethodManager in restartInput at line 2174
com.android.internal.inputmethod.RemoteInputConnectionImpl in lambda$scheduleInvalidateInput$0$com-android-internal-inputmethod-RemoteInputConnectionImpl at line 298
com.android.internal.inputmethod.RemoteInputConnectionImpl$$ExternalSyntheticLambda7 in run at line 4
android.os.Handler in handleCallback at line 942
android.os.Handler in dispatchMessage at line 99
android.os.Looper in loopOnce at line 211
android.os.Looper in loop at line 300
android.app.ActivityThread in main at line 8324
java.lang.reflect.Method in invoke
com.android.internal.os.RuntimeInit$MethodAndArgsCaller in run at line 581
com.android.internal.os.ZygoteInit in main at line 1028
- 主要言語
- Objective-C
- スター
- 213
- フォーク
- 39
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mattermost/react-native-paste-input のほかの issue
-
v2 paste interception silently bails on RN 0.76+ Fabric (uses `__nativeTag` which is undefined)対応中かも @manan19 が 153 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
mattermost/react-native-paste-input#54 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
mattermost/react-native-paste-input#47 · コメント 6 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
mattermost/react-native-paste-input の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
sparkle-project/Sparkle#2932 ·
メンテナーはふだん 1 日以内に返信
-
Typo in installer: “addition protections” → “additional protections”対応中かも @Jah-yee が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 94/100
objective-see/BlockBlock#111 ·
-
s: need triage
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
Tencent-TDS/KuiklyUI#1786 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
DataDog/dd-sdk-ios#3293 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
callstackincubator/voltra#340 ·
メンテナーはふだん 4 日以内に返信