-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
completion with ein:use-company-backend doesn't work #543
Comments
Could you tell me the result of |
The value of
By the way, I'm using jupyter 4.2.1 coming with Debian 9. |
Sorry, I should have been more specific. Is this the result when you check the variable's value while in a notebook buffer? Is |
Yes, this is the value while in a notebook using python's kernel. The company minor mode is active as indicated by the mode line as well as by checking with The function associated with |
I experimented a little bit with |
I would suggest a minimum reproducible example with the exact steps, and the exact code that fails to complete. In other words, p[lease use |
@fedeinthemix , Since the completion calls are wrapped with deferred constructs what you see in |
Fair enough: Problem descriptionCode completion in a Steps to reproduce the problem
My expectation is that the command should be completed to Note that nothing gets completed, that is, the problem is not just with I hope that this clarify the problem. System info:("EIN system info"
:emacs-version
"GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
of 2017-09-15, modified by Debian"
:emacs-bzr-version nil
:window-system x
:emacs-variant nil
:os
(:uname
"Linux XXX 4.19.0-0.bpo.4-amd64 #1 SMP Debian 4.19.28-2~bpo9+1 (2019-03-27) x86_64 GNU/Linux
"
:lsb-release
"No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.9 (stretch)
Release: 9.9
Codename: stretch
")
:notebook nil
:ipython nil
:image-types
(svg imagemagick png gif tiff jpeg xpm xbm pbm postscript)
:image-types-available
(svg imagemagick png gif tiff jpeg xpm xbm pbm postscript)
:request
(:backend curl)
:ein
(:version "20190525.1502"
:source-dir "/home/XXX/.emacs.d/elpa/ein-20190525.1502/")
:lib
((:name "websocket"
:path "~/.emacs.d/elpa/websocket-20190408.152/websocket.elc"
:featurep t
:version-var websocket-version
:version "1.10")
(:name "auto-complete"
:path "~/.emacs.d/elpa/auto-complete-20170125.245/auto-complete.elc"
:featurep t
:version-var nil
:version nil)
(:name "request"
:path "~/.emacs.d/elpa/request-20181129.1138/request.elc"
:featurep t
:version-var request-version
:version "0.3.0")
(:name "deferred"
:path "~/.emacs.d/elpa/deferred-20170901.1330/deferred.elc"
:featurep t
:version-var deferred:version
:version "0.5.0")
(:name "polymode"
:path "~/.emacs.d/elpa/polymode-20190508.1847/polymode.elc"
:featurep t
:version-var nil
:version nil)
(:name "markdown-mode"
:path "~/.emacs.d/elpa/markdown-mode-20190305.319/markdown-mode.elc"
:featurep nil
:version-var nil
:version nil)
(:name "dash"
:path "~/.emacs.d/elpa/dash-20190424.1804/dash.elc"
:featurep t
:version-var nil
:version nil)
(:name "s"
:path "~/.emacs.d/elpa/s-20180406.808/s.elc"
:featurep t
:version-var nil
:version nil)
(:name "skewer-mode"
:path "~/.emacs.d/elpa/skewer-mode-20180706.1807/skewer-mode.elc"
:featurep t
:version-var nil
:version nil))) |
I'm afraid I can't help you. You can try
then something is amiss at the server. If you don't see that, then it's at the client. Either way, there's an unhandled case somewhere. |
Here is the content of the "*websocket..." buffer after pressing
It looks like the server is not returning the list of possible completions. The strange thing is that in the browser notebook completion does work. I've enable debug information with |
It's hard to know the details of your server as If you are still interested in using EIN, and are willing to give up resolving this completions issue and your wolfram changes, you might consider enabling |
I've found the problem. But first: I'm using Debian 9, and So, the
and
Now to the actual problem: The problem is with the procedure
However, the kernel expects |
Ah, yes, there are many branches in the code that look like:
The do-legacy branch is largely a museum piece of historical interest, is untested, and almost certainly doesn't work due to bitrot. I do find it strange that debian9 (afaict the current release) uses 5.1.0. The oldest we test is 5.8.0, and we already consider that "legacy." |
@fedeinthemix - I merged in your changes. Let me know once you update ein if things are working for you. Thanks for the assist. |
Thanks for accepting the patch. I've updated the `ein` package and I
confirm that it solves my problem.
|
"you might consider enabling ein:polymode as described in the README. This alternative circumvents both these issues but may raise others." Am I right in assuming polymode will not communicate to the Jupyter server, rather (for my default python setup via spacemacs layer) it will just utilise whats on the emacs client machine? |
Yes. I also cannot recommend using EIN in spacemacs until we actually test it. I am aware spacemacs is immensely popular. |
I have been using EIN in Spacemacs for a couple of months, with no issues, and now have it running with Scimax. The only issue is that I have to use the 20190318.1601 version, as the current version doesn't work for me on Windows.. |
|
I've installed EIN rom melpa and configured it to use 'ein:use-company-backend' for completion, but when I press C-c C-i nothing happens.
Here my configuration.
The text was updated successfully, but these errors were encountered: