redhat-developer / redhat-developer/lsp4ij
When the line ending is CRLF, it cannot be formatted.
Open
Nobody has claimed this yet.
bug
formatting
- Dominant language
- Java
- Stars
- 344
- Forks
- 113
- Avg merge
- 5h 22m
- Merged PRs (30d)
- 15
Description
[Trace - 17:01:56] Received response 'textDocument/formatting - (21)' in 96ms.
Result: [
{
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 7,
"character": 0
}
},
"newText": "local t \u003d \"#ABABAB\"\r\n\r\nprint(tt, aaa, bbbb, ccc, t)\r\n\r\nprint(\"Hello, World!\")\r\n\r\ntable.insert(aaa)\r\n"
}
]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue provides only an LSP textDocument/formatting trace showing CRLF input and a formatting result. Reproduce formatting with CRLF line endings, then locate the formatting request handling and verify that formatting succeeds while preserving the expected line endings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100