3 comments
Comment actions Permalink

This doesn't work for me too :(
I use build 816.

>>>>> Aurora console:

com.wrq.tabifier.parse.UnacceptableSyntaxException: parseVariable: unexpected el
ement:PsiTypeElement:DefaultIntegrateModule
at com.wrq.tabifier.parse.AlignableVariableDeclaration$1.visitElement(Al
ignableVariableDeclaration.java:44)
at com.intellij.psi.JavaElementVisitor.visitTypeElement(JavaElementVisit
or.java:109)
at com.intellij.psi.impl.source.ba.accept(ba.java:3)
at com.intellij.psi.impl.source.bc.acceptChildren(bc.java:59)
at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursive
ElementVisitor.java)
at com.wrq.tabifier.parse.AlignableVariableDeclaration$1.visitVariable(A
lignableVariableDeclaration.java:68)
at com.intellij.psi.JavaElementVisitor.visitField(JavaElementVisitor.jav
a:63)
at com.intellij.psi.impl.source.bi.accept(bi.java:80)
at com.wrq.tabifier.parse.AlignableVariableDeclaration.parseVariable(Ali
gnableVariableDeclaration.java:134)
at com.wrq.tabifier.parse.AlignableFieldDeclaration.parse(AlignableField
Declaration.java:42)
at com.wrq.tabifier.parse.AlignableStatementParser.parseCurrentElement(A
lignableStatementParser.java:222)
at com.wrq.tabifier.parse.AlignableStatementParser.getNextToken(Alignabl
eStatementParser.java:112)
at com.wrq.tabifier.parse.Formatter.calculateWidths(Formatter.java:66)
at com.wrq.tabifier.write_action.reformatRange(write_action.java:386)
at com.wrq.tabifier.write_action.tabify(write_action.java:157)
at com.wrq.tabifier.write_action.executeWriteAction(write_action.java:99
)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.r
un(EditorWriteActionHandler.java)
at com.intellij.openapi.application.b.d.runWriteAction(d.java:217)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.exe
cute(EditorWriteActionHandler.java:3)
at com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAct
ion.java)
at com.intellij.openapi.command.b.b.executeCommand(b.java:1)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed
(EditorAction.java:6)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed
(EditorAction.java:8)
at com.intellij.openapi.a.c.e.a(e.java:103)
at com.intellij.openapi.a.c.e.b(e.java:74)
at com.intellij.openapi.a.c.e.a(e.java:93)
at com.intellij.ide.t.dispatchEvent(t.java:38)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

>>>>> Tabifier debug file:

