IronLanguages / main

Work for this repo has moved to https://github.com/IronLanguages/ironpython2
1.16k stars 347 forks source link

ipy repl gives IOERROR under cygwin MinTTY #1054

Open ironpythonbot opened 9 years ago

ironpythonbot commented 9 years ago

* Overview *
running ipy.exe or ipy64.exe within cygwin's MinTTY console gives an IOERROR

* Expected Behavior *
a python console for interacting

* Actual Behavior *
console prints (in a loop)

>>> Traceback (most recent call last):
IOError: [Errno 6] The handle is invalid.

if pass the flag -X:ExceptionDetail
prints

IOError: [Errno 6] The handle is invalid.

>>> The handle is invalid.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.Console.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded)
   at Microsoft.Scripting.Hosting.Shell.SuperConsole.Initialize()
   at Microsoft.Scripting.Hosting.Shell.SuperConsole.ReadLine(Int32 autoIndentSize)
   at Microsoft.Scripting.Hosting.Shell.CommandLine.ReadStatement(Boolean& continueInteraction)
   at IronPython.Hosting.PythonCommandLine.RunOneInteraction()
   at IronPython.Hosting.PythonCommandLine.TryInteractiveActionWorker()
   at IronPython.Hosting.PythonCommandLine.TryInteractiveAction()
   at Microsoft.Scripting.Hosting.Shell.CommandLine.RunInteractiveLoop()

* Workarounds *
pass -X:BasicConsole to get a functioning python REPL.

* Related Issues *
perhaps related to this cygwin mintty bug https://code.google.com/p/mintty/issues/detail?id=56

Work Item Details

Original CodePlex Issue: Issue 33787 Status: Proposed Reason Closed: Unassigned Assigned to: Unassigned Reported on: Feb 19, 2013 at 5:11 AM Reported by: crowell Updated on: Sep 28 at 11:26 PM Updated by: paweljasinski

danielschenk commented 7 years ago

This also happens on: