Warning: session_start(): open(/var/lib/php/sessions/sess_vl09f6q2mp6e4gm4g4o43gpg2c, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
sclass TranspileWithErrorWindow {
settable S snippetID;
JFastLogView_noWrap transpilationErrorBox;
settable Runnable transpileAction;
event success;
event error(Throwable error);
/*void transpile {
var tfs = new TranspileForServer_v2(snippetID);
tfs.run();
}*/
public void run aka runMe {
infoBox("Transpiling " + snippetID);
try {
transpileAction.run();
} catch e {
infoBox("Transpilation error. " + e);
awt {
bool first = transpilationErrorBox == null;
transpilationErrorBox = maximizeFrame(scrollAllTheWayDown(showText_fast_noWrap(transpilationErrorBox, "Transpilation Error", renderStackTrace(e))));
if (first) {
setFrameIcon(#1101268, transpilationErrorBox);
addButtonsToWindow(transpilationErrorBox,
jbuttonWithDisable("Medium transpile", r runMe)
);
}
}
error(e);
ret;
}
infoBox("Transpiled OK!");
hideWindow(transpilationErrorBox);
transpilationErrorBox = null;
success();
}
/*selfType coresToUse(int coresToUse) {
tfs.runTranspiler.coresToUse(coresToUse);
this;
}*/
}