SharpeRAD / Cake.Powershell

Powershell addin for Cake
http://cakebuild.net
MIT License
83 stars 36 forks source link

Error "Process is terminated due to StackOverflowException." #56

Closed artkpv closed 6 years ago

artkpv commented 6 years ago

Hello, thank you for the lib!

How to fix this error? I do:

.\build.ps1 -t mytest
Preparing to run build script...
Running build script...

========================================
mytest
========================================
Executing: ./create-devenv.ps1

Process is terminated due to StackOverflowException.

In my build.cake:

Task("mytest").Does(() => {
    StartPowershellScript("./create-devenv.ps1");
    });

In create-devenv.ps1:

Write-Host "test"
artkpv commented 6 years ago

The same if build.cake:

    StartPowershellScript("Write-Host", args =>
        {
            args.AppendQuoted("Testing...");
        });
SharpeRAD commented 6 years ago

You haven’t included enough information for me to find the cause of the issue, so I can only assume that your running it in a host the doesn’t support outputting.

settings.OutputToAppConsole = false;