-
Notifications
You must be signed in to change notification settings - Fork 197
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, Using code actions freezes emacs #827
Comments
can you send example code to me? |
#include <stdio.h>
/* ANSI C doesn't require int to be the return of the main function*/
main() {
float fahr, celsius, upper, lower, step;
step = 20;
upper = 500;
lower = 0;
fahr = lower;
printf("%s", "Fahrenheit to Celsius Table\n");
while (fahr <= upper) {
celsius = (5.0 / 9.0) * (fahr - 32);
printf("%6.2d %9.1f\n" ,fahr, celsius);
fahr = fahr + step;
}
} This is from the C Programming Book 2nd, clangd will highlight that %6.2d should be %6.2f, but freeze after selecting the fix |
I used the above code to test locally. The code action ran normally and there was no freezing problem. Please use emacs -Q to load only lsp-bridge for testing to eliminate the influence of other plug-ins. |
I'm using --init-directory for the tests (add-to-list 'load-path "/home/kenneth/.config/emm/lsp-bridge")
(require 'yasnippet)
(yas-global-mode 1)
(require 'lsp-bridge)
(global-lsp-bridge-mode)
(setopt lsp-bridge-enable-log t)
(setq lsp-bridge-python-command "/home/kenneth/.conda/envs/py_env/bin/python")
i tried with this configuration, directly download the lsp-bridge repo and still got the freezing behavior I'll try to replicate this behavior on a VM and/or my windows machine |
Using the
lsp-bridge-code-action
while havinglsp-bridge-code-action-enable-popup-menu
enabled will cause emacs to freeze, it will not respond to keyboard input (but mouse input, at least on wayland) will still workI tried using this configuration
Screencast_20240111_181830-1.webm
This is the lsp-bridge buffer after the code action
It was previously mentioned here
I'm not very knowledgeable in either elisp or python, but i think this is worth mentioning, or disabling the popup by default / removing the option if it doesn't work properly.
The text was updated successfully, but these errors were encountered: