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.

Local functions causes compilation failed

See original GitHub issue

Compilation fails when using local functions in 0.8.1. If I remove the local functions everything works as expected.

[07:56:24 DBG] The name 'MyLocalFunction' does not exist in the current context
[07:56:24 ERR] Failed to restore the project to a buildable state. Please report the issue. Stryker can not proceed further
[07:56:24 ERR] An error occurred during the mutation test run
System.ApplicationException: Failed to restore build able state.
   at Stryker.Core.Compiling.CompilingProcess.Compile(IEnumerable`1 syntaxTrees, MemoryStream ms, Boolean devMode)
   at Stryker.Core.MutationTest.MutationTestProcess.Mutate(StrykerOptions options)
   at Stryker.Core.StrykerRunner.RunMutationTest(StrykerOptions options)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
rouke-broersmacommented, Jan 28, 2019

@Matthiee I have started the release for 0.8.2 which includes the fix

0reactions
Matthieecommented, Jan 27, 2019

@richardwerkman It works for me with #325

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is returning a reference to a function local value not ...
I would say that requiring this to make the program ill-formed (that is, make this a compilation error) would complicate the standard ...
Read more >
Dissecting the local functions in C# 7 - Developer Support
If a local function captures a local variable or an argument then the C# compiler generates a special closure struct, instantiates it and ......
Read more >
Discussion: Local Functions · Issue #2930 · dotnet/roslyn
In #259 it is proposed to add local functions and types. The Roslyn compiler team met today to look at local functions (not...
Read more >
Compiler Error: Stack too deep, try removing local variables
The issue is that your function() is taking too many independent variables. To solve this, you can pack all (or some of them)...
Read more >
Compilation error on rstan - General - The Stan Forums
This is the error I am getting. Compilation ERROR, function(s)/method(s) not created! Error in compileCode(f, code, language = language, ...
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