-
Notifications
You must be signed in to change notification settings - Fork 55
"An entry with the same key already exists." when trying to write srcsrv data #124
Comments
I'm adding the stack trace:
|
Thanks for reporting this @reeflog. |
Can you give me a way to reproduce this, ideally using SourceLink.exe? Oh, I see. If you are trying to use the code that writes directly to the pdb file instead of using pdbstr.exe, it isn't going to work. It "almost" worked, but then I gave up trying to reverse engineer the pdb format. With portable pdb format #93, this all goes away. Regarding the future of SourceLink, I'm waiting for the dust to settle a bit on the .NET Core tooling. I expect to have a better idea of its future by early November by the MVP conference. |
Thanks for the feedback. I'll wait a bit then. |
I'm having an exception when trying write srcsrv data in a PDB.
"System.ArgumentException : An entry with the same key already exists."
I've reproduced it, for instance, with the debug version build locally of SourceLink.Core.pdb.
I'm using SourceLink.Core directly with the following piece of code.
PdbFile.writeSrcSrvBytes(_targetPdbFile, _srcSrv);
I believe there is an issue in the type PdbInfo around the flag index management. There is actually some code commented.
I'm not very familiar with what does mean this flag index and how it should be computed.
Can you provide me some hit in order for me to fix it ? I've tried some naive fixes like taking the next available index but it's seems not enough as doing a srctoolx doesn't get me the links anymore.
The text was updated successfully, but these errors were encountered: