I'd like to use the youcompleteme plugin for vim code autocompletion, using the package contained in the vim-youcompleteme package in the Debian 12 main repo. In particular, I want to use it on Python scripts running in virtual environments.
I installed the package via (which replaced my vim.basic with vim.nox via update-alternatives), and activated it in my vimrc adding:
Everything works very fine, besides the case in which I have a Python environment activated: in this case, as soon as vim starts I obtain an error like this:
The stderr log mentioned in the message is empty (I also tried to set in my vimrc but nothing changed).
I checked the youcompleteme documentation and found that the virtual environment case is explicitly treated, so I tried to apply the instructions provided here, but nothing changed. I also tried to play around with the ycm_python_interpreter_path variable testing different python3 binaries, notably I tried to set (just for testing purpose since it would be an horrible solution) but no improvements here too.
Do you have any idea or any suggestion?
Thanks in advance!
I installed the package via
Code:
aptitude install vim-youcompleteme
Code:
packadd youcompleteme
Code:
2024-03-26 21:54:30,895 - ERROR - The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). Unexpected exit code 1. Type ':YcmToggleLogs ycmd_55813_stderr_y3bl9e36.log' to check the logs.
Code:
let g:ycm_server_log_level = 'debug'
I checked the youcompleteme documentation and found that the virtual environment case is explicitly treated, so I tried to apply the instructions provided here, but nothing changed. I also tried to play around with the ycm_python_interpreter_path variable testing different python3 binaries, notably I tried to set
Code:
let g:ycm_python_interpreter_path = '<my_python_venv_path>/bin/python3'
Do you have any idea or any suggestion?
Thanks in advance!
Statistics: Posted by vazaha — 2024-03-26 21:44 — Replies 0 — Views 48