Giter Site home page Giter Site logo

Comments (6)

gzbd avatar gzbd commented on April 28, 2024 1

Hi,

Sorry for commenting on a closed issue, but to use pipenv generated virtualenv in your project simply run the GDBStartPDB command like:
:GDBStartPDB pipenv run python -m pdb main.py

and your modules from virtualenv will be importable in debugging session :)

from nvim-gdb.

sakhnik avatar sakhnik commented on April 28, 2024

That's strange. Technically, the python interpreter is spawned with execlp, which behaves similarly to the shell. If the full path is specified, that specific executable should be launched. And I can't reproduce your issue, sorry.

from nvim-gdb.

stellarhoof avatar stellarhoof commented on April 28, 2024

To reproduce:

  1. Make a new pipenv project with PIPENV_VENV_IN_PROJECT=1
  2. Install a library not present in your system's python
  3. Import it from a file and try to debug that

from nvim-gdb.

sakhnik avatar sakhnik commented on April 28, 2024

I've never worked with pipenv. Could you please give me a detailed list of specific commands just like for a dummy? For example:

  • cd /tmp; mkdir proj && cd proj
  • PIPENV_VENV_IN_PROJECT=1 pipenv <whatever>
  • ...

from nvim-gdb.

stellarhoof avatar stellarhoof commented on April 28, 2024

Pipenv integrates virtualenv and python dependency tracking. If you have a python project with a requirements.txt, pipenv will pick that up automatically on pipenv install. PIPENV_VENV_IN_PROJECT=1 makes it so that it will create the virutal environment folder in the project's directory. You just have to git clone any python repo and pipenv install inside. I hope this clarifies.

from nvim-gdb.

sakhnik avatar sakhnik commented on April 28, 2024

I'm afraid, I still can't reproduce the issue. I installed python 2.7.15 into ~/.pyenv and test/pyenv, and both work as expected. It must be something specific to your OS.
https://asciinema.org/a/218897

from nvim-gdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.