styleguide icon indicating copy to clipboard operation
styleguide copied to clipboard

Error with installing eclipse-java-google-style.xml

Open alanyee opened this issue 9 years ago • 7 comments

Even though I am using the most recent build of Eclipse, I get:

This profile has been created with a more recent Eclipse build than the one you are using. 
Some older settings might be reset to their default values and newer settings are ignored. 
Please note that upgrading profiles from older to newest builds is fully supported.

alanyee avatar Jul 29 '16 21:07 alanyee

Just press OK and it will work with no problems.

Mihai-B avatar Jul 30 '16 19:07 Mihai-B

I know it works, but I think the xml should be updated in such a way that this prompt does not come up again.

alanyee avatar Aug 01 '16 18:08 alanyee

Are you sure it works? That all the settings are recognized?

aleksandervines avatar Nov 03 '16 10:11 aleksandervines

same question! newer settings are ignored

victorymakes avatar Dec 23 '16 06:12 victorymakes

I am using Eclipse Neon.2 Release (4.6.2) (Build id: 20161208-0600) and the problem persists. It looks like my Eclipse saves a CodeFormatterProfile with version 12 but, eclipse-java-google-style.xml is saved with version 13. I find this odd.

Is somebody willing to look over the differences and provide a updated version of eclipse-java-google-style.xml?

ghost avatar Feb 20 '17 07:02 ghost

this seems to be a duplicate of issue #33.

There is no profile version 13 for eclipse. see https://github.com/eclipse/eclipse.jdt.ui/blob/89da2ef66b1fced4c1d4ff81ea9622ada9841256/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/ProfileVersioner.java#L44

I have imported the file to eclipse neon and then exported. this is the diff

eclipse-java-google-style.xml.diff.txt

froque avatar Mar 02 '17 12:03 froque

https://github.com/google/styleguide/blob/gh-pages/eclipse-java-google-style.xml has the following code:

<profiles version="13">

But Eclipse Neon 3 which is the most recent version for now still has:

<profiles version="12">

So the warning shows up.

yaojingguo avatar May 28 '17 01:05 yaojingguo