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

Errors While Loading Plugin in Vim #4246

Open
abdelmaged opened this issue Jul 11, 2024 · 4 comments
Open

Errors While Loading Plugin in Vim #4246

abdelmaged opened this issue Jul 11, 2024 · 4 comments

Comments

@abdelmaged
Copy link

After successful build of ycm, and trying to load the plugin into vim (version 9) using ":packadd YouCompleteMe", I'm getting following error:

Error detected while processing ~/vim/pack/YouCompleteMe/opt/YouCompleteMe/plugin/youcompleteme.vim[301]..function youcompleteme#Enable[44]..<SNR>25_SetUpPython:
line   57:
Traceback (most recent call last):
  File "<string>", line 3, in <module>
  File "~/bin/python/3.12.4/lib/python3.12/traceback.py", line 745
    f'Ignored error getting __notes__: {_safe_string(e, '__notes__', repr)}']
                                                         ^^^^^^^^^
SyntaxError: f-string: unmatched '('
Error detected while processing ~/.vim/pack/YouCompleteMe/opt/YouCompleteMe/plugin/youcompleteme.vim[301]..function youcompleteme#Enable:
line   50:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'ycm_semantic_highlighting' is not defined
line   51:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'ycm_inlay_hints' is not defined
E858: Eval did not return a valid python object
line   80:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'vimsupport' is not defined
E858: Eval did not return a valid python object
Press ENTER or type command to continue
Error detected while processing function <SNR>25_PollServerReady:
line    1:
Traceback (most recent call last):

OS Version = Centos 7.9

@abdelmaged
Copy link
Author

Fixed when using vsim + python version 3.10.14 instead of python 3.12.4

@puremourning
Copy link
Member

Ick. Sounds like we have a bug with py 3.12 maybe.

@abdelmaged
Copy link
Author

I think the problem could be in vim itself rather than ycm. Issue appears when using importing traceback on vim without ycm.
I've opened this issue on vim vim/vim#15212

@bstaletic
Copy link
Collaborator

I have been running YCM on python 3.12 for a while withoutissues.

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

3 participants