Comments (13)
I would also appreciate guidance about how to use MPLS within coc.nvim. Any tips?
from coc-pyls.
@shawnohare @sloria I've got this working.
This is my coc-settings.json:
{
"coc.preferences.triggerSignatureHelp": true,
"languageserver":{
"MPLS":{
"command": "dotnet",
"args": ["exec", "/home/fcf/microsoft-lsp/python-language-server/output/bin/Release/Microsoft.Python.LanguageServer.dll"],
"filetypes": ["python"],
"initializationOptions": {
"interpreter": {
"properties": {
"InterpreterPath": "/home/fcf/anaconda3/envs/pesquisas/bin/python",
"UseDefaultDatabase": true,
"Version": "3.6.7"
}
}
}
},
}
}
and this is my settings.json (to be used by LanguageClient-neovim):
{
"enabled": true,
"initializationOptions": {
"displayOptions": {
"preferredFormat": "plaintext",
"trimDocumentationLines": true,
"maxDocumentationLineLength": 0,
"trimDocumentationText": true,
"maxDocumentationTextLength": 0
},
"interpreter": {
"properties": {
"InterpreterPath": "/home/fcf/anaconda3/envs/pesquisas/bin/python3",
"UseDefaultDatabase": true,
"Version": "3.6.7"
}
}
}
from coc-pyls.
Thanks @felipefariax . That's very helpful. I might give that a shot if I have extra time, but more likely I'll wait until a proper COC extension is available.
from coc-pyls.
Yup, i do.
I vaguely remember using/downgrading to pyls of 0.20 version or 0.20.1
from coc-pyls.
Because I don't want to waste time with issues that pyls doesn't fix for a long time.
Use MPLS instead.
from coc-pyls.
How difficult would it be to utilize MPLS within coc? I'm not aware of any other clients using MPLS outside of VS Code and Visual Studio. The MPLS repo does contain https://github.com/Microsoft/python-language-server/blob/master/Using_in_sublime_text.md for using and autozimu/LanguageClient-neovim#633 has some discussion, but I'm not sure how relevant these discussions are.
from coc-pyls.
Quick question,
I am using MPLS now and I think I got it working. In my autocomplete, I see entries that end in [LS]. This means that the language server is working, right?
Second, I have seen a strange behavior. In my code when I make a list:
list2 = [1, 2, 3]
and I type:
list2.
, I expect an autocomplete list to pop up showing some operations I can do such as: append(), delete(),
https://i.imgur.com/ILdOJwE.png
However, when I do import math
and I type:
math.
, I DO see operations like cosx(), tan(), cos() all ending with [LS]:
https://i.imgur.com/swPqGO4.png
Any ideas why this is?
My :CocConfig is as follows:
"MPLS": {
"command": "dotnet",
"args": ["exec", "/Users/esn89/python-language-server/output/bin/Debug/Microsoft.Python.LanguageServer.dll"],
"filetypes": ["python"],
"initializationOptions": {
"interpreter": {
"properties": {
"InterpreterPath": "/usr/local/bin/python",
"UseDefaultDatabase": true,
"Version": "2.7.15"
}
}
}
}
from coc-pyls.
@felipefariax
By the way, which git tagged version of mpls are you using?
from coc-pyls.
MPLS seems to be very finicky and requires aid from client to find the right interpreter and search paths. Quite annoying. coc-pyls
is much easier to use.
from coc-pyls.
I agree, I have spent a week trying to get it working to no avail.
from coc-pyls.
git describe --tags
2018.12.1-1-g7ec9561
git log
commit 7ec9561deeb1b53cb3e24e996a5229a1015fe886 (HEAD -> master, origin/master, origin/HEAD)
Author: Mikhail Arkhipov [email protected]
Date: Fri Jan 18 11:47:48 2019 -0800
from coc-pyls.
Thank you, I will try it again.
from coc-pyls.
@esn89 Did you ever fix the completion issue you were having? I'm seeing the same strange behavior.
from coc-pyls.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coc-pyls.