-
-
Notifications
You must be signed in to change notification settings - Fork 475
RuntimeException: The script failed due to call depth overflow. #2174
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
Comments
Thanks for the report and sample. This is similar to #1974 and not sure how to fix tbh. I've re-posted it in vscode-powershell as I'm only able to reproduce in vscode Integrated Console using PS5.1 engine. Looks like it's suffering from the limited call depth we've also seen with PS jobs/remoting. |
Thanks for looking into this and I appreciate you opening a ticket with vscode-powershell. This is a bit of annoying issue as we can't use the vscode debugger to step through the code anymore unless it's the first time we run that code, on second run it always fails with this error. Our production code is way more complex and fails always on second attempt. Hopefully they see where the issue is. Thx again for the quick help. |
Closing as this was fixed by @nohwnd in PowerShell/PowerShellEditorServices#1797. 🥳 |
General summary of the issue
This issue only happens in vscode and its terminal, not when executed from the normal Windows PowerShell Terminal application.
Describe your environment
host
vscode
Steps to reproduce
Create the following two files:
From a third file run this code from within vscode:
Expected Behavior
All single executed tests should be green
Current Behavior
The first 3 or 5 executions the results are as expected, green. However, after that the result is red and displays the error:
The text was updated successfully, but these errors were encountered: