Skip to content

Use pyenv to find executable only if pyenv is installed and a local shim exists for the cwd #839

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gamboz
Copy link
Contributor

@gamboz gamboz commented Mar 27, 2025

I have a problem similar to that discussed in #126 i.e. I have pyenv installed, but I'm working on pyvenv environment with no pyenv "local" application-specific Python version for the current project / cwd.

Here is a "this-works-for-me" change that lets dap-mode use pyenv only if pyenv local returns something different than "pyenv: no local version configured for this directory"

Unfortunately I'm not expert enough to be sure that what I'm proposing here is always a good solution, so please feel very free to close this PR 🙂

@gamboz gamboz force-pushed the feature/issue-126__pyenv-no-local branch from c05a5ce to 76ffaf5 Compare March 27, 2025 14:19
@gamboz gamboz marked this pull request as ready for review March 27, 2025 14:21
@gamboz gamboz force-pushed the feature/issue-126__pyenv-no-local branch from 76ffaf5 to f96ae9f Compare April 23, 2025 08:42
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

Successfully merging this pull request may close these issues.

1 participant