2 comments
Comment actions Permalink

Test:

package test;

public class Test {
public int uno = 1;
private static final String two = "d";
}

-


Contents of debug:

tabifier.isModified(): returning false
executeWriteAction: determined indent=4, tab_size=4, use_tab_char=false, smart tabs=false
tabify: file=PsiJavaFile:Test.java , selection start/end=[90,133]
visitSelectionElements: current=PsiWhiteSpace
visitSelectionElements: visiting PsiWhiteSpace
parseAdjacentStatements beginning consecutive range:PsiWhiteSpace
done with accept, navigate to next node of:PsiWhiteSpace
its next sibling=PsiField:two
visitSelectionElements: current=PsiField:two
visitSelectionElements: visiting PsiField:two
visitSelectionElements: visiting PsiModifierList:private static final
visitSelectionElements: visiting PsiKeyword:private
visitSelectionElements: visiting PsiWhiteSpace
visitSelectionElements: visiting PsiKeyword:static
visitSelectionElements: visiting PsiWhiteSpace
visitSelectionElements: visiting PsiKeyword:final
visitSelectionElements: visiting PsiWhiteSpace
visitSelectionElements: visiting PsiTypeElement:String
visitSelectionElements: visiting PsiJavaCodeReferenceElement:String
visitSelectionElements: visiting PsiIdentifier:String
visitSelectionElements: visiting PsiWhiteSpace
visitSelectionElements: visiting PsiIdentifier:two
visitSelectionElements: visiting PsiWhiteSpace
visitSelectionElements: visiting PsiJavaToken:EQ
visitSelectionElements: visiting PsiWhiteSpace
visitSelectionElements: visiting PsiLiteralExpression:"d"
visitSelectionElements: visiting PsiJavaToken:STRING_LITERAL
visitSelectionElements: visiting PsiJavaToken:SEMICOLON
done with accept, navigate to next node of:PsiField:two
its next sibling=PsiWhiteSpace
visitSelectionElements: current=PsiWhiteSpace
visitSelectionElements: visiting PsiWhiteSpace
done with accept, navigate to next node of:PsiWhiteSpace
its next sibling=PsiJavaToken:RBRACE
visitSelectionElements: current=PsiJavaToken:RBRACE
visitSelectionElements.visitJavaToken: saw PsiJavaToken:RBRACE
create new region from 90 to 133
visitSelectionElements: visiting PsiJavaToken:RBRACE
done with accept, navigate to next node of:PsiJavaToken:RBRACE
next sibling null, going to parent=PsiClass:Test
its next sibling=PsiWhiteSpace
found 1 regions.
parsing region from 90 to 133
reset parser : PsiWhiteSpace to PsiWhiteSpace
created asp
created formatter
reset parser : PsiWhiteSpace to PsiWhiteSpace
ASP.getNextToken(): called, currentElement=PsiWhiteSpace
parseCurrentElement: chose alignable statement PsiField:two instead of PsiKeyword:private
parseCurrentElement: processing PsiField:two
tabifier.writeExternal()
tabifier.writeExternal()

0
Comment actions Permalink

Hi Daniel,

You were right; it was the new Aurora build that broke tabifier, not my own
code...I should have more faith!

They changed the Psi structure -- types like "int" and "String" are parsed
into a different object (formerly PsiType, now PsiTypeElement.)

New version 2.5 is uploaded. Give it a try and let me know if you have any
more trouble.

Thanks,
-Dave


0

Please sign in to leave a comment.