Accept an optional --seed parameter for check, otherwise default to random.
Also, show the seed on failure.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user