davidhalter / davidhalter/jedi-vim
Vim hangs when working on files with fastai import
- Dominant language
- Python
- Stars
- 5.3k
- Forks
- 369
- PR merge metrics
- No merged PRs in 30d
Description
When I work on Python files that contain imports from the fast.ai library vim freezes for a long time. This only happens when the jedi-vim plugin is enabled.
The issue was already discussed [here](https://github.com/davidhalter/jedi/issues/1721), [here](https://githubmemory.com/repo/pappasam/jedi-language-server/issues/57) and [here](https://www.reddit.com/r/neovim/comments/lqtak6/how_to_set_a_coc_setting_for_jedi_language_server/).
The solution apparently is to add `"jedi.jediSettings.autoImportModules": ["fastai", "fastcore"],` to the coc config. Running `:CocConfig` doesn't work for me and it's unclear to me where I have to put the Lua code that was posted.
Is there any code/config-option that I can paste directly into my vimrc?
Contributor guide
Research direction
Start with the reported fastai and fastcore imports, the jedi-vim setting, and the vimrc, then compare them with the CocConfig command and the referenced Lua configuration. Done means documenting or exposing a configuration that can be pasted into vimrc and prevents the freeze when jedi-vim is enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, vim
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100