Accept an optional --seed parameter for check, otherwise default to random.

Also, show the seed on failure.
This commit is contained in:
KtorZ
2024-03-03 20:36:01 +01:00
parent a7b9d4bb22
commit 7a2537432a
14 changed files with 100 additions and 55 deletions

View File

@@ -1,7 +1,6 @@
use std::{collections::HashMap, path::PathBuf};
use aiken_lang::{ast::Tracing, line_numbers::LineNumbers};
use aiken_project::{config::Config, error::Error as ProjectError, module::CheckedModule, Project};
use std::{collections::HashMap, path::PathBuf};
#[derive(Debug)]
pub struct SourceInfo {
@@ -30,9 +29,9 @@ impl LspProject {
pub fn compile(&mut self) -> Result<(), Vec<ProjectError>> {
let checkpoint = self.project.checkpoint();
let result = self
.project
.check(true, None, false, false, Tracing::silent());
let result =
self.project
.check(true, None, false, false, u32::default(), Tracing::silent());
self.project.restore(checkpoint);