pythonic-emacs/anaconda-mode

not getting any completions

Opened this issue · 2 comments

There's something that still is not clear to me. Installing the package after following the installation steps and editing a python file I absolutely get no completions.

Additionally, this statement

To start a completion press C-M-i. This is the standard emacs binding for complete-at-point function. You can use company-mode with company-anaconda backend to get more intelligent UI.

It states that after installing anaconda-mode you should be getting completions just by pressing C-M-i and that optionally to get more intelligent completions you should install company-mode and company-anaconda.

Are those optional or necessary? If necessary make it explicit with boldface in the readme.

Here's what I see as errors

Searching for service_factory>=0.1.5
Reading https://pypi.org/simple/service_factory/
Downloading https://files.pythonhosted.org/packages/51/ad/7e07f1f11919033a883acc18eb60e0f45e221d98edc42657060f36ff451e/service_factory-0.1.5-py3-none-any.whl#sha256=d466a7b1e1f0e196abdc27a69aef6afdaff3b1814146068573e9c46ae8be2658
Best match: service-factory 0.1.5
Processing service_factory-0.1.5-py3-none-any.whl
Installing service_factory-0.1.5-py3-none-any.whl to /Users/kirk/.emacs.d/anaconda-mode/0.1.12
Adding service-factory 0.1.5 to easy-install.pth file

Installed /Users/kirk/.emacs.d/anaconda-mode/0.1.12/service_factory-0.1.5-py3.7.egg
Processing dependencies for service_factory>=0.1.5
Finished processing dependencies for service_factory>=0.1.5
anaconda_mode port 59465
anaconda_mode port 59467
127.0.0.1 - - [09/Oct/2019 18:18:17] ================================================================================
Traceback (most recent call last):
  File "/Users/kirk/miniconda3/envs/tf/lib/python3.6/site-packages/jedi/cache.py", line 141, in wrapper
    return dct[key]
KeyError: ((), frozenset({('resolve_stars', True)}))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/kirk/.emacs.d/anaconda-mode/0.1.12/service_factory-0.1.5-py3.7.egg/service_factory/service.py", line 101, in apply
    result = method(**params)
  File "<string>", line 81, in wrapper
  File "<string>", line 97, in wrapper
  File "<string>", line 97, in <listcomp>
  File "/Users/kirk/miniconda3/envs/tf/lib/python3.6/site-packages/jedi/api/classes.py", line 479, in docstring
    return super(Completion, self).docstring(raw=raw, fast=fast)
  File "/Users/kirk/miniconda3/envs/tf/lib/python3.6/site-packages/jedi/api/classes.py", line 242, in docstring
    return _Help(self._name).docstring(fast=fast, raw=raw)
  File "/Users/kirk/miniconda3/envs/tf/lib/python3.6/site-packages/jedi/api/classes.py", line 756, in docstring
    signature_text = _format_signatures(context)
  File "/Users/kirk/miniconda3/envs/tf/lib/python3.6/site-packages/jedi/api/classes.py", line 715, in _format_signatures
    for signature in context.get_signatures()
  File "/Users/kirk/miniconda3/envs/tf/lib/python3.6/site-packages/jedi/api/classes.py", line 715, in <genexpr>
    for signature in context.get_signatures()
  File "/Users/kirk/miniconda3/envs/tf/lib/python3.6/site-packages/jedi/evaluate/signature.py", line 28, in to_string
    s = self.name.string_name + '(' + ', '.join(param_strings()) + ')'
  File "/Users/kirk/miniconda3/envs/tf/lib/python3.6/site-packages/jedi/evaluate/signature.py", line 10, in param_strings
    for n in self.get_param_names(resolve_stars=True):
  File "/Users/kirk/miniconda3/envs/tf/lib/python3.6/site-packages/jedi/cache.py", line 143, in wrapper
    result = method(self, *args, **kwargs)
  File "/Users/kirk/miniconda3/envs/tf/lib/python3.6/site-packages/jedi/evaluate/signature.py", line 89, in get_param_names
    params = process_params(params)
  File "/Users/kirk/miniconda3/envs/tf/lib/python3.6/site-packages/jedi/evaluate/utils.py", line 20, in wrapper
    return list(func(*args, **kwargs))
  File "/Users/kirk/miniconda3/envs/tf/lib/python3.6/site-packages/jedi/evaluate/star_args.py", line 135, in process_params
    for func_and_argument in arg_callables:
  File "/Users/kirk/miniconda3/envs/tf/lib/python3.6/site-packages/jedi/evaluate/star_args.py", line 51, in _iter_nodes_for_param
    assert False
AssertionError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/kirk/.emacs.d/anaconda-mode/0.1.12/service_factory-0.1.5-py3.7.egg/service_factory/providers/basehttp.py", line 40, in do_POST
    status, response = self.server.service(data)
  File "/Users/kirk/.emacs.d/anaconda-mode/0.1.12/service_factory-0.1.5-py3.7.egg/service_factory/service.py", line 50, in __call__
    result = self.apply(method, args)
  File "/Users/kirk/.emacs.d/anaconda-mode/0.1.12/service_factory-0.1.5-py3.7.egg/service_factory/service.py", line 105, in apply
    server_error(args['id'], error)
  File "/Users/kirk/.emacs.d/anaconda-mode/0.1.12/service_factory-0.1.5-py3.7.egg/service_factory/errors.py", line 91, in server_error
    raise ServiceException(500, dumps(response))
service_factory.exceptions.ServiceException: (500, '{"jsonrpc": "2.0", "id": 1, "error": {"code": -32000, "message": "Server error", "data": "AssertionError()"}}')

Process anaconda-mode killed: 9

I managed to make it work but I'm still facing the same issues whenever I look at the *anaconda-mode*. I still get the same traceback of errors.

And I see multiple processes being used by anaconda-mode.

image

Any ideas what causing that?

Are those optional or necessary? If necessary make it explicit with boldface in the readme.

They are optional. C-M-i should give completions if the anaconda server is running.