完成 linter 的诊断 pipeline 架构实现

This commit is contained in:
锦恢 2024-12-09 19:33:34 +08:00
parent 723ee40a4e
commit f7583e465f

View File

@ -52,6 +52,17 @@ impl AbstractLinterConfiguration for IverilogConfiguration {
) -> Vec<Diagnostic> { ) -> Vec<Diagnostic> {
let mut diagnostics = Vec::<Diagnostic>::new(); let mut diagnostics = Vec::<Diagnostic>::new();
let invoke_name = self.get_invoke_name("iverilog");
let pathbuf = uri.to_file_path().unwrap();
let path_string = pathbuf.to_str().unwrap();
let mut process = Command::new(invoke_name)
.stdin(Stdio::piped())
.stderr(Stdio::piped())
.stdout(Stdio::piped())
.arg("-t null")
.arg(path_string)
.spawn();
diagnostics diagnostics