Skip to content

Eclipse plugin produces different result as standalone formatter version #119

@davido

Description

@davido

I'm testing the plugin, by installing it and selecting the google-java-formatter: [1].
Trying it on this file in Gerrit Code Review, produces completely different result, as release
version 1.2 of google java-formatter: [2]. What I was doing, is Ctrl-A followed by Ctrl+Shift+F.

If I run this command:

$ google-java-format -i gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/edit/ChangeEditIT.java

where the reported version is:

$ google-java-format --version
google-java-format: Version 1.2

then I get the commited version again (no diff).

Eclipse version:

Version: Neon.1a Release (4.6.1)
Build id: 20161007-1200

google-java-formatter is built from: 760a13c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions