updated readmes for ycm

This commit is contained in:
ronny abraham 2024-08-25 20:13:46 +03:00
parent eeba5c5bae
commit b02085e5f0

View file

@ -0,0 +1,37 @@
# YCM Setup with Python 3.11.9
## Overview
Due to issues with getting YCM (YouCompleteMe) to work with Python 3.12, it's recommended to create all virtual environments using Python version 3.11.9. This guide will walk you through setting up YCM with Python 3.11.9.
## Creating a Virtual Environment
To create a virtual environment using Python 3.11.9, run the following command:
```bash
mkvirtualenv -p $(pyenv which python3.11) environment_name
```
Replace environment_name with your desired virtual environment name.
## Recompiling YCM
If you encounter issues with YCM, you may need to recompile it. Follow these steps:
```
cd ~/.vim/bundle/YouCompleteMe
git pull origin master
python3 install.py --all
```
This will pull the latest changes from the YCM repository and recompile it with the necessary support.
## Setting Up YCM
To configure YCM for your project, create a .ycm_extra_conf.py file in the root directory of your project. The file should contain the following Python code:
```python
def Settings(**kwargs):
return {
'interpreter_path': "/Users/ronny/.virtualenvs/PROJECT_NAME/bin/python"
}
```