Closed LordZorgoth closed 5 years ago
Yep, that is definitely happening, but it almost seems to be an issue with company-mode. I think it may have something to do with the setting of company-auto-complete-chars, but I need to play around a bit to be sure.
company-mode support is in a much better place now; so far I don't seem to see this issue anymore. Closing this one out.
Check list
Description of the problem you have
ein:company-backend
fails to properly complete relative paths. See "Steps to reproduce the problem" for details.Steps to reproduce the problem
Create a directory
~/foodir
and a file~/foodir/barfile
Start an IPython notebook, and if necessary, navigate to
~
Enable company completion. To do this, turn on company mode with
M-x company-mode
and ensure that we are using thepython3
kernel. Further addein:company-backend
to the list of company backends usingcustomize
. (alternatively, you could just useM-x ein:company-backend
in place ofTAB
in steps 4 and 5)In the input prompt, type
foo
, then hitTAB
. If company mode has been enabled correctly, and you have no other directories or files beginning with~/foo
, you should getfoodir/
. This behavior is correct.Now type
bar
, then hitTAB
. Company will give youfoodir/foodir/barfile
. This is obviously not correct.Note that this bug does not occur if you prepend the path with a
~/
or./
.Expected output
Your EIN configuration (in .emacs.d/init.el or somewhere else)
Your IPython configuration
What is your IPython version? (run
ipython --version
): 6.1.0How do you start IPython? (e.g.,
ipython notebook --port 9999
): jupyter notebook --port 9999What is your IPython notebook port number or URL?: 9999
Additional information (if any)
System info: