-
Notifications
You must be signed in to change notification settings - Fork 859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please provide Eclipse plugin in version 1.7 #331
Comments
I was able to build by following: My steps (use attached diff):
Then follow eclipse plugin build instructions starting at step 2. |
I've attached a build using above instructions for convenience. |
Please provide an official build in the GitHub release. I would like to be able to tell our project contributors to go there and download it. |
These changes were mostly selected from google#331
The attached unofficial build for 1.7 above does not work when I attempt to install it in eclipse. eclipse does not appear to recognize it at all. When I tried the provided steps to reproduce I get a compile error
|
From the above instructions:
Did you follow up that step with:
as indicated in that comment? |
Also @wacaine this might be a stupid question, but did you unzip the jar first before placing the jar in the |
I mean, did you unzip the jar out of the attached zip? I had to pack the jar inside a zip because of github file posting rules.
You need to put the |
@wacaine I believe I built it with a later version than oxygen. I would suggest attempting to complete the build on your older version of eclipse as instructed above, and seeing if that produces a usable output jar. |
@arifogel See my earlier post above with the output from the mvn install . It throws a ton of compiler errors not being able to find classes (missing guava classes). When I check the target folder no jar was built (because of the compile time issues). org.eclipse.tycho:tycho-compiler-plugin:0.26.0:compile (default-compile) on project google-java-format-eclipse-plugin: Compilation failure: Compilation failure I am not familiar with Tycho and how it resolves classpaths. Any suggestions or reference materials you can point me at? I am not clear on how to build against a different version of eclipse. From what I see it builds against the Eclipse Mars release which is older than Oxygen |
Custom building an eclipse plugin does not seem to be a really good long term solution and also goes against the goal of having a simple formatter that an entire team can install and then not worry about. Just encountered this problem and found out it's a version issue. The README instructions for installing goole java formatter are not consistent with itself, it has 1.7 dependencies yet the eclipse plugin is 1.6 Out of the box the intellij plugin and gradle plugin spotless use 1.7, which clashes with 1.6. I'd suggest it's really important then for the eclipse plugin to reach parity to avoid a problem of differing formatters. Is there an ETA for when the eclipse 1.7 plugin would be available and the readme instructions updated? |
of note, because I know it might help others after I dropped the |
The 1.7 release is now more than one year old, and there is still no build of the Eclipse plugin available. Please provide an official build of the plugin or tell us if you will never do so such that we can look for alternate solutions (and remove the outdated plugin link from the readme in this case). |
Release 1.8 is out and I encountered the same problem when I ran a test (CLI, IntelliJ, Idea). For information, there is a pull request #465 which is currently in progress, and which could solve the problem. |
For the impatient: google-java-format-eclipse-plugin-1.8.0.jar.zip is a build (using JDK14) of version 1.8.0, created out of this pull request: #465. Unzip the zip file and put the jar file into the dropins folder. Works fine for me on Eclipse 2020-03. |
@avim did you find a satisfactory solution for using Eclipse together with google style? I suppose your team used some Eclipse plugin together with the |
I was waiting for the Eclipse plugin. The latest current version of the Eclipse plugin is 1.6. Not being able to use the
Using git hooks is the most efficient way for me to work. We forget that we are using I also wrote a small note on this repository. It generally resumes what is written in the official repository. I hope you are satisfied with this answer. cc @oliviercailloux |
Thanks a lot. FTR (and in order to argue for the usefulness of the corresponding PR), none of these solutions seem great to me. I don’t like anything to re-format automatically behind the scenes; I think the re-format should be done where I code, and in such a way that I can see its consequences (e.g., in case something goes wrong, I can see it and act) before me committing. I also don’t want to force developers (or myself) to think about running maven “manually” (meaning, in a way that is not integrated in the IDE) on a regular basis. Finally, in a teaching context as I am, I find it important that student-developers understand the importance and the concept of formatting their code, and don’t want to automate this “too much” for them. As a consequence, I want some integration within Eclipse itself.
I guess I’ll wait that the corresponding PR gets merged, as I am not impatient enough to use a non-official build as proposed here above. |
Hey, So some of my team members are running the intellij plugin but I am using eclipse so I tried to use the jar file you provided. I am facing some issues trying to get this to work. I dropped in the jar file in the drop ins folder and did a
The project I am trying to use the plug-in on, uses java 1.8 and I saw jdk 11 mentioned somewhere. Does this means that the plug-in won't be supported for projects below jdk 11 from now on. I thought that didn't make sense as my other team members on intellij are working on the same project as me and for them the plug-in works fine. Any help will be appreciated! |
This doesn't seem to work for 2020-09. |
Please provide Eclipse plugin in version 1.9 |
Big thanks @cushon for building and uploading version 1.11.0 of the Eclipse plugin! This resolves this issue, but you might want to update the link to the Eclipse plugin in the README? |
@PhilippWendler check #639 |
The release page for version 1.7 does not contain an Eclipse plugin like the previous versions. The readme still mentions that page as the download source of the Eclipse plugin.
So please provide a JAR with the Eclipse plugin as part of the relase.
The text was updated successfully, but these errors were encountered: