Skip to content

Duplicate "Source" menu on Eclipse #1111

Closed

Description

@mateusbandeiraa

Describe the bug
After installing the latest version of the Spring Tools 4 plugin on Eclipse 2023-09, the "Source" menu is duplicated when a Java source file is opened.

I was able to reproduce the issue on Windows 11 and MacOS 13.5.2

First menu

Screenshot of the Eclipse top menus, with the two Source menus displayed. The first Source menu is opened, displaying all expected options, like "Toggle comment", "Add block comment", "Format", etc.

Second menu
Screenshot of the Eclipse top menus, with the two Source menus displayed. The second Source menu is opened, displaying only the option, "Format", that is also disabled

To Reproduce

  1. On a fresh installation of Eclipse IDE for Enterprise Java and Web Developers 2023-09, open the Eclipse Marketplace and install Spring Tools 4.
  2. Open a Java source file

Sample

n/a

Activity

  1. BoykoAlex commented on Sep 20, 2023

    @BoykoAlex
    Contributor

    Hmm... very interesting... don't think I've seen anything like it yet... I suspect this has something to do when installed from an update sitr as Distro looks good. I'll try to reproduce this

  2. added this to the 4.20.1.RELEASE milestone on Sep 20, 2023
  3. martinlippert commented on Sep 20, 2023

    @martinlippert
    Member

    Actually, I can reproduce that with both, the latest Spring Tools for Eclipse distribution as well as a plain Eclipse installation with Spring Tools added to it. It appears as soon as you open a Java source file in an editor.

    I haven't analyzed the root cause in detail yet, but I guess this is related so some LSP-related format action showing automatically due to the fact that we have the Spring Boot language server registered for the Java source content type.

  4. BoykoAlex commented on Sep 20, 2023

    @BoykoAlex
    Contributor

    Yes, i saw this as well... java editor needs to be active...

  5. BoykoAlex commented on Sep 25, 2023

    @BoykoAlex
    Contributor

    Should be resolved in LSP4E project: eclipse-lsp4e/lsp4e#822

  6. self-assigned this
    on Jan 30, 2024
  7. BoykoAlex commented on Jan 30, 2024

    @BoykoAlex
    Contributor

    Fixed in lsp4e. Should be fixed on our side as well once we consume the latest lsp4e snapshot.

  8. martinlippert commented on Jan 31, 2024

    @martinlippert
    Member

    Since we are not going to ship the upcoming 4.21.1 release with a snapshot version of lsp4e, I moved the target milestone of this to the 4.22.0 release. If you would like to get this fix early, please install/update lsp4e manually from the lsp4e snapshot update site.

  9. martinlippert commented on Feb 4, 2024

    @martinlippert
    Member

    4.21.1 release will include a new release of lsp4e that includes the fix, therefore closing this as fixed for 4.21.1 here.

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

Metadata

Metadata

Assignees

Labels

for: eclipsetype: bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions