CocInstall coc- Python 错误 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
octalempyrean
V2EX    Vim

CocInstall coc- Python 错误

  •  
  •   octalempyrean 2020-01-29 16:22:44 +08:00 4158 次点击
    这是一个创建于 2128 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Coc 对 python 语言的支持扩展怎么安装啊,看了下 wiki,有点迷糊,是我笨。

    1. 语言服务器的代码是要复制至 CocConfig 文件中么?
    2. 已经安装了 pip3 install 'python-language-server[all]'了。
    3. 当在 VIM 中执行 CocInstall coc-python 的时候出现错误……,错误提示见下图。
    4. 将下面代码放到 CocCofig 文件中 VIM 启动时有错误提示。

    1.jpg 2.jpg 3.jpg

    Example with python-language-server 代码如下:

    "languageserver": { "python": { "command": "python", "args": [ "-mpyls", "-vv", "--log-file", "/tmp/lsp_python.log" ], "trace.server": "verbose", "filetypes": [ "python" ], "settings": { "pyls": { "enable": true, "trace": { "server": "verbose" }, "commandPath": "", "configurationSources": [ "pycodestyle" ], "plugins": { "jedi_completion": { "enabled": true }, "jedi_hover": { "enabled": true }, "jedi_references": { "enabled": true }, "jedi_signature_help": { "enabled": true }, "jedi_symbols": { "enabled": true, "all_scopes": true }, "mccabe": { "enabled": true, "threshold": 15 }, "preload": { "enabled": true }, "pycodestyle": { "enabled": true }, "pydocstyle": { "enabled": false, "match": "(?!test_).*\\.py", "matchDir": "[^\\.].*" }, "pyflakes": { "enabled": true }, "rope_completion": { "enabled": true }, "yapf": { "enabled": true } } } } } } 
    6 条回复    2020-02-18 01:44:51 +08:00
    octalempyrean
        1
    octalempyrean  
    OP
       2020-01-29 16:35:33 +08:00
    PTLin
        2
    PTLin  
       2020-01-29 17:34:53 +08:00
    不用 CocConfig 特意配置 ls,我直接安装完插件就能用了。
    yuuko
        3
    yuuko  
       2020-01-29 20:55:22 +08:00 via Android
    配置文件是个 json,检查下格式对不对
    luassuns
        4
    luassuns  
       2020-01-30 14:27:01 +08:00
    CocCofig 的 josn 最外面还要套一个 {} ,如果用了 coc-python 就不用配置 CocConfig 了。
    octalempyrean
        5
    octalempyrean  
    OP
       2020-01-30 15:59:15 +08:00 via Android
    @luassuns 嗯,如果配置 CocConfig 需要执行 CocInstall coc-python 么?
    yiningyang1228
        6
    yiningyang1228  
       2020-02-18 01:44:51 +08:00
    可以试试在 CocConfig 只添加
    ```
    {
    "python.jediEnabled": false,
    }
    ```

    ,然后直接 CocInstall coc-python。
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     5192 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 26ms UTC 08:55 PVG 16:55 LAX 00:55 JFK 03:55
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86