question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I'm not getting autocomplete from pip modules

See original GitHub issue

I’m trying to make a flask app and I’m not getting any complete for app object

from flask import Flask

app = Flask(__name__)

I don’t get anything from it, how could I do to get coc-jedi to support external modules? it works flawless with python own packages

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
pappasamcommented, Aug 27, 2020

You’ve found a bug! That said, there’s a work-around for you to get the functionality you want.

If you don’t want to use a virtualenv but you do want to access code installed in your system’s site-packages, do the following:

  1. Install jedi-language-server system-wide: pip install jedi-language-server
  2. In your coc-settings.json, add the following line: "jedi.executable.command": "jedi-language-server",

Note: if you choose this strategy, you’ll be responsible for installing / updating jedi-language-server on your own.

0reactions
pappasamcommented, Dec 3, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

`ipython` tab autocomplete does not work on imported module
In case anyone is using the recent 7.19.0 and autocomplete does not work, try downgrading jedi to 0.17.2 : pip install jedi==0.17.2.
Read more >
Autocomplete | Python in Visual Studio Code
1. Intellisense/Autocompletion not working for custom modules · Cause: The path to the python executable is incorrect. Solution: Configure the path to the...
Read more >
Autocomplete does not work for a lot of modules #5385 - GitHub
This is very strange, as it all worked perfectly bfore. I always just had Python extension, pylint and pep8. All was fine. And...
Read more >
Fix Python Relative Imports and Auto-completion in VSCode
Additionally, you will learn how to enable auto-completion for Python packages in Visual Studio Code. ⏬ Get my FREE Python Cheat Sheets: ...
Read more >
autocomplete - PyPI
If you're not 5. How to install: pip install autocomplete. How to use: import ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found