Elpy: (elpy-goto-definition) fails with relative import

Created on 26 May 2016  Â·  4Comments  Â·  Source: jorgenschaefer/elpy

Hi, I have following folder strcutre,

  • project_dir

    • Data

    • python_pkg

    • __init__.py

    • add.py

    • config.py

inside of add.py, I have

from .config import try_load

M-. fails to find the definition of try_load. I tried elpy-set-project-root to python-pkg and also project_dir, both doesn't works.

Bug

Most helpful comment

No worries – I'd rather get too many bug reports than too few :-)

I like your attitude :)

Thanks to your answers when someone else open an issue, I started doing the same. I got excellent answers not just about elpy but emacs configuration in general and today I have my own "very tweaked" configuration with a lot of plugins and crazy hotkeys.

Thanks again!

All 4 comments

Hello and thanks for the report! What's the output of M-x elpy-config?

Hello, I am unable to reproduce this error. M-. works on both relative and absolute imports. apologies for my mistake.

No worries – I'd rather get too many bug reports than too few :-)

No worries – I'd rather get too many bug reports than too few :-)

I like your attitude :)

Thanks to your answers when someone else open an issue, I started doing the same. I got excellent answers not just about elpy but emacs configuration in general and today I have my own "very tweaked" configuration with a lot of plugins and crazy hotkeys.

Thanks again!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mikeiwi picture mikeiwi  Â·  5Comments

dschrempf picture dschrempf  Â·  6Comments

twangnh picture twangnh  Â·  6Comments

Valber picture Valber  Â·  4Comments

kapilsh picture kapilsh  Â·  3Comments