New issue
Advanced search Search tips

Issue 696827 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Feb 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

presubmit warning to run "git cl format --js" in wrong directory or with no visible error

Project Member Reported by michae...@chromium.org, Feb 28 2017

Issue description

I have a CL with changes in
  src/chrome/browser/resources/settings/controls/
and
  src/ui/webui/resources/cr_elements/

Presubmit warns:
  > The resources directory requires source formatting. Please run
  > git cl format --js ui/webui/resources

But running that does nothing.

Running `git cl format --js` does fix an issue in a changed src/chrome file. But after fixing that, presubmit continues printing the above warning.
 
Summary: presubmit warning to run "git cl format --js" in wrong directory or with no visible error (was: presubmit warning to run "git cl format --js" in wrong directory)
maybe there's some versioning issues -- what should I check for that?
The presubmit just runs git cl format --js --dry-run and checks the return code.

You can run git cl format --js --diff to see what git cl format thinks is wrong?

Comment 3 by dbeam@chromium.org, Feb 28 2017

note that there was a recent regression in `git cl format --diff` that was fixed only 1-2h ago.  make sure to `gclient sync` first.
Status: WontFix (was: Untriaged)
Yep, it was returning some binary junk. After `gclient sync` it works normally again.

Sign in to add a comment