Commit 7450bec9 authored by Jérome Perrin's avatar Jérome Perrin

software/theia: workaround "Output of short-lived tasks is not shown"

This is quite an ugly workaround
parent 5a09b656
......@@ -15,7 +15,7 @@
[instance]
filename = instance.cfg.in
md5sum = 20ed8af8526775d0da936e38f6c68ba0
md5sum = 397fcb3279029af3055b23525d147445
[yarn.lock]
filename = yarn.lock
......
......@@ -247,11 +247,14 @@ rendered = $${directory:bin}/$${:_buildout_section_name_}
mode = 0700
template = inline:
#!${python:location}/bin/python
import sys
import os
import sys
import time
args = sys.argv[1:]
# when running interactively, activate slapos configuration and reset GIT_EXEC_PATH to workaround https://github.com/eclipse-theia/theia/issues/7555
if not args: args = ["-c", ". $${slapos-standalone-activate:rendered} && exec env GIT_EXEC_PATH= ${bash:location}/bin/bash", ]
# otherwise, assume this shell is running task and add an artificial delay to workaround https://github.com/eclipse-theia/theia/issues/2961
else: time.sleep(1)
os.execv('${bash:location}/bin/bash', ['${bash:location}/bin/bash'] + args)
[slapos-standalone-activate]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment