Skip to content

organize imports causes communication issues with the language server #806

Closed

Description

@martinlippert

I have the Rest Service example running, added actuators, see live hovers in the editor. While seeing that, I add a new private field, add a value annotation, running content-assist in the value parameter, all that works fine.

Then, I delete the code around the new private field and an unused import warning shows up. Everything seems to be fine up to here. Then I do an "organize imports" and after that, the green hovers seem to be totally off and a never-ending background job appears Language Server Background Job.

I can cleanup the situation in the editor again when typing into the editor (after the next keystroke, the green liver hover highlights are perfectly fine again), but the background job is still sitting around.

I think we need to investigate and fix both issues here.

Activity

  1. added this to the 4.16.0.RELEASE milestone on Aug 3, 2022
  2. self-assigned this
    on Aug 3, 2022
  3. BoykoAlex commented on Aug 3, 2022

    @BoykoAlex
    Contributor

    Might be related to the Rewrite integration... parsing and then reconciling. However, not sure if perform any of the Rewrite recipes or parsing in a job except for applying recipes to projects... I'll probably have a look at this

  4. BoykoAlex commented on Aug 6, 2022

    @BoykoAlex
    Contributor

    Background job seems like some non-terminated progress... i.e. exception thrown but finally block missing progress done... something around this

  5. BoykoAlex commented on Aug 9, 2022

    @BoykoAlex
    Contributor

    This should fix the annoying background job: 1f48222

  6. martinlippert commented on Aug 9, 2022

    @martinlippert
    MemberAuthor

    The issue with the annoying Language Server Background Job is indeed fixed, but the green live hover highlights are still broken right after the "organize imports" action, therefore re-opening this issue.

  7. BoykoAlex commented on Aug 9, 2022

    @BoykoAlex
    Contributor

    Ouch... yes indeed the issue is about the garbled live hovers as well. This part will be probably more difficult to address :-\

  8. added a commit that references this issue on Aug 30, 2022
  9. martinlippert commented on Aug 31, 2022

    @martinlippert
    MemberAuthor

    I think this is fixed now. Closing.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions