Repository navigation
Sometimes REPL cannot display the result #12085
Copy link
Copy link
Closed
Labels
replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Description
Activity
- addedreplIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.
on Mar 28, 2017 It sounds like GetVersionEx() is failing but I can't fathom why. Can you try building from source with the patch below applied?
diff --git a/src/node_os.cc b/src/node_os.cc index d7be909..e31578b 100644 --- a/src/node_os.cc +++ b/src/node_os.cc @@ -125,8 +125,13 @@ static void GetOSRelease(const FunctionCallbackInfo<Value>& args) { // Don't complain that GetVersionEx is deprecated; there is no alternative. #pragma warning(suppress : 4996) - if (GetVersionExW(&info) == 0) + if (GetVersionExW(&info) == 0) { + auto isolate = args.GetIsolate(); + auto exception = + WinapiErrnoException(isolate, GetLastError(), "GetVersionEx"); + isolate->ThrowException(exception); return; + } snprintf(release, sizeof(release),
- addedwindowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
on Mar 28, 2017 Seems to be a duplicate of #7837. Please try with the latest node.js version.
Reacted by Pedro NevesI've reverted the offending commit in 1978911, this should be fixed in the next v6.x LTS release
Reacted by Anna Henningsen@seishun my node version is 6.10.1 which is latest version of LTS already
I can't tell if this was fixed in 6.10.2 or if it's expected to be fixed in 6.11.2. Can someone confirm the bug on Windows in 6.10.2 or later?
No follow-up and no one complained so I'll go ahead and assume this is fixed. If not, please leave a comment.
Metadata
Metadata
Assignees
Labels
replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
In node REPL mode, when I execute a function, sometimes the result cannot be displayed. Refer as the below screenshot:
