Skip to content

Get an bug in my vs code in python file #4848

@Saboor-Ul-Fajr-24CS032

Description

@Saboor-Ul-Fajr-24CS032

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

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: left
   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)

Screenshot

Image

Environment data

5.1.19041.5965
ConsoleHost 
2.0.0-beta2
 Windows
10.0.19041.1 (WinBuild.160101.0800)
199
41

Steps to reproduce

import shutil
import os

#Copying the files
shutil.copy("66 Day Shutil module in python.py", "2. 66 Day Shutil module in python.py")

#Copying a folder
shutil.copytree("e:\CP\100-Day-Challenge-of-Learning-python\66 Day Shutil module in python", "Coping a file .1")

#Move the folder from one path to another
shutil.move("Coping a file .1/Coping a file", "New file outside from using move")

#Can't remove the folder using shutil so i use os
shutil.rmtree("Coping a file .1")
os. remove("2. 66 Day Shutil module in python.py")

Expected behavior

the expected behavuir is like nothing in red shows up and tells to reprort the bug in a system

Actual behavior

but there is a code going on in starting before the actual code

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