2021-11-09

崩溃日志

1 spacevim 安装 youcompleteme

官方教程-自动补全方式link
打开配置文件 (/home/gao/.SpaceVim.d/init.toml)

space(空格键) + f + v + d

加入:

[[layers]]
  name = "autocomplete"

[options]
    autocomplete_method = "ycm"

退出重进spacevim,失败,显示安装出错,找不到ycmd。
找到教程“使用spacevim安装youcompleteme”,编译youcompleteme。link
重新打开init.toml,加入:

[[custom_plugins]]
	name="Valloric/YouCompleteMe"
	merge=0

重启spacevim,打开home/gao/.cache/vimfiles/repos/github.com/Valloric/YouCompleteMe/doc/youcompleteme.txt。搜索ubuntu安装教程,安装,失败,出现nodejs:conflicts:npm。重新安装npm失败。解决方法:

sudo apt-get install aptitude
sudo aptitude install npm

只安装c++相关模块

python3 install.py --clangd-completer

失败,提示要先运行:·

git submodule update --init --recursive

clangd因网速太慢,下载失败,手动安装link
根据失败时terminal提供的下载链接下载clangd安装包,将其移动至home/gao/.cache/vimfiles/repos/github.com/Valloric/YouCompleteMe/third_party/ycmd/third_party/clangd/cache文件夹下,重新运行install.py,编译成功。
.SpaceVim.d文件夹下并没有autoload,重新创建的也不知道有用没,反正没报错。

有找了一个官方教程,这个好简单的样子link

"   Step 1: Add `let g:spacevim_enable_ycm = 1` to custom_config. By default
"   it should be `~/.SpaceVim.d/init.vim`.
"
"   Step 2: Get into the directory of YouCompleteMe's author. By default it
"   should be `~/.cache/vimfiles/repos/github.com/Valloric/`. If you find the
"   directory `YouCompleteMe` in it, go into it. Otherwise clone
"   YouCompleteMe repo by
"   `git clone https://github.com/Valloric/YouCompleteMe.git`. After cloning,
"   get into it and run `git submodule update --init --recursive`.
"
"   Step 3: Compile YouCompleteMe with the features you want. If you just want
"   C family support, run `./install.py --clang-completer`.

2 spacevim 花括号换行自动缩进

来源:link
更改init.toml

auto-completion-return-key-behavior = "smart"

3 用不了的cmake-gui

重新编译opencv的时候参考了博客link
下载了cmake-qt-gui,双击build目录下的CMakeCache.txt可以直接用gui的形式打开文件,可以查看各项配置的名字,更改默认配置的value,但是无法generate,好像是权限的问题,暂时不知道如何解决。但是这个东西可以用来查看可选配置的名字。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值