File tree 5 files changed +53
-93
lines changed
frontend/frame-editors/latex-editor
5 files changed +53
-93
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export async function knitr(
65
65
async_stats : true ,
66
66
} ) ;
67
67
if ( output . type !== "async" ) {
68
- throw new Error ( "output is not an async job " ) ;
68
+ throw new Error ( "output: not an async task " ) ;
69
69
}
70
70
set_job_info ( output ) ;
71
71
return output ;
Original file line number Diff line number Diff line change @@ -60,10 +60,6 @@ export async function latexmk(
60
60
throw new Error ( "Unable to spawn LaTeX compile job." ) ;
61
61
}
62
62
63
- if ( job_info . type !== "async" ) {
64
- throw new Error ( "not an async job" ) ;
65
- }
66
-
67
63
// Step 1: Wait for the launched job to finish
68
64
let output : BuildLog ;
69
65
while ( true ) {
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ export async function pythontex(
54
54
path : output_directory || directory ,
55
55
err_on_exit : false ,
56
56
aggregate,
57
+ async_call : true ,
57
58
} ) ;
58
59
59
60
if ( job_info . type !== "async" ) {
Original file line number Diff line number Diff line change @@ -66,13 +66,14 @@ export async function sagetex(
66
66
path : output_directory || directory ,
67
67
err_on_exit : false ,
68
68
aggregate : hash ? { value : hash } : undefined ,
69
+ async_call : true ,
69
70
} ) ;
70
71
71
72
if ( job_info . type !== "async" ) {
72
73
throw new Error ( "not an async job" ) ;
73
74
}
74
75
75
- set_job_info ( job_info )
76
+ set_job_info ( job_info ) ;
76
77
77
78
while ( true ) {
78
79
try {
@@ -83,10 +84,10 @@ export async function sagetex(
83
84
async_stats : true ,
84
85
} ) ;
85
86
if ( output . type !== "async" ) {
86
- throw new Error ( "output type is not async exec" )
87
+ throw new Error ( "output type is not async exec" ) ;
87
88
}
88
- set_job_info ( output )
89
- return output
89
+ set_job_info ( output ) ;
90
+ return output ;
90
91
} catch ( err ) {
91
92
if ( err === TIMEOUT_CALLING_PROJECT ) {
92
93
// this will be fine, hopefully. We continue trying to get a reply.
You can’t perform that action at this time.
0 commit comments