Skip to content
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

With Jedi: Docstrings won't overlap other code #75

Closed
tarjeiba opened this issue Aug 25, 2014 · 3 comments
Closed

With Jedi: Docstrings won't overlap other code #75

tarjeiba opened this issue Aug 25, 2014 · 3 comments

Comments

@tarjeiba
Copy link

(Previously posted as Jedi-issue #174.)

Docstrings in auto-complete list all of a sudden shows some weird behavior in my emacs setup, as shown in the picture below.

To ensure that the docstrings will show when the dot is close to the right margin, I have the following in my .emacs file:

(setq jedi:complete-on-dot)
(add-hook 'python-mode-hook 'jedi:setup)
; preventing unwanted behavior of the doc strings
(defun my/jedi-mode-hook ()
  (setq-local ac-max-width 0.5))
(add-hook 'jedi-mode-hook 'my/jedi-mode-hook)

All help would be greatly appreciated.

@syohex
Copy link
Contributor

syohex commented Aug 29, 2014

Would you show us sample python code(we hope the code is small as possible)
for reprodusing this issue ?

@tarjeiba
Copy link
Author

Weirdly, I can't myself reproduce the exact same behavior as shown above. But even something as simple as

import numpy as np
s1 = "This is a short string."
a = np.re|
s2 = "This is a somewhat longer string."

will give me trouble if the dot is at | and I attempt to display docstring, as is shown below.
popup

@tarjeiba
Copy link
Author

This no longer seems to be an issue in the latest pop-up version. Whatever you did that helped, thanks.

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

No branches or pull requests

2 participants