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

Change preview to work on git-bash as well, not just Powershell and cmd.exe #955

Open
gortok opened this issue Jul 6, 2021 · 1 comment
Labels
⚠️ Bug Something isn't working as expected

Comments

@gortok
Copy link

gortok commented Jul 6, 2021

I'm really not sure if this is a Statiq.Web problem or a .NET Core problem; but on .NET 5; when I try to run dotnet run -- preview for a Statiq.Web project, I get the following error at the bottom of the output:

Error: The handle is invalid.

and the terminal exits the preview process for Statiq.Web:
dotnetpreviewerror

I haven't tested it on WSL yet, though I'll report back when I do. I'm going off of a hunch that it's just a problem that would affect cygwin and git-bash; but I'll see.

@gortok gortok changed the title Change preview to work on git-bash as wel, not just Powershell and cmd.exe Change preview to work on git-bash as well, not just Powershell and cmd.exe Jul 6, 2021
@daveaglick
Copy link
Member

I never thought to try under mingw - thanks for being a guinea pig :). Off the top of my head I'll guess it's a socket issue with the preview server, like maybe it's not able (or allowed) to open a socket. Should be easy enough to track down by attaching if I can repro locally.

@daveaglick daveaglick added the ⚠️ Bug Something isn't working as expected label Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️ Bug Something isn't working as expected
Development

No branches or pull requests

2 participants