Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to launch from git-bash #41

Open
mortenn opened this issue Oct 13, 2021 · 0 comments
Open

Unable to launch from git-bash #41

mortenn opened this issue Oct 13, 2021 · 0 comments

Comments

@mortenn
Copy link

mortenn commented Oct 13, 2021

doing dotnet repl from git bash on windows, I get this exception:

 Unhandled exception: System.InvalidOperationException: Cannot see if a key has been pressed when either application does not have a console or when console input has been redirected from a file. Try Console.In.Peek.
   at System.Console.get_KeyAvailable()
   at RadLine.DefaultInputSource.IsKeyAvailable() in /_/src/RadLine/Internal/DefaultInputSource.cs:line 19
   at RadLine.InputBuffer.ReadKeyFromSource(Boolean wait, CancellationToken cancellationToken) in /_/src/RadLine/Internal/InputBuffer.cs:line 114
   at RadLine.InputBuffer.ReadKey(Boolean multiline, CancellationToken cancellationToken) in /_/src/RadLine/Internal/InputBuffer.cs:line 35
   at RadLine.LineEditor.ReadLine(LineEditorState state, CancellationToken cancellationToken) in /_/src/RadLine/LineEditor.cs:line 161
   at RadLine.LineEditor.ReadLine(CancellationToken cancellationToken) in /_/src/RadLine/LineEditor.cs:line 66
   at dotnet_repl.Repl.RunAsync(InteractiveDocument notebook, Boolean exitAfterRun) in C:\projects\dotnet-repl\src\dotnet-repl\Repl.cs:line 132
   at dotnet_repl.CommandLineParser.StartRepl(StartupOptions options, IAnsiConsole ansiConsole, CancellationToken cancellationToken) in C:\projects\dotnet-repl\src\dotnet-repl\CommandLineParser.cs:line 109
   at System.CommandLine.Invocation.CommandHandler.GetExitCodeAsync(Object value, InvocationContext context)
   at System.CommandLine.Invocation.ModelBindingCommandHandler.InvokeAsync(InvocationContext context)
   at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass23_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass27_0.<<UseVersionOption>b__1>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass25_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__24_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass11_0.<<UseDebugDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__10_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass14_0.<<UseExceptionHandler>b__0>d.MoveNext()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant