Improve behavior of "Assembly with same name is already loaded" scenarios
scott-lin opened this issue · 1 comments
scott-lin commented
When C# Annotations library loads the same assembly multiple times, I would expect it to:
- Continue on gracefully because it has the context of the binary in memory already. However, it currently fails to generate with the errors below.
- I would expect the error message to contain the assembly details, so I can identify which assembly is the problem in order to debug further.
Lastly, I'm not sure why the generation diagnostic contains two of the same error per API when done. Seems like there should only be one. Minor issue compared to the other two points above.
C# Annotations version: 1.0.0-beta046
ExceptionType: UnableToGenerateAllOperationsException || Message: Generated 1/29 documented operations successfully.
GET /v1/flights/isEnabled || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v1/flights/isEnabled || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v1/flights/isEnabled || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v1/flights/isEnabled || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
POST /api/metadata/status || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
POST /api/metadata/status || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
POST /api/metadata/status || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
POST /api/metadata/status || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
POST /api/metadata/status || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
POST /api/metadata/status || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
POST /api/metadata || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
POST /api/metadata || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v1/serviceHierarchies || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v1/serviceHierarchies || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
PUT /v1/serviceHierarchies || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v1/services/admin || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v1/services/byod || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v1/services/byod || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v1/services/file || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v1/services/file || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v1/services/full || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v1/services/nodeJs || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v1/services/nodeJs || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v1/services/swashbuckle || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v1/services/swashbuckle || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v1/services/visualStudioXml || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v1/services/visualStudioXml || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
PUT /v1/services/admin || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
PUT /v1/services/byod || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
PUT /v1/services/byod || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
PUT /v1/services/file || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
PUT /v1/services/file || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
PUT /v1/services/nodeJs || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
PUT /v1/services/nodeJs || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
PUT /v1/services/serviceidentifier || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
PUT /v1/services/serviceidentifier || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
PUT /v1/services/swashbuckle || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
PUT /v1/services/swashbuckle || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
PUT /v1/services/visualStudioXml || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
PUT /v1/services/visualStudioXml || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v1/swaggerDocuments || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v1/swaggerDocuments || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
POST /v1/swaggerDocuments || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
POST /v1/swaggerDocuments || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v2/openApiDocuments || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v2/openApiDocuments || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v2/openApiDocuments || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v2/openApiDocuments || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v2/openApiDocuments/permissions || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v2/openApiDocuments/permissions || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
POST /v2/openApiDocuments || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
POST /v2/openApiDocuments || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
POST /v2/openApiDocuments || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
POST /v2/openApiDocuments || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
POST /v2/openApiDocuments/{generationId} || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
POST /v2/openApiDocuments/{generationId} || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
POST /v2/openApiDocuments/triggerAssetRetrieval || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
POST /v2/openApiDocuments/triggerAssetRetrieval || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
PUT /v2/openApiDocuments/permissions || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
PUT /v2/openApiDocuments/permissions || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v2/swaggerOperations/diffs || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v2/swaggerOperations/diffs || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v2/swaggerOperations/diffs || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
GET /v2/swaggerOperations/diffs || ExceptionType: FileLoadException || Message: Assembly with same name is already loaded
Shwetap05 commented
The library no longer throw this exception, so closing this issue.