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

Issue 1024333002: tools/gn: Give a better informative message if user uses apostrophe. (Closed)

Created:
5 years, 9 months ago by tfarina
Modified:
5 years, 9 months ago
Reviewers:
brettw, Daniel Bratell
CC:
chromium-reviews, tfarina, Daniel Bratell, Dirk Pranke, mdempsky, scottmg
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

tools/gn: Give a better informative message if user uses apostrophe. Since most most gn users come from gyp and that apostrophe works as a string delimiter in both gyp and python, it is pretty common that they use an apostrophe (') instead of a double one ("). So lets try to give them a more helpful error message that could save people some time the first time. BUG=469097 TEST=edit any BUILD.gn and change any " by '. regenerate the ninja files by running gn gen out-gn. See the error message. R=brettw@chromium.org Committed: https://crrev.com/dd495008e9a6652a7147d91fe3bdf52c5325de55 Cr-Commit-Position: refs/heads/master@{#321813}

Patch Set 1 #

Total comments: 2

Patch Set 2 : bratell #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M tools/gn/tokenizer.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
tfarina
Brett, is this correct?
5 years, 9 months ago (2015-03-22 10:50:32 UTC) #1
Daniel Bratell
https://codereview.chromium.org/1024333002/diff/1/tools/gn/tokenizer.cc File tools/gn/tokenizer.cc (right): https://codereview.chromium.org/1024333002/diff/1/tools/gn/tokenizer.cc#newcode392 tools/gn/tokenizer.cc:392: help = "I expected \" but got ' instead."; ...
5 years, 9 months ago (2015-03-23 09:05:22 UTC) #3
tfarina
https://codereview.chromium.org/1024333002/diff/1/tools/gn/tokenizer.cc File tools/gn/tokenizer.cc (right): https://codereview.chromium.org/1024333002/diff/1/tools/gn/tokenizer.cc#newcode392 tools/gn/tokenizer.cc:392: help = "I expected \" but got ' instead."; ...
5 years, 9 months ago (2015-03-23 10:40:51 UTC) #4
brettw
lgtm
5 years, 9 months ago (2015-03-23 17:26:08 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1024333002/20001
5 years, 9 months ago (2015-03-23 18:29:34 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-23 18:34:35 UTC) #8
commit-bot: I haz the power
5 years, 9 months ago (2015-03-23 18:35:22 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/dd495008e9a6652a7147d91fe3bdf52c5325de55
Cr-Commit-Position: refs/heads/master@{#321813}

Powered by Google App Engine
This is Rietveld 408576698