-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Cleanup processes started by UseReactDevelopmentServer and UseAngularCliServer #17883
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
Conversation
c99927c
to
6696063
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I can tell the actual code change here is good, but I believe the tests as-is are likely to be flaky. Should be in a much better place once that's resolved.
src/Middleware/SpaServices.Extensions/src/Npm/NodeScriptRunner.cs
Outdated
Show resolved
Hide resolved
@@ -14,4 +14,10 @@ | |||
<Content Include="js\**\*" /> | |||
</ItemGroup> | |||
|
|||
<ItemGroup> | |||
<None Update="package.json"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the behavior we get without this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npm exits immediately
src/Middleware/SpaServices.Extensions/test/SpaServicesExtensionsTests.cs
Show resolved
Hide resolved
src/Middleware/SpaServices.Extensions/test/SpaServicesExtensionsTests.cs
Outdated
Show resolved
Hide resolved
src/Middleware/SpaServices.Extensions/test/SpaServicesExtensionsTests.cs
Show resolved
Hide resolved
src/Middleware/SpaServices.Extensions/test/SpaServicesExtensionsTests.cs
Outdated
Show resolved
Hide resolved
src/Middleware/SpaServices.Extensions/test/SpaServicesExtensionsTests.cs
Outdated
Show resolved
Hide resolved
src/Middleware/SpaServices.Extensions/test/SpaServicesExtensionsTests.cs
Outdated
Show resolved
Hide resolved
} | ||
|
||
private string GetCommand() | ||
=> RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "waitWindows" : "wait"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are we trying to accomplish with these? Get command is a bit nondescript. What are the criteria that these commands have to meet in order to work in this instance?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The command must run indefinitely until the process is killed
src/Middleware/SpaServices.Extensions/src/AngularCli/AngularCliMiddleware.cs
Outdated
Show resolved
Hide resolved
e88ee60
to
33997d5
Compare
33997d5
to
4838467
Compare
@ryanbrandenburg are we waiting for more changes from @AndriySvyryd here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! I really like the diagnostic listener pattern, I might end up stealing that in some spots.
One small comment inclusion then I think we can call this good.
...dleware/SpaServices.Extensions/test/Microsoft.AspNetCore.SpaServices.Extensions.Tests.csproj
Show resolved
Hide resolved
4838467
to
1ff648c
Compare
Hi @AndriySvyryd can you tell when this is gonna be published with the SDK ? |
Nightly builds should already have this. Preview1 will be out soon*. The RTM version will be out in November. |
Hi @AndriySvyryd, the related issue still can produce in dot net version 5.0.100. If I start debug using (not using IIS) Visual Studio (16.8.2), node process still open even I stopped the debug. But the crt+c will kill all the node process when you use dotnet run command using developer user command prompt. |
Hi @JSLGeeganage. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context. |
Fixes #11597