## versions
vim version: NVIM v0.3.8
node version: v10.16.0
coc.nvim version: 0.0.73-baa3b1f169
term: undefined
platform: darwin
## Messages
1 change; before #1 1 seconds ago
[coc.nvim] Selection range provider not found for current document
## Output channel: snippets
[Info - 11:10:41 AM] watchman watching project: /Users/allendang/.config/coc/ultisnips
[Info - 11:10:41 AM] subscribing "**/*.snippets" in /Users/allendang/.config/coc/ultisnips
## Output channel: highlight
[Info - 11:10:42 AM] Highlight server running in node v10.16.0
## Output channel: Python
Starting Microsoft Python language server.
[Info - 11:10:51 AM] Analysis cache path: /Users/allendang/Library/Caches/Microsoft/Python Language Server
[Info - 11:10:51 AM] GetCurrentSearchPaths /Users/allendang/pyenv_wx/bin/python
[Info - 11:10:51 AM] Interpreter search paths:
[Info - 11:10:51 AM] /private/var/folders/y0/ghys9qvn4c7cykcv61jhb__r0000gn/T/yuy1lbjr.jf1
[Info - 11:10:51 AM] /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
[Info - 11:10:51 AM] /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload
[Info - 11:10:51 AM] /Users/allendang/pyenv_wx/lib/python3.7/site-packages
[Info - 11:10:51 AM] User search paths:
[Info - 11:10:52 AM] Microsoft Python Language Server version 0.3.20.0
[Info - 11:10:52 AM] Initializing for /Users/allendang/pyenv_wx/bin/python
##########Linting Output - flake8##########
## Output channel: watchman
[Info - 11:10:50 AM] watchman watching project: /Users/allendang/Documents/Gocode/src/echo-manager/app/sqlpower
[Info - 11:10:50 AM] subscribing "/Users/allendang/Documents/Gocode/src/echo-manager/app/sqlpower/.env" in /Users/allendang/Documents/Gocode/src/echo-manager/app/sqlpower
[Info - 11:10:50 AM] subscribing "*/python" in /Users/allendang/Documents/Gocode/src/echo-manager/app/sqlpower
[Info - 11:10:50 AM] subscribing "*/*/python" in /Users/allendang/Documents/Gocode/src/echo-manager/app/sqlpower
[Info - 11:10:52 AM] subscribing "*/python" in /Users/allendang/Documents/Gocode/src/echo-manager/app/sqlpower
[Info - 11:10:52 AM] subscribing "*/*/python" in /Users/allendang/Documents/Gocode/src/echo-manager/app/sqlpower
Press Tab in a python file, error message "Selection range provider not found for current document"
How can I make this work?
You can't, no such feature with coc-python for now.
Should the example config be changed then? It explicitly references coc-python when creating the mapping:
" Use <tab> for select selections ranges, needs server support, like: coc-tsserver, coc-python
nmap <silent> <TAB> <Plug>(coc-range-select)
xmap <silent> <TAB> <Plug>(coc-range-select)
xmap <silent> <S-TAB> <Plug>(coc-range-select-backword)
Is this also the case for coc-tsserver?
It's comment
Yes but the comment is confusing. Based based on this comment I expect coc-range-select to work in coc-tsserver but it doesn't. I'm not sure if this is because there's a problem with my setup or if the comment is bad.
What's wrong with that comment?
Range select should just work with correct keymapping, so it should be problem of your configuration.
You can't, no such feature with coc-python for now.
" Use
for select selections ranges, needs server support, like: coc-tsserver, coc-python
Your comment in this thread and the comment in the example config are saying the opposite.
Readme is wrong, coc-python doesn't have selections ranges support.
I've just falled into the same confusion today, so I guess the readme is still wrong?
Most helpful comment
Readme is wrong, coc-python doesn't have selections ranges support.