Git Product home page Git Product logo

Comments (10)

gregsadetsky avatar gregsadetsky commented on June 7, 2024 3

Solved it! :-) It's just a matter of adding "cancel": {"kill": true} to the build file!

PR - #14


If you want to fix it in your current version:

  • install PackageResourceViewer
  • open the Tools menu, and select PackageResourceViewer: Open Resource
  • navigate to virtualenv -> Python + Virtualenv.sublime-build
  • in the build file, add "cancel": {"kill": true} (don't forget to add a coma at the end of the line just above, i.e. the selector line)

from sublime-text-virtualenv.

Phuket2 avatar Phuket2 commented on June 7, 2024 1

@gregsadetsky, thanks this worked perfectly for me, I also added "quiet": true

from sublime-text-virtualenv.

tigeryell99 avatar tigeryell99 commented on June 7, 2024

I noticed this too.

from sublime-text-virtualenv.

brupelo avatar brupelo commented on June 7, 2024

Package is great so far... but as commented already few months ago it's not possible to "Cancel build" when running a long execution python script. Anyone found a fix for this?

Thanks.

from sublime-text-virtualenv.

bgromov avatar bgromov commented on June 7, 2024

Any update on this?

from sublime-text-virtualenv.

brupelo avatar brupelo commented on June 7, 2024

I've stopped using this package long time ago but adding a cancel option is just trivial, something like this would probably do:

def run(self, **kwargs):
    if kwargs.get("kill", False):
        return super().run(**kwargs)

Just take a look to ExecCommand to see what that kill arguments means, hope that helps.

from sublime-text-virtualenv.

bgromov avatar bgromov commented on June 7, 2024

@brupelo Thanks! I will have a look.

from sublime-text-virtualenv.

bgromov avatar bgromov commented on June 7, 2024

@gregsadetsky Didn't work for me unfortunately. It gives an error:

__init__() got an unexpected keyword argument 'cancel'

What version of Sublime are you using? I am on v3, build 3143.

from sublime-text-virtualenv.

gregsadetsky avatar gregsadetsky commented on June 7, 2024

@bgromov hmm, strange...! I'm running build 3160

Would you mind trying it in that build and letting me know if that works? Thanks!

from sublime-text-virtualenv.

bgromov avatar bgromov commented on June 7, 2024

@gregsadetsky I am using unregistered version so far, so dev builds are not available for me, at least that's what the official web-site says. Build 3143 is the latest official release.

from sublime-text-virtualenv.

Related Issues (17)

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.