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

Bug reported in my VSCode terminal #4333

Closed
pympk opened this issue Jan 14, 2025 · 1 comment
Closed

Bug reported in my VSCode terminal #4333

pympk opened this issue Jan 14, 2025 · 1 comment

Comments

@pympk
Copy link

pympk commented Jan 14, 2025

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'
}

@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 14, 2025
Copy link

This issue was already fixed (see #1306). Please upgrade to the 2.3.5 version of PSReadLine from PowerShell Gallery.
See the upgrading section for instructions. Please let us know if you run into the same issue with the latest version.

@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 14, 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