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.

ArgumentException Type must not be ByRef under dotcover

See original GitHub issue

@hazzik I’m afraid to say that it is not quite fixed 😞I’m seeing a different error based on the changes in 0.29.0 as follows

System.ArgumentException: Type must not be ByRef (Parameter 'type')
  Stack Trace:
      at System.Dynamic.Utils.TypeUtils.ValidateType(Type type, String paramName, Boolean allowByRef, Boolean allowPointer)
   at System.Dynamic.Utils.TypeUtils.ValidateType(Type type, String paramName)
   at System.Linq.Expressions.Expression.Convert(Expression expression, Type type, MethodInfo method)
   at System.Linq.Expressions.Expression.Convert(Expression expression, Type type)
   at DelegateDecompiler.Processor.AdjustType(Expression expression, Type type)
   at DelegateDecompiler.Processor.GetArguments(ProcessorState state, MethodBase m)
   at DelegateDecompiler.Processor.Call(ProcessorState state, MethodInfo m)
   at DelegateDecompiler.Processor.Process()
   at DelegateDecompiler.Processor.Process(VariableInfo[] locals, IList`1 args, Instruction instruction, Type returnType)
   at DelegateDecompiler.MethodBodyDecompiler.DecompileConcrete(MethodInfo method, IList`1 args)
   at DelegateDecompiler.MethodBodyDecompiler.Decompile(MethodInfo method, Type declaringType)

_Originally posted by @mbrookson in https://github.com/hazzik/DelegateDecompiler/issues/171#issuecomment-773212124_

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hazzikcommented, Feb 4, 2021

Released in 0.29.1

1reaction
mbrooksoncommented, Feb 4, 2021

Apologies. I didn’t see you’d already implemented a fix. Your solution in this branch also works and is definitely better than mine.

Appreciate you spending time on this. Thank you for resolving it! Please update in Nuget when you get a chance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Asp.net core Type must not be ByRef Parameter name: type
When use your method for you must put out method in first parameter. static void Main(string[] args) { string docNo = string.
Read more >
Coverage Analysis from the Command Line - dotCover
Analyze unit tests coverage in .NET Framework projects · Make sure your unit test project is built. · Navigate to the directory where...
Read more >
ByRef argument type mismatch
This error has the following cause and solution: You passed an argument of one type that could not be coerced to the type...
Read more >
OpenCover
I tried OpenCover v4.7.1221 to run tests on the NDepend code base but it doesn't work. Until now we used an older version...
Read more >
https://huggingface.co/jeniya/BERTOverflow/commit/...
... +##ically +##ition +exp +ele +##ton +works +name +und +may +##ages +type ... +Edit +Not +least +User +##SQL +domain +##Controller +missing +cau +##ves ......
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