@@ -354,12 +354,12 @@ impl ProcessedData {
354354 ( QualifiedName , CoreArchitecture ) ,
355355 Vec < Ref < TypeLibrary > > ,
356356 > = HashMap :: new ( ) ;
357- for merged_type_library in & self . type_libraries {
358- for named_type in & merged_type_library . named_types ( ) {
357+ for tl in & self . type_libraries {
358+ for named_type in & tl . named_types ( ) {
359359 mapped_named_types
360- . entry ( ( named_type. name . clone ( ) , merged_type_library . arch ( ) ) )
360+ . entry ( ( named_type. name . clone ( ) , tl . arch ( ) ) )
361361 . or_default ( )
362- . push ( merged_type_library . clone ( ) ) ;
362+ . push ( tl . clone ( ) ) ;
363363 }
364364 }
365365
@@ -553,12 +553,16 @@ impl TypeLibProcessor {
553553 . filter_map ( |res| match res {
554554 Ok ( result) => Some ( Ok ( result) ) ,
555555 Err ( ProcessingError :: SkippedFile ( path) ) => {
556- tracing:: debug!( "Skipping project root file: {:?}" , path) ;
556+ tracing:: debug!( "Skipping project file: {:?}" , path) ;
557557 None
558558 }
559559 Err ( ProcessingError :: Cancelled ) => Some ( Err ( ProcessingError :: Cancelled ) ) ,
560+ Err ( ProcessingError :: NoPathToProjectFile ( path) ) => {
561+ tracing:: warn!( "Project file not downloaded: {:?}" , path) ;
562+ None
563+ }
560564 Err ( e) => {
561- tracing:: error!( "Project root file processing error: {:?}" , e) ;
565+ tracing:: error!( "Project file processing error: {:?}" , e) ;
562566 None
563567 }
564568 } )
@@ -588,12 +592,16 @@ impl TypeLibProcessor {
588592 . filter_map ( |res| match res {
589593 Ok ( result) => Some ( Ok ( result) ) ,
590594 Err ( ProcessingError :: SkippedFile ( path) ) => {
591- tracing:: debug!( "Skipping project directory file: {:?}" , path) ;
595+ tracing:: debug!( "Skipping project file: {:?}" , path) ;
592596 None
593597 }
594598 Err ( ProcessingError :: Cancelled ) => Some ( Err ( ProcessingError :: Cancelled ) ) ,
599+ Err ( ProcessingError :: NoPathToProjectFile ( path) ) => {
600+ tracing:: warn!( "Project file not downloaded: {:?}" , path) ;
601+ None
602+ }
595603 Err ( e) => {
596- tracing:: error!( "Project folder file processing error: {:?}" , e) ;
604+ tracing:: error!( "Project file processing error: {:?}" , e) ;
597605 None
598606 }
599607 } )
@@ -1093,13 +1101,13 @@ pub fn is_parsable(path: &Path) -> bool {
10931101 if path. extension ( ) == Some ( OsStr :: new ( "pdb" ) ) {
10941102 return false ;
10951103 }
1096- let mut metadata = FileMetadata :: with_file_path ( path) ;
1097- let Ok ( view) = BinaryView :: from_path ( & metadata, path ) else {
1104+ let metadata = FileMetadata :: with_file_path ( path) ;
1105+ let Ok ( view) = BinaryView :: from_metadata ( & metadata) else {
10981106 return false ;
10991107 } ;
11001108 // If any view type parses this file, consider it for this source.
11011109 // All files will have a "Raw" file type, so we account for that.
1102- BinaryViewType :: list_valid_types_for ( & view) . len ( ) > 1
1110+ BinaryViewType :: valid_types_for_data ( & view) . len ( ) > 1
11031111}
11041112
11051113#[ cfg( test) ]
0 commit comments