Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate "Source" menu on Eclipse #1111

Closed
mateusbandeiraa opened this issue Sep 19, 2023 · 7 comments
Closed

Duplicate "Source" menu on Eclipse #1111

mateusbandeiraa opened this issue Sep 19, 2023 · 7 comments
Assignees
Labels
for: eclipse something that is specific for Eclipse type: bug

Comments

@mateusbandeiraa
Copy link

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

@BoykoAlex
Copy link
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

@martinlippert martinlippert added status: needs-investigation for: eclipse something that is specific for Eclipse and removed status: waiting-for-triage labels Sep 20, 2023
@martinlippert martinlippert added this to the 4.20.1.RELEASE milestone Sep 20, 2023
@martinlippert
Copy link
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.

@BoykoAlex
Copy link
Contributor

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

@BoykoAlex
Copy link
Contributor

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

@BoykoAlex BoykoAlex self-assigned this Jan 30, 2024
@BoykoAlex
Copy link
Contributor

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

@martinlippert
Copy link
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.

@martinlippert
Copy link
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
Labels
for: eclipse something that is specific for Eclipse type: bug
Projects
None yet
Development

No branches or pull requests

3 participants