autocomplete-plus-python-jedi icon indicating copy to clipboard operation
autocomplete-plus-python-jedi copied to clipboard

Complete not matching Jedi completion

Open EntilZha opened this issue 10 years ago • 1 comments

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).

EntilZha avatar May 29 '15 17:05 EntilZha

hum.. What version of Jedi is that? It might be that it differs from the bundled version?

tinloaf avatar Jun 10 '15 10:06 tinloaf