Serious problem in PhpStorm 4.0.3 code style options!

Hello, this is my first post here. I really like PhpStorm 4.0.3, but i'm facing a problem in code style options (relative to PHP). I can't really explain very well the problem, but i'll try: selecting any option (like braces option for "if" conditional) breaks all code formatting in preview. The same happens with some option for PHPDoc. Here is a short video i made to show you the problem. Please take 1 minute to look at it:



(Video is not searchable). Is this normal? Is there something bad with my installation? I've tried to reinstall but the problem reamains. OS is Windows 7 x64, system Java version is 7.0.70.10 (latest). As I said, PhpStorm 4.0.3.

3 comments
Comment actions Permalink

Hi Marco,

I think (altghough unsure) I saw something similar looong time ago... but I do not remember what was the reason that caused this.

  • To start with I would suggest "File | Invalidate caches..." (sometimes helps in some situations where it should not have an effect, maybe will help in yours).
  • Then I would suggest disabling all 3rd party plugins (not bundled ones).
  • Also -- maybe you have updated some bundled plugins as well (that you should not have done, e.g. PHP plugin or similar)? Try temporarily removing (moving out) all updated/not-bundled plugins (files in C:\Users\USERNAME\.WebIde40\config\plugins and C:\Users\USERNAME\.WebIde40\system\plugins)
  • Reinstalling application may also help (while keeping the settings) -- maybe one of the files was corrupted somehow..?
  • Also -- worth looking into idea.log file (Help | Reveal Log in...) -- it may have some hints
0
Comment actions Permalink

Thanks for the quick reply Andriy.

Cache invalidation dind't solved and I have no 3rd party plugins installed. I already did the folders cleanup: when I completly reistalled the application i've also deleted C:\Users\Marco\.WebIde40 and C:\Program Files (x86)\JetBrains folders. So i would say that is really a fresh installation.

But my log file shows an exception about formatter, when i try to change code style settings. Hope this can help:

2012-09-07 02:48:49,890 [ 188164]  ERROR - .formatting.InitialInfoBuilder - IdeaLoggingEvent[message=Invalid ranges during formatting in Language: PHP, throwable=java.lang.Throwable
at com.intellij.diagnostic.LogMessageEx.error(LogMessageEx.java:142)
at com.intellij.formatting.InitialInfoBuilder.assertInvalidRanges(InitialInfoBuilder.java:389)
at com.intellij.formatting.WhiteSpace.append(WhiteSpace.java:120)
at com.intellij.formatting.FormatProcessor$WrapBlocksState.doIteration(FormatProcessor.java:1278)
at com.intellij.formatting.FormatProcessor$State.iteration(FormatProcessor.java:1199)
at com.intellij.formatting.FormatProcessor.iteration(FormatProcessor.java:240)
at com.intellij.formatting.FormatterImpl$MyFormattingTask.iteration(FormatterImpl.java:779)
at com.intellij.formatting.FormatterImpl.a(FormatterImpl.java:222)
at com.intellij.formatting.FormatterImpl.format(FormatterImpl.java:176)
at com.intellij.psi.impl.source.codeStyle.CodeFormatterFacade.processRange(CodeFormatterFacade.java:106)
at com.intellij.psi.impl.source.codeStyle.CodeFormatterFacade.processElement(CodeFormatterFacade.java:82)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformat(CodeStyleManagerImpl.java:98)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformat(CodeStyleManagerImpl.java:85)
at com.intellij.application.options.CodeStyleAbstractPanel.b(CodeStyleAbstractPanel.java:262)
at com.intellij.application.options.CodeStyleAbstractPanel.access$200(CodeStyleAbstractPanel.java:64)
at com.intellij.application.options.CodeStyleAbstractPanel$3.run(CodeStyleAbstractPanel.java:209)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:902)
at com.intellij.application.options.CodeStyleAbstractPanel.a(CodeStyleAbstractPanel.java:204)
at com.intellij.application.options.CodeStyleAbstractPanel.access$000(CodeStyleAbstractPanel.java:64)
at com.intellij.application.options.CodeStyleAbstractPanel$2.run(CodeStyleAbstractPanel.java:187)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:117)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:93)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:81)
at com.intellij.application.options.CodeStyleAbstractPanel.b(CodeStyleAbstractPanel.java:185)
at com.intellij.application.options.CodeStyleAbstractPanel.access$1200(CodeStyleAbstractPanel.java:64)
at com.intellij.application.options.CodeStyleAbstractPanel$5.run(CodeStyleAbstractPanel.java:484)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:244)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:646)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:607)
at java.awt.EventQueue$1.run(EventQueue.java:605)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:699)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:538)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:420)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
at java.awt.Dialog$1.run(Dialog.java:1044)
at java.awt.Dialog$3.run(Dialog.java:1096)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1094)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.a(DialogWrapperPeerImpl.java:742)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:738)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:426)
at com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:1382)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1367)
at com.intellij.ide.actions.ShowSettingsUtilImpl.a(ShowSettingsUtilImpl.java:67)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:49)
at com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettingsAction.java:63)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:260)
at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:891)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:226)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:100)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:291)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
at java.awt.Component.processMouseEvent(Component.java:6290)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6055)
at java.awt.Container.processEvent(Container.java:2039)
at java.awt.Component.dispatchEventImpl(Component.java:4653)
at java.awt.Container.dispatchEventImpl(Container.java:2097)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
at java.awt.Container.dispatchEventImpl(Container.java:2083)
at java.awt.Window.dispatchEventImpl(Window.java:2482)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:648)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:607)
at java.awt.EventQueue$1.run(EventQueue.java:605)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:621)
at java.awt.EventQueue$2.run(EventQueue.java:619)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:618)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:699)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:534)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:420)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
]

0
Comment actions Permalink

Well, if you have made completely clean installation (as you have said -- config files were deleted) and you still have an exception, then I can only suggest to create a Bug ticket on Issue Tracker (with the log file included): http://youtrack.jetbrains.net/issues/WI

0

Please sign in to leave a comment.