Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Issue 1501673004: Error checking to clarify SYSTEMROOT errors (Closed)

Created:
5 years ago by brucedawson
Modified:
5 years ago
Reviewers:
scottmg
CC:
gyp-developer_googlegroups.com
Base URL:
https://chromium.googlesource.com/external/gyp.git@master
Target Ref:
refs/heads/master
Project:
gyp
Visibility:
Public.

Description

Error checking to clarify SYSTEMROOT errors Occasionally developers hit this cryptic error: Exception: Environment x variable "SYSTEMROOT" required to be set to valid path The error message is well intentioned but inevitably misleading. The problem is rarely if ever caused by SYSTEMROOT not being set. In the most recent case it was caused by the "SetEnv.cmd && set" command failing. This change adds to bits of error checking - checking the error code of the Popen command, and ensuring that the results coming in to _ExtractImportantEnvironment are plausible. Both of these checks can detect this particular error, and one or both of them should detect future problems. R=scottmg@chromium.org Committed: https://chromium.googlesource.com/external/gyp/+/70ee80e82bacf2d7816a56f792bb33587b04c338

Patch Set 1 #

Total comments: 2

Patch Set 2 : Revert copyright change #

Total comments: 2

Patch Set 3 : Fixing quotes #

Patch Set 4 : Fixing the other quotes... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M pylib/gyp/msvs_emulation.py View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
brucedawson
I've talked to two people recently who hit this problem, and I hit it today, ...
5 years ago (2015-12-05 00:02:42 UTC) #2
scottmg
Thanks, lgtm https://codereview.chromium.org/1501673004/diff/1/pylib/gyp/msvs_emulation.py File pylib/gyp/msvs_emulation.py (right): https://codereview.chromium.org/1501673004/diff/1/pylib/gyp/msvs_emulation.py#newcode2 pylib/gyp/msvs_emulation.py:2: # Use of this source code is ...
5 years ago (2015-12-05 00:05:04 UTC) #4
brucedawson
https://codereview.chromium.org/1501673004/diff/1/pylib/gyp/msvs_emulation.py File pylib/gyp/msvs_emulation.py (right): https://codereview.chromium.org/1501673004/diff/1/pylib/gyp/msvs_emulation.py#newcode2 pylib/gyp/msvs_emulation.py:2: # Use of this source code is governed by ...
5 years ago (2015-12-05 00:09:04 UTC) #5
scottmg
Not sure why the presubmit got unhappy. The PRESUBMIT.py in tools/gyp looks right (and looks ...
5 years ago (2015-12-05 00:15:28 UTC) #7
brucedawson
All suggestions addressed. https://codereview.chromium.org/1501673004/diff/20001/pylib/gyp/msvs_emulation.py File pylib/gyp/msvs_emulation.py (right): https://codereview.chromium.org/1501673004/diff/20001/pylib/gyp/msvs_emulation.py#newcode966 pylib/gyp/msvs_emulation.py:966: if output_of_set.count("=") == 0: On 2015/12/05 ...
5 years ago (2015-12-05 00:33:02 UTC) #9
scottmg
lgtm++. I added you to committers, I think. So hopefully you can land this yourself. ...
5 years ago (2015-12-05 00:35:48 UTC) #10
yukawa
Nice. Perhaps we can close this https://bugs.chromium.org/p/gyp/issues/detail?id=471
5 years ago (2015-12-05 02:39:12 UTC) #11
scottmg
jam just ran into this in the GN build: D:\src\chrome1\src>gn gen out\Debug_gn_component Traceback (most recent ...
5 years ago (2015-12-07 18:25:49 UTC) #12
brucedawson
> it'd be good to add similar code to the copy-pasta'd version that GN uses ...
5 years ago (2015-12-07 19:08:03 UTC) #13
brucedawson
5 years ago (2015-12-07 19:10:45 UTC) #15
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
70ee80e82bacf2d7816a56f792bb33587b04c338 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698