Skip to content

Error in implementation of various LS (methods don't exist) #114

Open
@MischaPanch

Description

@MischaPanch

Several methods are called in the clang server which don't exist, here in start_server:

                if registration["method"] == "workspace/executeCommand":
                    self.initialize_searcher_command_available.set()
                    self.resolve_main_method_available.set(

And also

            if params["type"] == "ServiceReady" and params["message"] == "ServiceReady":
                self.service_ready_event.set()

I guess they used to exist but were removed during some refactoring? It doesn't always lead to runtime errors, I suppose the conditions when they are called are rarely or never fulfilled

EDIT: initialize_searcher_command_available is also called without being defined for rust, solargraph and typescript. In eclipse it is defined as

self.initialize_searcher_command_available = asyncio.Event()

Should it be defined as event everywhere? Or should the code calling it be removed (since hasn't been functional for a while)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions