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

Fix Codeaction to CodeAction #927

Merged
merged 1 commit into from
May 1, 2024

Conversation

eval-exec
Copy link
Contributor

@eval-exec eval-exec commented Apr 30, 2024

I get:

--- [19:09:45.275665] Recv textDocument/signatureHelp response (32290) from 'rust-analyzer' for project
Traceback (most recent call last):
  File "/home/exec/.emacs.d/straight/build/lsp-bridge/lsp_bridge.py", line 512, in event_dispatcher
    getattr(self, func_name)(*func_args)
  File "/home/exec/.emacs.d/straight/build/lsp-bridge/lsp_bridge.py", line 773, in _do
    action.call(name, *args)
  File "/home/exec/Projects/github.com/manateelazycat/lsp-bridge/core/fileaction.py", line 166, in call
    getattr(self, method)(*args, **kwargs)
  File "/home/exec/Projects/github.com/manateelazycat/lsp-bridge/core/fileaction.py", line 264, in try_code_action
    self.send_code_action_request(self.single_server, *args, **kwargs)
  File "/home/exec/Projects/github.com/manateelazycat/lsp-bridge/core/fileaction.py", line 395, in send_code_action_request
    lsp_server, "code_action", Codeaction,
                               ^^^^^^^^^^
NameError: name 'Codeaction' is not defined

So I think the class name should be CodeAction:

class CodeAction(Handler):

@manateelazycat manateelazycat merged commit efae47d into manateelazycat:master May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants