File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/tools/rust-analyzer/crates/load-cargo/src Expand file tree Collapse file tree 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(
4545) -> anyhow:: Result < ( RootDatabase , vfs:: Vfs , Option < ProcMacroClient > ) > {
4646 let root = AbsPathBuf :: assert_utf8 ( std:: env:: current_dir ( ) ?. join ( root) ) ;
4747 let root = ProjectManifest :: discover_single ( & root) ?;
48+ let manifest_path = root. manifest_path ( ) . clone ( ) ;
4849 let mut workspace = ProjectWorkspace :: load ( root, cargo_config, progress) ?;
4950
5051 if load_config. load_out_dirs_from_check {
5152 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+ }
5260 workspace. set_build_scripts ( build_scripts)
5361 }
5462
You can’t perform that action at this time.
0 commit comments