Skip to content

content-assist seems to be broken in Eclipse (adds a return statement somehow) #1729

Closed

Description

@martinlippert

It looks like some changes in lsp4e cause a newline to be appended when inserting a completion item:

@Value(<*>)

results in:

@Value("${logging.charset.file}"
		<*>)

(randomly picked the logging.charset.file property from the completion item list, the exact item doesn't really matter)

When pressing "undo", the added newline is removed again and everything looks fine, so it looks like somehow this return is added when applying the workspace edit or so.

This seems to happen in all our Java source code content-assist cases.

Activity

  1. added this to the 5.0.0.RELEASE milestone on Dec 4, 2025
  2. added
    for: eclipse
    on Dec 4, 2025
  3. martinlippert commented on Dec 4, 2025

    @martinlippert
    MemberAuthor

    This seems to be the root cause: eclipse-lsp4e/lsp4e#1452

  4. BoykoAlex commented on Dec 4, 2025

    @BoykoAlex
    Contributor

    Here is the PR: eclipse-lsp4e/lsp4e#1453

  5. martinlippert commented on Dec 5, 2025

    @martinlippert
    MemberAuthor

    Lets now wait for a 0.29.4 release of lsp4e in order to be in shape for out release build here.

  6. added a commit that references this issue on Dec 5, 2025
  7. martinlippert commented on Dec 5, 2025

    @martinlippert
    MemberAuthor

    Fixed via new lsp4e version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

for: eclipsetype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions