Skip to content

Commit 3b865df

Browse files
committed
updated AMD diagnostics regex
1 parent d3365c3 commit 3b865df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/main/src/diagnostics_parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl<'a, T: opengl::ShaderValidator + ?Sized> DiagnosticsParser<'a, T> {
3232
"NVIDIA Corporation" => {
3333
Regex::new(r#"^(?P<filepath>\d+)\((?P<linenum>\d+)\) : (?P<severity>error|warning) [A-C]\d+: (?P<output>.+)"#).unwrap()
3434
}
35-
_ => Regex::new(r#"^(?P<severity>ERROR|WARNING): (?P<filepath>[^?<>*|"\n]+):(?P<linenum>\d+): '[a-z]*' : (?P<output>.+)$"#)
35+
_ => Regex::new(r#"^(?P<severity>ERROR|WARNING): (?P<filepath>[^?<>*|"\n]+):(?P<linenum>\d+): (?:'.*' :|[a-z]+\(#\d+\)) +(?P<output>.+)$"#)
3636
.unwrap(),
3737
})
3838
}
@@ -122,7 +122,7 @@ impl<'a, T: opengl::ShaderValidator + ?Sized> DiagnosticsParser<'a, T> {
122122
mod diagnostics_test {
123123
use std::path::PathBuf;
124124

125-
use slog::{slog_o, Level};
125+
use slog::slog_o;
126126
use url::Url;
127127

128128
use crate::{

0 commit comments

Comments
 (0)