@@ -18,7 +18,7 @@ def run(self, cmd = None, shell_cmd = None, file_regex = "", line_regex = "", wo
18
18
19
19
try :
20
20
if self .proc :
21
- super (FlowRunBuild , self ).run (None , kill = True )
21
+ super (FlowRunBuild , self ).run (kill = True )
22
22
except Exception as e :
23
23
print ("[flow] couldn't kill previous executable: probably it ended > " + str (e ))
24
24
@@ -42,11 +42,38 @@ def run(self, cmd = None, shell_cmd = None, file_regex = "", line_regex = "", wo
42
42
43
43
working_dir = _flow_ .get_working_dir ()
44
44
45
- print ("[flow] build " + " " .join (cmd ))
45
+ print ("[flow] build: " + " " .join (cmd ))
46
46
47
47
syntax = "Packages/sublime_flow/flow-build-output.tmLanguage"
48
48
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
+
50
77
51
78
def is_enabled (self , kill = False ):
52
79
return True
0 commit comments