Skip to content

Commit 9c14415

Browse files
committed
fix building against sublime 3126
Extra args were added to ExecCommand, so when using them positionally they'd be passed weirdly
1 parent c9728bd commit 9c14415

File tree

1 file changed

+30
-3
lines changed

1 file changed

+30
-3
lines changed

commands/flow_run_build.py

+30-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def run(self, cmd = None, shell_cmd = None, file_regex = "", line_regex = "", wo
1818

1919
try:
2020
if self.proc:
21-
super(FlowRunBuild, self).run(None, kill=True)
21+
super(FlowRunBuild, self).run(kill=True)
2222
except Exception as e:
2323
print("[flow] couldn't kill previous executable: probably it ended > " + str(e))
2424

@@ -42,11 +42,38 @@ def run(self, cmd = None, shell_cmd = None, file_regex = "", line_regex = "", wo
4242

4343
working_dir = _flow_.get_working_dir()
4444

45-
print("[flow] build " + " ".join(cmd))
45+
print("[flow] build: " + " ".join(cmd))
4646

4747
syntax = "Packages/sublime_flow/flow-build-output.tmLanguage"
4848

49-
super(FlowRunBuild, self).run(None, " ".join(cmd), file_regex, line_regex, working_dir, encoding, env, True, kill, word_wrap, syntax, **kwargs)
49+
super(FlowRunBuild, self).run(
50+
cmd= None,
51+
shell_cmd= " ".join(cmd),
52+
file_regex= file_regex,
53+
line_regex= line_regex,
54+
working_dir= working_dir,
55+
encoding= encoding,
56+
env= env,
57+
quiet= False,
58+
kill= kill,
59+
word_wrap= word_wrap,
60+
syntax= syntax,
61+
**kwargs)
62+
63+
#if sublime handled kill properly we could just use this :/
64+
# self.window.run_command('exec', {
65+
# 'shell_cmd': " ".join(cmd),
66+
# 'file_regex': file_regex,
67+
# 'line_regex': line_regex,
68+
# 'working_dir': working_dir,
69+
# 'encoding': encoding,
70+
# 'env': env,
71+
# 'quiet': True,
72+
# 'kill': kill,
73+
# 'word_wrap': word_wrap,
74+
# 'syntax': syntax
75+
# })
76+
5077

5178
def is_enabled(self, kill = False):
5279
return True

0 commit comments

Comments
 (0)