Skip to content

Coc.nvim (coc-pyright) with nvim-remote-containters #18

@0inp

Description

@0inp

Hi !
First of all, thanks a lot for this plugin !

In my case, i'd like to use the remote container of my application to use the exec python inside my container.
Do you know which config I have to change to make it happen ?

:terminal pwd outputs my host directory even after :ComposeUp cmd.
So when i specify the python path of coc-pyright extension, it still use my local python (which doesn't have the app-specific python libs installed)

:CocCommand workspace.showOutput Pyright
Workspace: /Users/stephanepoint/B2CLeadRankingAPI
Using python from python

[Info  - 3:05:31 PM] Pyright language server 1.1.269 starting
[Info  - 3:05:31 PM] Server root directory: /Users/stephanepoint/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/
[Info  - 3:05:31 PM] Starting service instance "B2CLeadRankingAPI"
[Info  - 3:05:31 PM] No configuration file found.
[Info  - 3:05:31 PM] No pyproject.toml file found.
[Warn  - 3:05:31 PM] stubPath /Users/stephanepoint/B2CLeadRankingAPI/typings is not a valid directory.
[Info  - 3:05:31 PM] Assuming Python platform Darwin
[Info  - 3:05:32 PM] Searching for source files
[Info  - 3:05:32 PM] Found 127 source files
:CocConfig
{
    "python.pythonPath": "/usr/local/bin/python"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions