You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building ogc-sys, Clang is unable to find system libraries like stdlib.h. I did some probing, and found that get_clang_version outputs 16.0.6 instead of the expected 16, leading to an invalid /usr/lib/clang/.../include path.
The problem is with the regex:
let regex = Regex::new(r"(?m)\d+(\.\d+)+").unwrap();let result = regex.captures(first_line).unwrap().get(0);
Capture group 0 refers to the whole match, which includes the (\.\d+)+ part. Perhaps you meant:
let regex = Regex::new(r"(?m)(\d+)(\.\d+)+").unwrap();let result = regex.captures(first_line).unwrap().get(1);
Or, using non-capturing groups:
let regex = Regex::new(r"(?m)\d+(?:\.\d+)+").unwrap();let result = regex.captures(first_line).unwrap().get(0);
The text was updated successfully, but these errors were encountered:
When building ogc-sys, Clang is unable to find system libraries like
stdlib.h
. I did some probing, and found thatget_clang_version
outputs16.0.6
instead of the expected16
, leading to an invalid/usr/lib/clang/.../include
path.The problem is with the regex:
Capture group 0 refers to the whole match, which includes the
(\.\d+)+
part. Perhaps you meant:Or, using non-capturing groups:
The text was updated successfully, but these errors were encountered: