You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The plugin adds a google-java-format formatter implementation that can be configured in Window > Preferences > Java > Code Style > Formatter > Formatter Implementation #134
There is no such Formatter Implementation preference in Eclipse 4.6:
The plugin adds a google-java-format formatter implementation that can be configured in Window > Preferences > Java > Code Style > Formatter > Formatter Implementation
Adding the plugin jar to dropins and restarting doesn't add the menu option for me. I'm on Eclipse Neon.3. Any suggested debugging steps? (it sounds like all that should be required is to put the jar in the dropins folder and restart Eclipse)
Thanks. Sorry for the noise: I grabbed a fresh install and things do work just fine.
My existing install, which has been updated from Eclipse Neon (1) remains broken, but I'll just continue with the fresh copy. I do see this in the workspace log:
!MESSAGE Unable to instantiate formatter extension 'com.google.googlejavaformat.java.GoogleJavaFormatter', returning built-in formatter.
There don't appear to be additional logs or additional details. I poked around/diffed the setups and don't see anything obvious. I also looked at the Eclipse source a bit, I don't see anywhere additional logging might show up, but it does suggest something is weird with the extension point in my upgraded version.
I am not able to make this work on the mac at all. I don't even get an error message. I did a clean install of eclipse Neon in a clean workspace and nothing.
$ ls -lh /Applications/Eclipse.app/Contents/Eclipse/dropins/
total 11784
-rw-r--r--@ 1 revans2 admin 5.8M May 4 10:48 google-java-format-eclipse-plugin-1.3.0.jar
Activity
sormuras commentedon Feb 24, 2017
Then your Eclipse installation didn't find/load a single "Formatter plugin" on startup.
Did you drop
google-java-format-eclipse-plugin-1.3.0.jarto your Eclipse dropins folder before launching the IDE?elharo commentedon Feb 24, 2017
Nope. In that case consider this a bug to expand the documentation to include that step.
Also, if this is a true Eclipse plugin we should provide an update site and possibly upload it to the Eclipse marketplace.
sormuras commentedon Feb 24, 2017
True. Happy to update the section in README.md if you press the merge button of #106 ... deal?
Just kidding. Here you go: #135
That'd be perfect!
markelliot commentedon Apr 18, 2017
Adding the plugin jar to dropins and restarting doesn't add the menu option for me. I'm on Eclipse Neon.3. Any suggested debugging steps? (it sounds like all that should be required is to put the jar in the dropins folder and restart Eclipse)
sormuras commentedon Apr 18, 2017
Is there any error log statement in the log files? https://wiki.eclipse.org/FAQ_Where_can_I_find_that_elusive_.log_file%3F
sormuras commentedon Apr 18, 2017
Btw. in fresh Neon.3 installation and a fresh workspace, the dropped-in plugin appears as expected.
Version: Neon.3 Release (4.6.3)
Build id: 20170314-1500
markelliot commentedon Apr 18, 2017
Thanks. Sorry for the noise: I grabbed a fresh install and things do work just fine.
My existing install, which has been updated from Eclipse Neon (1) remains broken, but I'll just continue with the fresh copy. I do see this in the workspace log:
There don't appear to be additional logs or additional details. I poked around/diffed the setups and don't see anything obvious. I also looked at the Eclipse source a bit, I don't see anywhere additional logging might show up, but it does suggest something is weird with the extension point in my upgraded version.
revans2 commentedon May 4, 2017
I am not able to make this work on the mac at all. I don't even get an error message. I did a clean install of eclipse Neon in a clean workspace and nothing.
Nothing in the logs at all
sormuras commentedon May 4, 2017
Does this help? http://stackoverflow.com/a/34333669/1431016
revans2 commentedon May 4, 2017
@sormuras I tried that too
Still no luck and still no logs
BruceZu commentedon Aug 20, 2017
It works in Eclipse IDE for Java Developers
Version: Oxygen Release (4.7.0)
Build id: 20170620-1800
But it does not provide AOSP Style option.
sormuras commentedon Aug 21, 2017
@BruceZu See my answer in #179
Mention Eclipse dropins folder