Skip to content
This repository has been archived by the owner on Apr 23, 2019. It is now read-only.

Complete not matching Jedi completion #27

Open
EntilZha opened this issue May 29, 2015 · 1 comment
Open

Complete not matching Jedi completion #27

EntilZha opened this issue May 29, 2015 · 1 comment

Comments

@EntilZha
Copy link

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

@tinloaf
Copy link
Owner

tinloaf commented Jun 10, 2015

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants