I'm currently working on Sublime Text 3 using Jedi - Python autocompletions and it works with most basic things. However I use it like in this case with BeautifulSoup4
The main issue is not displaying properly completions for when doing multiple dot (.
) methods on a file and the completor has to rely on seeing it first like .find_all
method then it will suggest it (however this seems to be the autocompletion from Sublime Text 3 itself).
What happens in the next case
import requests
from bs4 import BeautifulSoup as Soup # works ok, shows all suggestions
request = requests.get('http://example.com')
soup = Soup(request.text, 'lxml')
main = soup.find('body') # shows find method
# However, No available completions in the next case
second_lookup = main.find('div') # doesn't show any autocompletions/hints when starting w/ .fi..
Same goes when looking any other 'deeper' methods for autocompletions. I've tried so far tweaking all the settings in the Jedi..settings file. That didn't help and I've tried using Anaconda as it has some additional tools also including Jedi.
This seems to be specific to some libraries like numpy and bs4 for example.
Note:
This isn't specific to Sublime Text 3. Same thing goes for Atom and similar IDEs.