-
Notifications
You must be signed in to change notification settings - Fork 511
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 when pasting multiple line in the console #5143
Comments
Hi, sorry about this, do you have viable workaround? I think we'd need a more minimal reproduction to figure out this bug. |
[string[]]$domains = $null
while ($true) {
$inp = Read-Host
if ([string]::IsNullOrEmpty($inp)) {
break
}
$domains += $inp
} #stop until a blank line.
for ($i = 0; $i -lt $domains.Count; $i++) {
[string]$check = q.exe $domains[$i] A `@tls://dns.google
Write-Output $check;
} If you copy bugs.txt and paste it in the script, the error shows.
|
20250302-1658-51.7938773.mp4 |
This issue has been labeled as needing feedback and has not had any activity a week. It has been closed for housekeeping purposes. |
Prerequisites
Summary
if i paste my input into my script, it shows error.
however, if i type them line by line, there wont be any error and runs smoothly.
this only happens in debugging(set breakpoints).
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
input: (pasting)
error:
P.S. q.exe is [https://github.com/natesales/q]
Visuals
[https://1drv.ms/v/c/77c324b406508168/EZgTrStUAfpGuZO3bA6n7hEBSzeS999JyAEuSPnbfG05gg]
Logs
No response
The text was updated successfully, but these errors were encountered: