Keymap.getDefault() method get a empty inputstream problem.
- Dominant language
- Java
- Stars
- 127
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Description
public static Keymap getDefault() {
InputStream inputrc = null;
try {
inputrc = Keymap.class.getResourceAsStream("inputrc");
} finally {
if (inputrc != null) {
try {
inputrc.close();
} catch (IOException e) {
// ignore
}
}
}
return new Keymap(inputrc); // this line get a closed inputstream, this may cause keymap initializing failed.
}
------------------------------------------------------------------
Just like the comment, using example/readline can reproduce it.
Contributor guide
No contributing guide indexed for this repository
Research direction
The affected entry point is Keymap.getDefault(); start there and reproduce the problem with example/readline. Check keymap initialization using the inputrc resource, then confirm that the example/readline path completes without the reported initialization failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100