autocomplete-plus-python-jedi
autocomplete-plus-python-jedi copied to clipboard
Complete not matching Jedi completion
I am checking out Atom/this package for developing Python. I am developing/author of the package here: github.com/EntilZha/ScalaFunctional. So my example is based on that where I know jedi does completions correctly. Below is some Python code to chose that:
$ ipython
Python 2.7.9 (default, Feb 10 2015, 03:28:08)
Type "copyright", "credits" or "license" for more information.
IPython 3.0.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import jedi
In [2]: source = '''
from functional import seq
seq([1, 2]).ma'''
In [3]: script = jedi.Script(source, 3, len('seq([1, 2]).ma'), 'example.py')
In [4]: completions = script.completions()
In [5]: completions
Out[5]:
[<Completion: make_string>,
<Completion: map>,
<Completion: max>,
<Completion: max_by>]
When I use atom though, I don't get any completions, and it also recognizes seq as an import, instead of a function. What could be going wrong? I have tried reinstalling the package, rebooting (to kill jedi process still running if it is).
hum.. What version of Jedi is that? It might be that it differs from the bundled version?