-
大小: 35MB文件類型: .zip金幣: 1下載: 0 次發布日期: 2023-07-17
- 語言: 其他
- 標簽: YouComplete??Me??
資源簡介
官網下的YouCompleteMe,git clong時,會丟包,所以直接對照補全
代碼片段和文件信息
#!/usr/bin/env?python
from?__future__?import?print_function
from?__future__?import?division
from?__future__?import?unicode_literals
from?__future__?import?absolute_import
import?os
import?subprocess
import?sys
import?os.path?as?p
import?glob
PY_MAJOR?PY_MINOR?=?sys.version_info[?0?:?2?]
if?not?(?(?PY_MAJOR?==?2?and?PY_MINOR?>=?6?)?or
?????????(?PY_MAJOR?==?3?and?PY_MINOR?>=?3?)?or
?????????PY_MAJOR?>?3?):
??sys.exit(?‘YouCompleteMe?requires?Python?>=?2.6?or?>=?3.3;?‘
????????????‘your?version?of?Python?is?‘?+?sys.version?)
DIR_OF_THIS_script?=?p.dirname(?p.abspath(?__file__?)?)
DIR_OF_OLD_LIBS?=?p.join(?DIR_OF_THIS_script?‘python‘?)
def?CheckCall(?args?**kwargs?):
??try:
????subprocess.check_call(?args?**kwargs?)
??except?subprocess.CalledProcessError?as?error:
????sys.exit(?error.returncode?)
def?Main():
??build_file?=?p.join(?DIR_OF_THIS_script?‘third_party‘?‘ycmd‘?‘build.py‘?)
??if?not?p.isfile(?build_file?):
????sys.exit(
??????‘File?{0}?does?not?exist;?you?probably?forgot?to?run:\n‘
??????‘\tgit?submodule?update?--init?--recursive\n‘.format(?build_file?)?)
??CheckCall(?[?sys.executable?build_file?]?+?sys.argv[?1:?]?)
??#?Remove?old?YCM?libs?if?present?so?that?YCM?can?start.
??old_libs?=?(
????glob.glob(?p.join(?DIR_OF_OLD_LIBS?‘*ycm_core.*‘?)?)?+
????glob.glob(?p.join(?DIR_OF_OLD_LIBS?‘*ycm_client_support.*‘?)?)?+
????glob.glob(?p.join(?DIR_OF_OLD_LIBS?‘*clang*.*‘)?)?)
??for?lib?in?old_libs:
????os.remove(?lib?)
if?__name__?==?“__main__“:
??Main()
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-07-13?12:24??YouCompleteMe\
?????文件??????????30??2017-07-13?12:24??YouCompleteMe\.coveragerc
?????目錄???????????0??2017-07-13?12:24??YouCompleteMe\.git\
?????目錄???????????0??2017-07-13?12:24??YouCompleteMe\.github\
?????文件????????3299??2017-07-13?12:24??YouCompleteMe\.github\ISSUE_TEMPLATE.md
?????文件?????????809??2017-07-13?12:24??YouCompleteMe\.github\PULL_REQUEST_TEMPLATE.md
?????文件?????????954??2017-07-13?12:24??YouCompleteMe\.gitignore
?????文件?????????224??2017-07-13?12:24??YouCompleteMe\.gitmodules
?????文件?????????476??2017-07-13?12:24??YouCompleteMe\.git\config
?????文件??????????73??2017-07-13?12:24??YouCompleteMe\.git\desc
?????文件??????????23??2017-07-13?12:24??YouCompleteMe\.git\HEAD
?????目錄???????????0??2017-07-13?12:24??YouCompleteMe\.git\hooks\
?????文件?????????478??2017-07-13?12:24??YouCompleteMe\.git\hooks\applypatch-msg.sample
?????文件?????????896??2017-07-13?12:24??YouCompleteMe\.git\hooks\commit-msg.sample
?????文件?????????189??2017-07-13?12:24??YouCompleteMe\.git\hooks\post-update.sample
?????文件?????????424??2017-07-13?12:24??YouCompleteMe\.git\hooks\pre-applypatch.sample
?????文件????????1642??2017-07-13?12:24??YouCompleteMe\.git\hooks\pre-commit.sample
?????文件????????1348??2017-07-13?12:24??YouCompleteMe\.git\hooks\pre-push.sample
?????文件????????4951??2017-07-13?12:24??YouCompleteMe\.git\hooks\pre-reba
?????文件?????????544??2017-07-13?12:24??YouCompleteMe\.git\hooks\pre-receive.sample
?????文件????????1239??2017-07-13?12:24??YouCompleteMe\.git\hooks\prepare-commit-msg.sample
?????文件????????3610??2017-07-13?12:24??YouCompleteMe\.git\hooks\update.sample
?????文件????????9887??2017-07-13?12:24??YouCompleteMe\.git\index
?????目錄???????????0??2017-07-13?12:24??YouCompleteMe\.git\info\
?????文件?????????240??2017-07-13?12:24??YouCompleteMe\.git\info\exclude
?????目錄???????????0??2017-07-13?12:24??YouCompleteMe\.git\logs\
?????文件?????????198??2017-07-13?12:24??YouCompleteMe\.git\logs\HEAD
?????目錄???????????0??2017-07-13?12:24??YouCompleteMe\.git\logs\refs\
?????目錄???????????0??2017-07-13?12:24??YouCompleteMe\.git\logs\refs\heads\
?????文件?????????198??2017-07-13?12:24??YouCompleteMe\.git\logs\refs\heads\master
?????目錄???????????0??2017-07-13?12:24??YouCompleteMe\.git\logs\refs\remotes\
............此處省略5660個文件信息
評論
共有 條評論