File tree 1 file changed +8
-0
lines changed
src/tools/rust-analyzer/crates/load-cargo/src
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,18 @@ pub fn load_workspace_at(
45
45
) -> anyhow:: Result < ( RootDatabase , vfs:: Vfs , Option < ProcMacroClient > ) > {
46
46
let root = AbsPathBuf :: assert_utf8 ( std:: env:: current_dir ( ) ?. join ( root) ) ;
47
47
let root = ProjectManifest :: discover_single ( & root) ?;
48
+ let manifest_path = root. manifest_path ( ) . clone ( ) ;
48
49
let mut workspace = ProjectWorkspace :: load ( root, cargo_config, progress) ?;
49
50
50
51
if load_config. load_out_dirs_from_check {
51
52
let build_scripts = workspace. run_build_scripts ( cargo_config, progress) ?;
53
+ if let Some ( error) = build_scripts. error ( ) {
54
+ tracing:: debug!(
55
+ "Errors occurred while running build scripts for {}: {}" ,
56
+ manifest_path,
57
+ error
58
+ ) ;
59
+ }
52
60
workspace. set_build_scripts ( build_scripts)
53
61
}
54
62
You can’t perform that action at this time.
0 commit comments