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

Cannot 'Build: Cancel' a build variant #2340

Closed
unilynx opened this issue Jun 1, 2018 · 1 comment
Closed

Cannot 'Build: Cancel' a build variant #2340

unilynx opened this issue Jun 1, 2018 · 1 comment
Labels

Comments

@unilynx
Copy link

unilynx commented Jun 1, 2018


Summary

Since the sublime 3.1 update, I can't cancel builds initiated through a Build - Variant. I can still cancel normal builds. This worked before the update

Expected behavior

CTRL+C (bound to Build: Cancel) cancels a 'Build With: Harescript - Run' (the variant version)

Actual behavior

Nothing happens

Steps to reproduce

The following HareScript.sublime-build file worked with 3.0 and had proper cancellation

{
  "cmd": [ "compile" ],
  "selector": "source.harescript",
  "target": "harescript_build",

  "variants":
  [
    {
      "name": "Run",
      "cmd": [ "wh", "__sublimerun", "${file}" ],
      "file_regex": "^([^:]+):(\\d+):(\\d+): (.*)",
      "working_dir": "${file_path}",
      "target": "exec"
    }
  ]
}

but no longer works with 3.1. Replacing the main build with a variant, eg the version below, does work:

{
  "cmd": [ "wh", "__sublimerun", "${file}" ],
  "selector": "source.harescript",
  "target": "exec"
}

Adding "cancel": {"kill": true}, to either the toplevel or the variant made no difference

Environment

  • Operating system and version:
    • Mac OS 10.13.4
  • Sublime Text:
    • Build 3176
@BenjaminSchaaf
Copy link
Member

I can't reproduce this in build 4160. This has likely been fixed.

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

No branches or pull requests

2 participants