redhat-developer / redhat-developer/lsp4ij

When the line ending is CRLF, it cannot be formatted.

Open
#381 9 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.