Skip to content

c++ program run issue and not recongnize mingw and msys2,g++ #4469

@Bilal923246

Description

@Bilal923246

Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new

Last 200 Keys:
r o g r a m m i n g Space p y t h o n Space 2 > Space PageUp PageUp PageUp PageUp PageUp PageUp PageUp PageUp PageUp PageUp PageUp PageUp PageUp PageUp PageUp PageUp PageUp PageUp PageUp PageUp PageUp PageUp c d Space " e : \ p r o g r a m m i n g Space p y t h o n Space 2 " Enter
c d Space " e : \ p r o g r a m m i n g Space p y t h o n Space 2 \ " Space ; Space i f Space ( $ ? ) Space { Space g + + Space c + + Space - o Space e : \ p r o g r a m m i n g Space p y t h o n Space 2 \ c + + Space } Space ; Space i f Space ( $ ? ) Space { Space . \ e : \ p r o g r a m m i n g Space p y t h o n Space 2 \ c + + Space } Enter
c

Exception:
System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension.
Parameter name: top
Actual value was -22.
at System.Console.SetCursorPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
at Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
at Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

PS E:\programming python 2> ~~~ + FullyQualifiedErrorId : CommandNotFoundException PS E:\programming python 2> cd "e:\programming python 2"PS E:\programming python 2> cd "e:\programming python 2" ; if ($?) { g++ c++ -o e:\programming python 2\c++ } ; if ($?) { .\e:\programming python 2\c++ }g++ : The term 'g++' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.At line:1 char:43+
~~~ + FullyQualifiedErrorId : CommandNotFoundException PS E:\programming python 2> cd "e:\programming python 2"PS E:\programming python 2> cd "e:\programming python 2" ; if ($?) { g++ c++ -o e:\programming python 2\c++ } ;
if ($?) { .\e:\programming python 2\c++ }g++ : The term 'g++' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.At line:1 char:43+ ~~~ + FullyQualifiedErrorId : CommandNotFoundException PS E:\programming python 2> cd "e:\programming python 2"PS E:\programming python 2> cd "e:\programming python 2" ; if ($?) { g++ c++ -o e:\programming python 2\c++ } ; if ($?) { .\e:\programming python 2\c++ }g++ : The term
'g++' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.At line:1 char:43+
~~~ + FullyQualifiedErrorId : CommandNotFoundException PS E:\programming python 2> cd "e:\programming python 2"PS E:\programming python 2> cd "e:\programming python 2" ; if ($?) { g++ c++ -o e:\programming python 2\c++ } ; if ($?) { .\e:\programming python 2\c++ }g++ : The term 'g++' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.At line:1 char:43+ ~~~ + FullyQualifiedErrorId : CommandNotFoundException PS E:\programming python 2> cd "e:\programming python 2"PS E:\programming python 2> cd "e:\programming python 2" ; if ($?) { g++ c++ -o e:\programming python 2\c++ } ; if ($?) { .\e:\programming python 2\c++ }g++ : The term 'g++' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.At line:1 char:43+
~~~ + FullyQualifiedErrorId : CommandNotFoundException PS E:\programming python 2> cd "e:\programming python 2"PS E:\programming python 2> cd "e:\programming python 2" ; if ($?) { g++ c++ -o e:\programming python 2\c++ } ; if ($?) { .\e:\programming python 2\c++ }g++ : The term 'g++' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.At line:1 char:43+ cd "e:\programming python 2" ; if ($?) { g++ c++ -o e:\programming p ...+ ~~~ + CategoryInfo : ObjectNotFound: (g++:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException PS E:\programming python 2> cd "e:\programming
python 2"PS E:\programming python 2> cd "e:\programming python 2" ; if ($?) { g++ c++ -o e:\programming python 2\c++ }
; if ($?) { .\e:\programming python 2\c++ }g++ : The term 'g++' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.At line:1 char:43+ cd "e:\programming python 2" ; if ($?) { g++ c++ -o e:\programming p ...+
~~~ + CategoryInfo : ObjectNotFound: (g++:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException PS E:\programming python 2> cd "e:\programming python 2"

cd "e:\programming python 2" ; if ($?) { g++ c++ -o e:\programming python 2\c++ } ; if ($?) { .\e:\programming python 2\c++ }
c
Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new


Last 200 Keys:
c d Space " e : \ p r o g r a m m i n g Space p y t h o n Space 2 \ " Space ; Space i f Space ( $ ? ) Space { Space g + + Space c + + Space - o Space e : \ p r o g r a m m i n g Space p y t h o n Space 2 \ c + + Space } Space ; Space i f Space ( $ ? ) Space { Space . \ e : \ p r o g r a m m i n g Space p y t h o n Space 2 \ c + + Space } Enter
c d Space " e : \ " Enter
c d Space " e : \ " Space ; Space i f Space ( $ ? ) Space { Space g + + Space c + + Space - o Space e : \ c + + Space } Space ; Space i f Space ( $ ? ) Space { Space . \ e : \ c + + Space } Enter

Exception:
System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension.
Parameter name: top
Actual value was -22.
at System.Console.SetCursorPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
at Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
at Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

PS E:\programming python 2> ~~~ + FullyQualifiedErrorId : CommandNotFoundException PS E:\programming python 2> cd "e:\programming python 2"PS E:\programming python 2> cd "e:\programming python 2" ; if ($?) { g++ c++ -o e:\programming python 2\c++ } ; if ($?) { .\e:\programming python 2\c++ }g++ : The term 'g++' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.At line:1 char:43+
~~~ + FullyQualifiedErrorId : CommandNotFoundException PS E:\programming python 2> cd "e:\programming python 2"PS E:\programming python 2> cd "e:\programming python 2" ; if ($?) { g++ c++ -o e:\programming python 2\c++ } ;
if ($?) { .\e:\programming python 2\c++ }g++ : The term 'g++' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.At line:1 char:43+ ~~~ + FullyQualifiedErrorId : CommandNotFoundException PS E:\programming python 2> cd "e:\programming python 2"PS E:\programming python 2> cd "e:\programming python 2" ; if ($?) { g++ c++ -o e:\programming python 2\c++ } ; if ($?) { .\e:\programming python 2\c++ }g++ : The term
'g++' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.At line:1 char:43+
~~~ + FullyQualifiedErrorId : CommandNotFoundException PS E:\programming python 2> cd "e:\programming python 2"PS E:\programming python 2> cd "e:\programming python 2" ; if ($?) { g++ c++ -o e:\programming python 2\c++ } ; if ($?) { .\e:\programming python 2\c++ }g++ : The term 'g++' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.At line:1 char:43+ ~~~ + FullyQualifiedErrorId : CommandNotFoundException PS E:\programming python 2> cd "e:\programming python 2"PS E:\programming python 2> cd "e:\programming python 2" ; if ($?) { g++ c++ -o e:\programming python 2\c++ } ; if ($?) { .\e:\programming python 2\c++ }g++ : The term 'g++' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.At line:1 char:43+
~~~ + FullyQualifiedErrorId : CommandNotFoundException PS E:\programming python 2> cd "e:\programming python 2"PS E:\programming python 2> cd "e:\programming python 2" ; if ($?) { g++ c++ -o e:\programming python 2\c++ } ; if ($?) { .\e:\programming python 2\c++ }g++ : The term 'g++' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.At line:1 char:43+ cd "e:\programming python 2" ; if ($?) { g++ c++ -o e:\programming p ...+ ~~~ + CategoryInfo : ObjectNotFound: (g++:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException PS E:\programming python 2> cd "e:\programming
python 2"PS E:\programming python 2> cd "e:\programming python 2" ; if ($?) { g++ c++ -o e:\programming python 2\c++ }
; if ($?) { .\e:\programming python 2\c++ }g++ : The term 'g++' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.At line:1 char:43+ cd "e:\programming python 2" ; if ($?) { g++ c++ -o e:\programming p ...+
~~~ + CategoryInfo : ObjectNotFound: (g++:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException PS E:\programming python 2> cd "e:\programming python 2"

cd "e:\programming python 2" ; if ($?) { g++ c++ -o e:\programming python 2\c++ } ; if ($?) { .\e:\programming python 2\c++ }
cd "e:"
cd "e:" ; if ($?) { g++ c++ -o e:\c++ } ; if ($?) { .
Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions