codingadventures / LINQBridgeVs

Dumps the content of variables during debugging in Visual Studio to LINQPad
MIT License
127 stars 21 forks source link

SymbolsNotMatchingException - Mono.Cecil crashes when mismatching symbols are found #48

Closed MikeStacey-Gee closed 5 years ago

MikeStacey-Gee commented 6 years ago

I keep seeing this in the log file:

2018-07-10T14:50:58.5818167+01:00 Assembly being Injected C:\Development\CMSi\CMSi-Full\ams\AMS-MDI\bin\Debug\CMSI-MDI.exe 2018-07-10T14:50:59.0958376+01:00 Error Executing MSBuild Task SInjectionBuildTask - SymbolsNotMatchingException: Symbols were found but are not matching the assembly at Mono.Cecil.ModuleDefinition.ReadSymbols(ISymbolReader reader, Boolean throwIfSymbolsAreNotMaching) at Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters) at Mono.Cecil.ModuleReader.CreateModule(Image image, ReaderParameters parameters) at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters) at BridgeVs.Build.SInjection..ctor(String assemblyLocation, String snkCertificatePath, PatchMode mode) at BridgeVs.Build.Tasks.SInjectionBuildTask.Execute()

No visualizers are output

codingadventures commented 5 years ago

Hi Mike,

I've seen that error coming through a lot in Sentry, it happened to me as well during development and testing, I am still not sure why it's firing it. Does it happen only with a specific assembly? Could you try to clear manually the content of the debug folder and do a rebuild?

That error also blocks the compilation process, so if that error occurs it stops from creating the assembly, I should change that

MikeStacey-Gee commented 5 years ago

Will do, and get back to you.

From: codingadventures notifications@github.com Sent: 11 July 2018 08:56 To: codingadventures/LINQBridgeVs LINQBridgeVs@noreply.github.com Cc: Mike Stacey-Gee MikeStacey-Gee@esdm.co.uk; Author author@noreply.github.com Subject: Re: [codingadventures/LINQBridgeVs] SymbolsNotMatchingException - Mono.Cecil crashes when mismatching symbols are found (#48)

Hi Mike,

I've seen that error coming through a lot in Sentry, it happened to me as well during development and testing, I am still not sure what it's firing it. Does it happen only with a specific assembly? Could you try to clear manually the content of the debug folder and do a rebuild?

That error also blocks the compilation process, so if that error occurs it stops from creating the assembly, I should change that

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/codingadventures/LINQBridgeVs/issues/48#issuecomment-404079202, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQGEzd4TEqNyBe2X98965fv-lcTelhTOks5uFa-RgaJpZM4VJklU.

codingadventures commented 5 years ago

fixed in the next release