I am using lsp for Python. I was wondering for an object's function, if there is no definition for it, can lsp
give an error/warning or underline using flycheck
or jedi? I know this is challenging I just wonder that's possible or not.
example python code:
class World():
def hello():
print("hello")
obj = World()
obj.hello()()
obj.foo() # <=== hoping to see: No definitions found for: foo and underline foo()
~~~~~~~~~
Since foo()
is not an object under World
; I want lsp
to give me a warning message letting me know that that function does not exist under the object definition.
Example configuration could be seen here: https://github.com/rksm/emacs-rust-config
Comment out the lines
9..35
and48
and add the following(use-package python :ensure nil)
save and install packages. Then open a python file, and M-x lsp to start lsp,