Repository navigation
Correctly redirect output to console on Windows - #5776
Merged
Merged
Conversation
This was referenced Jun 13, 2016
Contributor
|
@zcbenz Does this change make the ELECTRON_NO_ATTACH_CONSOLE workaround on Windows obsolete? We set it to get output together with ELECTRON_RUN_AS_NODE and now I wonder if we can remove the no-attach if we update to a newer Electron. |
Contributor
Author
|
@bpasero I'm not sure, ideally the output of node processes should work out of box now. |
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since the upgrade to VS 2015, the implementation of stdio seems to have changed. This PR fixes routing stdio to Console by using
base::RouteStdioToConsole.However it is impossible to make stdin work, we have to attach to parent Console, but because Electron is a GUI program, Windows is not willing to pipe stdin to us. One workaround is to alloc a new Console window for Electron, which would cause troubles since it makes every Electron process being attached with an extra Console window.
This should be totally fine for all apps though, the only downside is we are not able to run REPL in Electron on Windows.
Close #5713.
Close #5715.