Skip to content

Bug reported in my VSCode terminal #4333

@pympk

Description

@pympk

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

Last 49 Keys:
c d Space n o t e Backspace Backspace d e j s Enter
c d Space l e s s o n - 2 Enter
c l e a r Enter
n o d e Space f i l e s Enter
UpArrow Enter
UpArrow UpArrow Enter
UpArrow

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 -1.
at System.Console.SetCursorPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderPS C:\Users\ping\Files_win10\python\py310\nodejs\lesson-2> node
files
created mydir folder
PS C:\Users\ping\Files_win10\python\py310\nodejs\lesson-2> node
files
PS C:\Users\ping\Files_win10\python\py310\nodejs\lesson-2> node
files
fs.js:177
throw new ERR_INVALID_CALLBACK(cb);
^

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined
at makeCallback (fs.js:177:11)
at Object. (C:\Users\ping\Files_win10\python\py310\nodejs\lesson-2\files.js:43:6)
PS C:\Users\ping\Files_win10\python\py310\nodejs\lesson-2> node
files
fs.js:177
throw new ERR_INVALID_CALLBACK(cb);
^

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined
at makeCallback (fs.js:177:11)
at Object.unlink (fs.js:1240:14)
at Object. (C:\Users\ping\Files_win10\python\py310\nodejs\lesson-2\files.js:43:6)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
code: 'ERR_INVALID_CALLBACK'
}

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