fannheyward / coc-pyright

Pyright extension for coc.nvim
MIT License
1.28k stars 47 forks source link

pyright not using systems python path as default #602

Closed avnotaklu closed 3 years ago

avnotaklu commented 3 years ago

CocCommand pyright.version : 1.1.164 CocCommand workspace.showOutput Pyright

Workspace: /home/ssp/python/imageDownload/pexels
Using python from /home/ssp/python/django/CHANNELS_BACKUP/chat/env/bin/python

[Info  - 9:11:34 am] Pyright language server 1.1.163 starting
[Info  - 9:11:34 am] Server root directory: /home/ssp/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/
[Info  - 9:11:34 am] No configuration file found.
[Info  - 9:11:34 am] No pyproject.toml file found.
[Info  - 9:11:34 am] Setting pythonPath for service "pexels": "/home/ssp/python/django/CHANNELS_BACKUP/chat/env/bin/python"
[Warn  - 9:11:34 am] stubPath /home/ssp/python/imageDownload/pexels/typings is not a valid directory.
[Info  - 9:11:34 am] Unable to get Python version from interpreter
[Info  - 9:11:34 am] Assuming Python platform Linux
[Info  - 9:11:34 am] Searching for source files
[Info  - 9:11:34 am] Found 1 source file

CocConfig

{
    "languageserver": {
        "ccls": {
            "command": "ccls",
            "filetypes": [
                "c",
                "cpp",
                "objc",
                "objcpp"
            ],
            "rootPatterns": [
                ".ccls",
                "compile_commands.json",
                ".vim/",
                ".git/",
                ".hg/"
            ],
            "initializationOptions": {
                "cache": {
                    "directory": "/tmp/ccls"
                },
                "highlight": { "lsRanges" : true }
            }
        }
    },
    "python.pythonPath" : "/usr/bin/python",
    "python.linting.enabled" : true,
    "python.linting.pylintEnabled": true
}
avnotaklu commented 3 years ago

incomplete details accidently submitted