We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd68869 commit a659034Copy full SHA for a659034
tern.py
@@ -168,16 +168,17 @@ def server_port(project, ignored=None):
168
return (started, False)
169
170
def start_server(project):
171
+ global tern_command
172
if not tern_command: return None
173
if time.time() - project.last_failed < 30: return None
174
env = None
175
if platform.system() == "Darwin":
176
env = os.environ.copy()
177
env["PATH"] += ":/usr/local/bin"
-
178
+
179
if not isinstance(tern_command, list):
180
tern_command = [tern_command]
181
182
proc = subprocess.Popen(tern_command + tern_arguments, cwd=project.dir, env=env,
183
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
184
stderr=subprocess.STDOUT, shell=windows)
0 commit comments