question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inline functions error in v.2.5.19

See original GitHub issue

Hi and a Happy New Year!

What is a year without new challenges??? So…

Before was installed v.2.5.16 and following block of code was working:

public void TEST()
        {
...
// inline function
  IEnumerable<string> PrepareListItem()
            {
                for (int xi = 0; xi < 5; xi++)
                {
                    if (xi == 2)
                        continue;                       
                    listItemTmpl.Object = new { lIndex = xi, name = "kooo" };  
                    yield return listItemTmpl.Render();  
                }
            }
//inline function call
tmpl.SetBlockText("list", PrepareListItem());
...
}

after upgrade there is an error:

Severity Code Description Project File Line Suppression State Error Unhandled exception: dnlib.DotNet.Writer.ModuleWriterException: Instruction is missing in body but it’s still being referenced by PDB data. Method System.Boolean GM_PersonalDevice._EntryPoint/<>c__DisplayClass13_0/<<TEST>g__PrepareListItem|0>d::MoveNext() (0x06000B1B), instruction: IL_0020: ldarg.0 at dnlib.DotNet.DummyLogger.Log(Object sender, LoggerEvent loggerEvent, String format, Object[] args) at dnlib.DotNet.Pdb.WindowsPdb.PdbCustomDebugInfoWriter.Error(String message, Object[] args) at dnlib.DotNet.Pdb.WindowsPdb.PdbCustomDebugInfoWriter.GetInstructionOffset(Instruction instr, Boolean nullIsEndOfMethod) at dnlib.DotNet.Pdb.WindowsPdb.PdbCustomDebugInfoWriter.Write(IList1 customDebugInfos) at dnlib.DotNet.Pdb.WindowsPdb.WindowsPdbWriter.Write(MethodDef method, List1 cdiBuilder) at dnlib.DotNet.Pdb.WindowsPdb.WindowsPdbWriter.Write() at dnlib.DotNet.Writer.ModuleWriterBase.WriteWindowsPdb(PdbState pdbState) at dnlib.DotNet.Writer.ModuleWriterBase.WritePdbFile() at dnlib.DotNet.Writer.ModuleWriter.WriteFile() at dnlib.DotNet.Writer.ModuleWriter.WriteImpl() at dnlib.DotNet.Writer.ModuleWriterBase.Write(Stream dest) at dnlib.DotNet.Writer.ModuleWriterBase.Write(String fileName) at dnlib.DotNet.ModuleDef.Write(String filename, ModuleWriterOptions options) at StitcherBoy.Reflection.ModuleManager.Write(String assemblyOriginatorKeyFile) at StitcherBoy.Weaving.Build.AssemblyStitcher.Process(StringDictionary parameters, Guid buildID, DateTime buildTime, String entryAssemblyPath) at StitcherBoy.Weaving.StitcherProcessor.Process(StringDictionary parameters, Guid buildID, DateTime buildTime, String entryAsemblyPath) at StitcherBoy.Weaving.StitcherProcessor.Process(StringDictionary parameters, Guid buildID, DateTime buildTime, String entryAsemblyPath) at StitcherTask`1.Run(Boolean fromExe) GM_PersonalDevice

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
hhblazecommented, Oct 6, 2019

It works in the latest version!

image

0reactions
picrapcommented, Oct 5, 2019

Can someone provide me a clean sample with such an error? I can’t reproduce it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jest errors in Gatsby Cloud deployment · Issue #29195
I'm trying to deploy a small/medium (< 1000 page site) to Gatsby Cloud, but when I do, it can never complete the build,...
Read more >
ChangeLog-2.5.19
<davidm@tiger.hpl.hp.com> ia64: Fix misc. merge errors and typos. ... Fix IDE Makefile typo <torvalds@home.transmeta.com> Kernel version 2.5.19.
Read more >
Sdk 2.4 Changelogs Barong Documentation
Enhancement: raise error on Mysql2::Error::ConnectionError in the mailer. Enhancement: JWT expirating and Cache expiration policy improve.
Read more >
Release Notes for Oracle WebLogic Server 12c (12.2.1)
When a session is persistent and an older version of a servlet context is retired, accessing the application with a valid sessionid will...
Read more >
Pre 2.6 TunerStudio Change Log
2014-04-03 - Fix Error loading new MSQ's with String types into projects with old ini's that do not ... 2014-01-24 - String functions...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found