完成 linter 的诊断 pipeline 架构实现
This commit is contained in:
parent
723ee40a4e
commit
f7583e465f
@ -52,6 +52,17 @@ impl AbstractLinterConfiguration for IverilogConfiguration {
|
||||
) -> Vec<Diagnostic> {
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user