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.

Help text generation throws InvalidOperationException on Mono

See original GitHub issue

Describe the bug upgrade from 2.2.5 -> 2.3 breaks application

To Reproduce Steps to reproduce the behavior:

  1. Using this version of the library ‘2.2.5.’
  2. Run this code ‘…’
  3. With these arguments ‘…’
  4. See error

Expected behavior Upwards compatibility

Screenshots Unhandled Exception: System.InvalidOperationException: The Process object must have the UseShellExecute property set to false in order to redirect IO streams. at System.Diagnostics.Process.StartWithShellExecuteEx (System.Diagnostics.ProcessStartInfo startInfo) [0x00060] in <23340a11bb41423aa895298bf881ed68>:0 at System.Diagnostics.Process.Start () [0x00032] in <23340a11bb41423aa895298bf881ed68>:0 at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start() at McMaster.Extensions.CommandLineUtils.Pager.CreateWriter () [0x00064] in <5f42c33014224597b1fabe346c86217b>:0 at System.Lazy1[T].CreateValue () [0x00081] in <98fac219bd4e453693d76fda7bd96ab0>:0 at System.Lazy1[T].LazyInitValue () [0x00080] in <98fac219bd4e453693d76fda7bd96ab0>:0 at System.Lazy1[T].get_Value () [0x0003a] in <98fac219bd4e453693d76fda7bd96ab0>:0 at McMaster.Extensions.CommandLineUtils.Pager.get_Writer () [0x00013] in <5f42c33014224597b1fabe346c86217b>:0 at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ShowHelp (System.Boolean usePager) [0x00041] in <5f42c33014224597b1fabe346c86217b>:0 at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ShowHelp () [0x00000] in <5f42c33014224597b1fabe346c86217b>:0 at McMaster.Extensions.CommandLineUtils.CommandLineProcessor.ProcessOption () [0x00246] in <5f42c33014224597b1fabe346c86217b>:0 at McMaster.Extensions.CommandLineUtils.CommandLineProcessor.ProcessNext () [0x00033] in <5f42c33014224597b1fabe346c86217b>:0 at McMaster.Extensions.CommandLineUtils.CommandLineProcessor.Process () [0x00015] in <5f42c33014224597b1fabe346c86217b>:0 at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Parse (System.String[] args) [0x00014] in <5f42c33014224597b1fabe346c86217b>:0 at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute (System.String[] args) [0x00000] in <5f42c33014224597b1fabe346c86217b>:0 at ClienteleCLI.Program.Main (System.String[] args) [0x00130] in <27420bcba69640678847b326b3cb6ebd>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: The Process object must have the UseShellExecute property set to false in order to redirect IO streams. at System.Diagnostics.Process.StartWithShellExecuteEx (System.Diagnostics.ProcessStartInfo startInfo) [0x00060] in <23340a11bb41423aa895298bf881ed68>:0 at System.Diagnostics.Process.Start () [0x00032] in <23340a11bb41423aa895298bf881ed68>:0 at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start() at McMaster.Extensions.CommandLineUtils.Pager.CreateWriter () [0x00064] in <5f42c33014224597b1fabe346c86217b>:0 at System.Lazy1[T].CreateValue () [0x00081] in <98fac219bd4e453693d76fda7bd96ab0>:0 at System.Lazy1[T].LazyInitValue () [0x00080] in <98fac219bd4e453693d76fda7bd96ab0>:0 at System.Lazy1[T].get_Value () [0x0003a] in <98fac219bd4e453693d76fda7bd96ab0>:0 at McMaster.Extensions.CommandLineUtils.Pager.get_Writer () [0x00013] in <5f42c33014224597b1fabe346c86217b>:0 at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ShowHelp (System.Boolean usePager) [0x00041] in <5f42c33014224597b1fabe346c86217b>:0 at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ShowHelp () [0x00000] in <5f42c33014224597b1fabe346c86217b>:0 at McMaster.Extensions.CommandLineUtils.CommandLineProcessor.ProcessOption () [0x00246] in <5f42c33014224597b1fabe346c86217b>:0 at McMaster.Extensions.CommandLineUtils.CommandLineProcessor.ProcessNext () [0x00033] in <5f42c33014224597b1fabe346c86217b>:0 at McMaster.Extensions.CommandLineUtils.CommandLineProcessor.Process () [0x00015] in <5f42c33014224597b1fabe346c86217b>:0 at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Parse (System.String[] args) [0x00014] in <5f42c33014224597b1fabe346c86217b>:0 at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute (System.String[] args) [0x00000] in <5f42c33014224597b1fabe346c86217b>:0 at ClienteleCLI.Program.Main (System.String[] args) [0x00130] in <27420bcba69640678847b326b3cb6ebd>:0

Additional context Macos

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
natemcmastercommented, Jan 15, 2019

@Jay-Jay-D can you open a new issue and describe steps to reproduce the problem?

0reactions
Jay-Jay-Dcommented, Jan 15, 2019

Hey Nate, First of all, thank you very much for maintaining this library!

I’m having the System.InvalidOperationException issue in using the version 2.3.1-build.475 in Mono 5.14.0.177

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is wrong with XML Serialization of a lib class ...
Everything works with Mono but with IL2CPP, it throws the following error => "System.InvalidOperationException: There was an error ...
Read more >
System.InvalidOperationException: Sequence contains no ...
I'm attempting to convert our Unity apps to work on Windows 8 and Phone 8 but on compile I get the following error:...
Read more >
Mono 4.0.0 Release Notes
With this release we are introducing support for performing 32-bit floating operations using 32-bit math. This produces faster code at the ...
Read more >
Mono 1.1.17 Release
Bug Number Category Assembly 79016 Mono Develop general 78784 Class Libraries CORLIB 78810 Class Libraries Sys.Data
Read more >
How to: Render ASP.NET MVC Razor Views to Strings
In this article, I demonstrate how you can render ASP.NET MVC Razor Views in some unconventional ways, like capturing Razor View output to...
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