-
Notifications
You must be signed in to change notification settings - Fork 44
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
Code Actions problems #47
Comments
I think problem is in out side. It looks like existing code is ignoring existing end-of-lines. |
@daliusd great, thanks! And please let me know if you discover that it is, in fact, a problem with jedi-language-server. I'd definitely want to fix that if it were that case. Note that, when trying your example above, things work correctly with def func_thoqdjlj():
a = 1
b = 2
c = a + b
return c
def main():
c = func_thoqdjlj() |
Hey, thanks for confirming it. It was problem in Ale's code and I hope I have fixed it. I will ask people to do more testing and let's see what will happen 😀 |
I'm experimenting with LSP Code Actions in Ale and one person suggested that
jedi-language-server
is good candidate for testing code actions. However I usually get quite not perfect results with it. Let's say I have following python file:I give instructions to extract function for code starting with line
a = 1
and ending with last line. The result is following (notice thatreturn
is in wrong line):Here is JSON (vimscript format) that I get from jedi-language-server:
I have not tested
jedi-language-server
with other LSP implementations but could it be that there is problem injedi-language-server
side.The text was updated successfully, but these errors were encountered: