Giter Site home page Giter Site logo

Comments (9)

pwalsh avatar pwalsh commented on May 22, 2024

Hi there @brettatoms

This commit was a fix for such. race condition cee6bc5

Can you please let me know which version of pipenv.el you are running?

from pipenv.el.

brettatoms avatar brettatoms commented on May 22, 2024

I am running the latest in melpa which is commit 8298dae

from pipenv.el.

weepingcheese avatar weepingcheese commented on May 22, 2024

Hey @pwalsh, thanks for pipenv.el!

I have been experiencing the race condition/hang on activate as well, happening about 1/10 times. It looks like I'm on 8298dae as well (spacemacs develop branch). I was able to make it happen consistently by reducing the sit-for time in the pipenv--force-wait function from 0.1 to 0.01. Increasing to 1.0 or whatever (making it very large doesn't seem to have any adverse effect... the sit-for returns when the process finishes, maybe?) seemed to make the race condition less likely to occur.

But that was all on my work computer (maybe relevant that it is OSX, but not at all sure). Now I'm home I can't reproduce the hang.

from pipenv.el.

 avatar commented on May 22, 2024

I encountered this bug as well

from pipenv.el.

pwalsh avatar pwalsh commented on May 22, 2024

hey @SirJls can you provide some details on when this occurs.

from pipenv.el.

brettatoms avatar brettatoms commented on May 22, 2024

@pwalsh This happens to me almost daily. It usually seems to happen when I switch between files in different projects with different pipenv environments so pipenv.el as activated when the projectile project changes. Usually I can hit Ctrl-G to cancel it and then call pipenv-activate directly and it works fine. But it doesn't happen every time so it seems like a race condition.

from pipenv.el.

pwalsh avatar pwalsh commented on May 22, 2024

@brettatoms cool. I've tried to reproduce with tests and in usage myself and have not. I will look at it when I can, but also happy for contributions.

from pipenv.el.

brettatoms avatar brettatoms commented on May 22, 2024

@pwalsh If I can come up with a reliable fix I'll definitely submit a PR. Also, I'm using Spacemacs development branch if that helps anyone else reproduce the problem.

from pipenv.el.

pwalsh avatar pwalsh commented on May 22, 2024

#45

from pipenv.el.

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.