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

doesnt let me run the code #4331

Closed
3 tasks done
emut12 opened this issue Jan 13, 2025 · 1 comment
Closed
3 tasks done

doesnt let me run the code #4331

emut12 opened this issue Jan 13, 2025 · 1 comment

Comments

@emut12
Copy link

emut12 commented Jan 13, 2025

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

Last 2 Keys:
 & Space

hat dimension.
Parameter name: left
Actual value was -2.
   at System.Console.SetCursorPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value)
   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(Nullable`1 key, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------
PS C:\Users\Acer\Desktop\mokykla> & C:/Users/Acer/AppData/Local/Microsoft/WindowsApps/python3.11.exe c:/Users/Acer/Desktop/mokykla/bb.py
<_io.TextIOWrapper name='naujasduom.txt' mode='r' encoding='cp1252'>
PS C:\Users\Acer\Desktop\mokykla>

Screenshot

N/A

Environment data

PS C:\Users\Acer\Desktop\mokykla>

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

hat dimension.
Parameter name: left
Actual value was -2.
   at System.Console.SetCursorPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value)
   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(Nullable`1 key, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------
PS C:\Users\Acer\Desktop\mokykla> & C:/Users/Acer/AppData/Local/Microsoft/WindowsApps/python3.11.exe c:/Users/Acer/Desktop/mokykla/bb.py
  File "c:\Users\Acer\Desktop\mokykla\bb.py", line 3
    & {
    ^
SyntaxError: invalid syntax
PS C:\Users\Acer\Desktop\mokykla> &

Steps to reproduce

with open("duom.txt") as df:
line = df.readline().strip().split()
skaiciai = list(map(int, line))

Expected behavior

to run the code

Actual behavior

doesnt allow me to run the code

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Jan 13, 2025
@emut12
Copy link
Author

emut12 commented Jan 13, 2025

help

@emut12 emut12 closed this as completed Jan 13, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Jan 13, 2025
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