wmyywm / eclipse-code-formatter-intellij-plugin

Automatically exported from code.google.com/p/eclipse-code-formatter-intellij-plugin
0 stars 0 forks source link

Formatting fails on specific value for an argument #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The formatter fails on following code:

package net.mathdoku.plus.painter;

import android.graphics.Paint;

public class foo {
    public foo() {
        new Paint().setColor(0x79000000); // No problem when formatting
        new Paint().setColor(0x80000000); // Fails on formatting
        new Paint().setColor(0x81000000); // No problem when formatting
    }
}

Specifically the line with argument 0x80000000 results in breaking the 
formatter. When this line is removed, the formatting works as expected.

Original issue reported on code.google.com by paul.din...@gmail.com on 23 Nov 2013 at 10:11

GoogleCodeExporter commented 9 years ago
Nice. Upgrade of eclipse libs helps.

Original comment by vojta.kr...@gmail.com on 23 Nov 2013 at 6:05

GoogleCodeExporter commented 9 years ago
what IJ version do you use?

Original comment by vojta.kr...@gmail.com on 23 Nov 2013 at 6:18

GoogleCodeExporter commented 9 years ago
I am not sure which version of IJ is used by Android Studio. I am using Android 
Studio (I/O Preview) 0.3.2, dated October 29, 2013. Using JRE 1.7.0_11-b21 amd 
64.

Original comment by paul.din...@gmail.com on 24 Nov 2013 at 9:37

GoogleCodeExporter commented 9 years ago
I uploaded a new version, you can update.

Original comment by vojta.kr...@gmail.com on 24 Nov 2013 at 2:01

GoogleCodeExporter commented 9 years ago
The problem is not resolved. Is it correct that I only have to install new 
version of the Eclipse plugin?

Original comment by paul.din...@gmail.com on 24 Nov 2013 at 3:14

GoogleCodeExporter commented 9 years ago
yes, version 4.1.0

Original comment by vojta.kr...@gmail.com on 24 Nov 2013 at 3:15

GoogleCodeExporter commented 9 years ago
I am confused... 

I have removed the Eclipse plugin and restarted the Android Studio. The Eclipse 
Formatter still works while I expected a problem as the Eclipse plugin is not 
available anymore. Apparently the IDEA plugin does not use the Eclipse plugin. 
If so, why would upgrading the Exclipse plugin resolve the problem in the Idea 
plugin?

Original comment by paul.din...@gmail.com on 24 Nov 2013 at 3:27

GoogleCodeExporter commented 9 years ago
If you uninstall the plugin then it will no longer work.  (Settings | Plugins | 
 right click and uninstall)
Then you can restart and install it again. Then it should work ok.
There is no Eclipse plugin, it is IDEA plugin which uses libs from eclipse. 
Apparently those old libs had some bug.

Original comment by vojta.kr...@gmail.com on 24 Nov 2013 at 3:40

GoogleCodeExporter commented 9 years ago

Original comment by vojta.kr...@gmail.com on 19 Dec 2013 at 12:15