Skip to content

Commit 65d3294

Browse files
committed
debug
1 parent 9fabf29 commit 65d3294

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

packages/cli/binding/src/cli.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -668,9 +668,9 @@ pub async fn main<
668668
oxlint_config_path.as_path().to_string_lossy().into_owned(),
669669
]);
670670
}
671-
println!("Before lint");
671+
eprintln!("Before lint");
672672
let summary = lint(lint_fn, &workspace, args).await?;
673-
println!("After lint: {:?}", summary);
673+
eprintln!("After lint: {:?}", summary);
674674
workspace.unload().await?;
675675
summary
676676
}
@@ -966,13 +966,15 @@ pub async fn main<
966966

967967
let execution_summary_dir = EXECUTION_SUMMARY_DIR.as_path();
968968
if let Some(current_execution_id) = &*CURRENT_EXECUTION_ID {
969+
eprintln!("inner runner");
969970
// We are in the inner runner, writing summary to EXECUTION_SUMMARY_DIR
970971
let summary_path = execution_summary_dir.join(current_execution_id);
971972
let summary_json = serde_json::to_string_pretty(&summary)?;
972973
std::fs::write(summary_path, summary_json)?;
973974
} else {
974975
// We are in the outer runner, restoring summaries from EXECUTION_SUMMARY_DIR
975976
loop {
977+
eprintln!("outer runner loop");
976978
// keep trying to restore until no more summaries can be restored
977979
let mut next_restored_statuses: Vec<ExecutionStatus> = vec![];
978980
let mut has_newly_restored = false;
@@ -991,7 +993,7 @@ pub async fn main<
991993
break;
992994
}
993995
}
994-
996+
eprintln!("outer runner done");
995997
let _ = std::fs::remove_dir_all(execution_summary_dir);
996998
if matches!(&args.commands, Commands::Run { .. }) {
997999
print!("{}", &summary);

packages/cli/binding/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ pub async fn run(options: CliOptions) -> Result<i32> {
202202
)
203203
.await;
204204

205+
dbg!(&result);
206+
205207
tracing::debug!("Result: {result:?}");
206208

207209
match result {

0 commit comments

Comments
 (0)