executeWriteAction: determined indent=4, tab_size=4, use_tab_char=true, smart tabs=true
tabify: file=PsiJavaFile:xModuleUI.java , selection start/end=[2930,3059]
visitSelectionElements: current=PsiWhiteSpace
visitSelectionElements: visiting PsiWhiteSpace
parseAdjacentStatements beginning consecutive range:PsiWhiteSpace
done with accept, navigate to next node of:PsiWhiteSpace
its next sibling=PsiField:module
visitSelectionElements: current=PsiField:module
visitSelectionElements: visiting PsiField:module
visitSelectionElements: visiting PsiModifierList:private
visitSelectionElements: visiting PsiKeyword:private
visitSelectionElements: visiting PsiWhiteSpace
visitSelectionElements: visiting PsiTypeElement:DefaultIntegrateModule
visitSelectionElements: visiting PsiJavaCodeReferenceElement:DefaultInteg
visitSelectionElements: visiting PsiIdentifier:DefaultIntegrateModule
visitSelectionElements: visiting PsiReferenceParameterList
visitSelectionElements: visiting PsiWhiteSpace
visitSelectionElements: visiting PsiIdentifier:module
visitSelectionElements: visiting PsiJavaToken:SEMICOLON
done with accept, navigate to next node of:PsiField:module
its next sibling=PsiWhiteSpace
visitSelectionElements: current=PsiWhiteSpace
visitSelectionElements: visiting PsiWhiteSpace
done with accept, navigate to next node of:PsiWhiteSpace
its next sibling=PsiField:checkBoxes
visitSelectionElements: current=PsiField:checkBoxes
visitSelectionElements: visiting PsiField:checkBoxes
visitSelectionElements: visiting PsiModifierList:private
visitSelectionElements: visiting PsiKeyword:private
visitSelectionElements: visiting PsiWhiteSpace
visitSelectionElements: visiting PsiTypeElement:Collection
visitSelectionElements: visiting PsiJavaCodeReferenceElement:Collection
visitSelectionElements: visiting PsiIdentifier:Collection
visitSelectionElements: visiting PsiReferenceParameterList
visitSelectionElements: visiting PsiWhiteSpace
visitSelectionElements: visiting PsiIdentifier:checkBoxes
visitSelectionElements: visiting PsiWhiteSpace
visitSelectionElements: visiting PsiJavaToken:EQ
visitSelectionElements: visiting PsiWhiteSpace
visitSelectionElements: visiting PsiNewExpression:new LinkedList()
visitSelectionElements: visiting PsiKeyword:new
visitSelectionElements: visiting PsiWhiteSpace
visitSelectionElements: visiting PsiJavaCodeReferenceElement:LinkedList
visitSelectionElements: visiting PsiIdentifier:LinkedList
visitSelectionElements: visiting PsiReferenceParameterList
visitSelectionElements: visiting PsiExpressionList
visitSelectionElements: visiting PsiJavaToken:LPARENTH
visitSelectionElements: visiting PsiJavaToken:RPARENTH
visitSelectionElements: visiting PsiJavaToken:SEMICOLON
done with accept, navigate to next node of:PsiField:checkBoxes
its next sibling=PsiWhiteSpace
visitSelectionElements: current=PsiWhiteSpace
visitSelectionElements: visiting PsiWhiteSpace
done with accept, navigate to next node of:PsiWhiteSpace
its next sibling=PsiField:scopeCombo
visitSelectionElements: current=PsiField:scopeCombo
visitSelectionElements: visiting PsiField:scopeCombo
visitSelectionElements: visiting PsiModifierList:private
visitSelectionElements: visiting PsiKeyword:private
visitSelectionElements: visiting PsiWhiteSpace
visitSelectionElements: visiting PsiTypeElement:JComboBox
visitSelectionElements: visiting PsiJavaCodeReferenceElement:JComboBox
visitSelectionElements: visiting PsiIdentifier:JComboBox
visitSelectionElements: visiting PsiReferenceParameterList
visitSelectionElements: visiting PsiWhiteSpace
visitSelectionElements: visiting PsiIdentifier:scopeCombo
visitSelectionElements: visiting PsiWhiteSpace
visitSelectionElements: visiting PsiJavaToken:EQ
visitSelectionElements: visiting PsiWhiteSpace
visitSelectionElements: visiting PsiLiteralExpression:null
visitSelectionElements: visiting PsiJavaToken:NULL_KEYWORD
visitSelectionElements: visiting PsiJavaToken:SEMICOLON
done with accept, navigate to next node of:PsiField:scopeCombo
its next sibling=PsiWhiteSpace
visitSelectionElements: current=PsiWhiteSpace
visitSelectionElements: visiting PsiWhiteSpace
done with accept, navigate to next node of:PsiWhiteSpace
its next sibling=PsiField:designDependedCombos
create new region from 2930 to 3059
found 1 regions.
parsing region from 2930 to 3059
reset parser : PsiWhiteSpace to PsiWhiteSpace
created asp
created formatter
reset parser : PsiWhiteSpace to PsiWhiteSpace
ASP.getNextToken(): called, currentElement=PsiWhiteSpace
parseCurrentElement: chose alignable statement PsiField:module instead of PsiKeyword:private
parseCurrentElement: processing PsiField:module
tabifier.writeExternal()
tabifier.writeExternal()
tabifier.writeExternal()
tabifier.projectClosed()
tabifier.disposeComponent()
tabifier.disposeComponent()

0
Comment actions Permalink

Hi Pavel,

Hmm, I will look at this tomorrow (today is holiday in U.S.) Are you sure you are using version 2.5? (If you use Plugin Manager, you can check the version there. Otherwise you could check the plugin.xml in the tabifier.jar file.) Version 2.5 fixed this same problem for Daniel.

If it turns out you are using version 2.5, I will create two versions of tabifier, one for 3.0.x, one for Aurora. The idea.jar libraries are diverging and it will be more convenient (and less error-prone) to link directly than to use java reflection to figure out which version is running.

Thanks for using (or for trying to use) the plugin!

-Dave

0
Comment actions Permalink

Hi, Dave.
It is my fault. But I was absolutely sure I download 2.5 from plugin page after I reading about new version. I didn't check plugin.xml :(

It works fine!

Unfortunately now I can't get working reformat plugin to not loose changes after CtrlAltL, but it is other problem :)))

Thank you, Dave, for this plug-in.

0

Please sign in to leave a comment.