{"id":92418,"date":"2020-03-08T12:46:31","date_gmt":"2020-03-08T04:46:31","guid":{"rendered":"http:\/\/4563.org\/?p=92418"},"modified":"2020-05-20T04:41:32","modified_gmt":"2020-05-19T20:41:32","slug":"cocinstall-coc-python-%e9%94%99%e8%af%af","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=92418","title":{"rendered":"CocInstall coc- Python \u9519\u8bef"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  CocInstall coc- Python \u9519\u8bef               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : octalempyrean <\/span>  <span><i><\/i> 61<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>Coc \u5bf9 python \u8bed\u8a00\u7684\u652f\u6301\u6269\u5c55\u600e\u4e48\u5b89\u88c5\u554a\uff0c\u770b\u4e86\u4e0b wiki\uff0c\u6709\u70b9\u8ff7\u7cca\uff0c\u662f\u6211\u7b28\u3002<\/p>\n<ol>\n<li>\u8bed\u8a00\u670d\u52a1\u5668\u7684\u4ee3\u7801\u662f\u8981\u590d\u5236\u81f3 CocConfig \u6587\u4ef6\u4e2d\u4e48\uff1f<\/li>\n<li>\u5df2\u7ecf\u5b89\u88c5\u4e86 pip3 install &#8216;python-language-server[all]&#8217;\u4e86\u3002<\/li>\n<li>\u5f53\u5728 VIM \u4e2d\u6267\u884c CocInstall coc-python \u7684\u65f6\u5019\u51fa\u73b0\u9519\u8bef\u2026\u2026\uff0c\u9519\u8bef\u63d0\u793a\u89c1\u4e0b\u56fe\u3002<\/li>\n<li>\u5c06\u4e0b\u9762\u4ee3\u7801\u653e\u5230 CocCofig \u6587\u4ef6\u4e2d VIM \u542f\u52a8\u65f6\u6709\u9519\u8bef\u63d0\u793a\u3002<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/3bbc1260ee09232499ff53320bc81b14.png\" alt=\"CocInstall coc- Python \u9519\u8bef\" \/> <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/ad2f49f20778773d8d54ad42ac5a1e4e.png\" alt=\"CocInstall coc- Python \u9519\u8bef\" \/> <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/95641c05d265df48a8a0cf25dc74ec6b.png\" alt=\"CocInstall coc- Python \u9519\u8bef\" \/><\/p>\n<p>Example with python-language-server \u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code>\"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           }         }       }     }   } } <\/code><\/pre>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>5<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"946170\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : octalempyrean <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u56fe 2 \u6302\u4e86<br \/>https:\/\/img04.sogoucdn.com\/app\/a\/100520146\/ad2f49f20778773d8d54ad42ac5a1e4e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"946171\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : PTLin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u7528 CocConfig \u7279\u610f\u914d\u7f6e ls\uff0c\u6211\u76f4\u63a5\u5b89\u88c5\u5b8c\u63d2\u4ef6\u5c31\u80fd\u7528\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"946172\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yuuko <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u914d\u7f6e\u6587\u4ef6\u662f\u4e2a json\uff0c\u68c0\u67e5\u4e0b\u683c\u5f0f\u5bf9\u4e0d\u5bf9                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"946173\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : luassuns <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             CocCofig \u7684 josn \u6700\u5916\u9762\u8fd8\u8981\u5957\u4e00\u4e2a {} \uff0c\u5982\u679c\u7528\u4e86 coc-python \u5c31\u4e0d\u7528\u914d\u7f6e CocConfig \u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"946174\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : octalempyrean <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @luassuns \u55ef\uff0c\u5982\u679c\u914d\u7f6e CocConfig \u9700\u8981\u6267\u884c CocInstall coc-python \u4e48\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>CocInstall coc- P&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/92418"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=92418"}],"version-history":[{"count":1,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/92418\/revisions"}],"predecessor-version":[{"id":92422,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/92418\/revisions\/92422"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=92418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=92418"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=92418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}