Closed MrHoseongLee closed 4 years ago
I have the following in my coc-settings.json and it works for me, maybe give it a try?
{
"python.jediEnabled": false
}
@MrHoseongLee Could you try to add surrounding { }
to your coc-settings.json file ?
Should be {"python":{ "jediEnabled": true, "autoUpdateLanguageServer": false }}
Your "python":{ "jediEnabled": true, "autoUpdateLanguageServer": false }
is actually invalid json, according to JSON Beautifier & Validator by DuckDuckGo.
@dsupru Sorry for the late response. Actually the full coc-setting.json file was
{
"languageserver": {
"ccls": {
"command": "ccls",
"filetypes": ["c", "cpp", "objc", "objcpp", "cuda"],
"rootPatterns": [".ccls", "compile_commands.json", ".vim/", ".git/", ".hg/"],
"initializationOptions": {
"cache": {
"directory": "/tmp/ccls"
}
}
},
"latex": {
"command": "/home/hoseong/.config/coc/extensions/coc-texlab-data/texlab",
"ignoredRootPaths": ["~"],
"filetypes": ["tex", "bib", "plaintex", "context"],
"build.executable": "pdflatex"
},
"javascript.suggestionActions.enabled": false,
"python": {
"jediEnabled": true,
"autoUpdateLanguageServer": false
}
}
}
I resolved the issue by putting the python setting outside of the languageserver.
{
"languageserver": {
"ccls": {
"command": "ccls",
"filetypes": ["c", "cpp", "objc", "objcpp", "cuda"],
"rootPatterns": [".ccls", "compile_commands.json", ".vim/", ".git/", ".hg/"],
"initializationOptions": {
"cache": {
"directory": "/tmp/ccls"
}
}
},
"latex": {
"command": "/home/hoseong/.config/coc/extensions/coc-texlab-data/texlab",
"ignoredRootPaths": ["~"],
"filetypes": ["tex", "bib", "plaintex", "context"],
"build.executable": "pdflatex"
},
"javascript.suggestionActions.enabled": false
},
"python": {
"filetypes": ["python"],
"jediEnabled": true,
"autoUpdateLanguageServer": false
}
}
"python":{ "jediEnabled": true, "autoUpdateLanguageServer": false }
This is my coc-settings.json file. I have jedi 0.17.0 installed. However, when I open a .py file and type:CocInfo
it shows that MPLS is starting. How can I use jedi?