Skip to content

Commit 89ffca7

Browse files
committed
Set --vanilla to prevent cli's task callback
This task callback was causing intermittent unexpected output: https://github.com/r-lib/cli/blob/1220ed092c03e167ff0062e9839c81d7258a4600/R/onload.R#L33-L40 Note that `istty(stdout())` is `TRUE` in these tests even though it's `FALSE` in Positron. That's likely because we don't redirect stdout, see https://github.com/posit-dev/ark/blob/main/crates/amalthea/src/sys/unix/stream_capture.rs#L39-L42 For clarity and consistency with the regular path, we also set `--interactive`
1 parent 801c801 commit 89ffca7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

crates/ark/src/fixtures/dummy_frontend.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ impl DummyArkFrontend {
4545
stdext::spawn!("dummy_kernel", || {
4646
crate::start::start_kernel(
4747
connection_file,
48-
vec![String::from("--no-save"), String::from("--no-restore")],
48+
vec![
49+
String::from("--interactive"),
50+
String::from("--vanilla"),
51+
String::from("--no-save"),
52+
String::from("--no-restore"),
53+
],
4954
None,
5055
SessionMode::Console,
5156
false,

0 commit comments

Comments
 (0)