redguardtoo / emacs.d

Fast and robust Emacs setup.
http://blog.binchen.org
GNU General Public License v3.0
2.41k stars 616 forks source link

使用elpy补全python的问题 #953

Closed hhcwyx closed 2 years ago

hhcwyx commented 2 years ago

陈老师您好,我使用的是ubuntu20.04,emacs版本是27.2。在写python代码的时候,用numpy定义了数组时遇到以下问题: import numpy as np test_data=np.array([1,2,3,4]) 键入 test_data.时,补全提示能出现; test_data2=np.arange(10) 键入 test_data2.时,没有补全提示。 另外,使用lsp也是这个现象。

redguardtoo commented 2 years ago

Looks you need contact Jedi team. You could contact elpy developer and let them deal with jedi team.

Vim has same problem, https://gitanswer.com/youcompleteme-cannot-get-completion-to-work-with-python-python-126862907

Or you can use ctags based solution. Check my plugin company-ctags.

hhcwyx commented 2 years ago

谢谢!