Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
0inp opened this issue Sep 5, 2022 · 1 comment
Open

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

0inp opened this issue Sep 5, 2022 · 1 comment

Comments

@0inp
Copy link

0inp commented Sep 5, 2022

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"
}
@jamestthompson3
Copy link
Owner

Thanks for opening an issue! Currently, this plugin is only orchestrating docker containers from inside neovim. For a plugin that actually embeds the neovim instance inside your running docker container, I would check out: https://github.com/esensar/nvim-dev-container, as I'm not doing a lot of active maintenance on this plugin currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants