wmyywm / eclipse-code-formatter-intellij-plugin

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

Bug with my formatter #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install plugin
2. Configure from files
3. Reformat some code

What is the expected output? What do you see instead?
The code being reformatted like in eclise. Instead is occurring an error.

What version of the product are you using? On what operating system?
Plugin: 3.2.1 (2012-12-09)
IntelliJ: 12.0.1
Windows 7

Please provide any additional information below.

Please, see attachments for the formatter and import order files.

Stacktrace:
startOffset0, endOffset:2961, length of file 2961: profile not found in the file
java.lang.IllegalStateException: profile not found in the file
    at krasa.formatter.utils.FileUtils.readXmlJavaSettingsFile(FileUtils.java:151)
    at krasa.formatter.settings.provider.CachedPropertiesProvider.readXmlFile(CachedPropertiesProvider.java:34)
    at krasa.formatter.settings.provider.JavaPropertiesProvider.readFile(JavaPropertiesProvider.java:52)
    at krasa.formatter.settings.provider.JavaPropertiesProvider.readFile(JavaPropertiesProvider.java:14)
    at krasa.formatter.settings.provider.CachedProvider.get(CachedProvider.java:25)
    at krasa.formatter.eclipse.JavaCodeFormatterFacade.newCodeFormatter(JavaCodeFormatterFacade.java:35)
    at krasa.formatter.eclipse.JavaCodeFormatterFacade.getCodeFormatter(JavaCodeFormatterFacade.java:28)
    at krasa.formatter.eclipse.JavaCodeFormatterFacade.formatInternal(JavaCodeFormatterFacade.java:89)
    at krasa.formatter.eclipse.CodeFormatterFacade.format(CodeFormatterFacade.java:14)
    at krasa.formatter.plugin.EclipseCodeFormatter.reformat(EclipseCodeFormatter.java:97)
    at krasa.formatter.plugin.EclipseCodeFormatter.formatWhenEditorIsOpen(EclipseCodeFormatter.java:82)
    at krasa.formatter.plugin.EclipseCodeFormatter.format(EclipseCodeFormatter.java:52)
    at krasa.formatter.plugin.EclipseCodeStyleManager.formatWithEclipse(EclipseCodeStyleManager.java:124)
    at krasa.formatter.plugin.EclipseCodeStyleManager.reformatText(EclipseCodeStyleManager.java:76)
    at krasa.formatter.plugin.DelegatingCodeStyleManager.reformatText(DelegatingCodeStyleManager.java:157)
    at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:94)
    at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:83)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at com.intellij.codeInsight.actions.ReformatAndOptimizeImportsProcessor$1.call(ReformatAndOptimizeImportsProcessor.java:83)
    at com.intellij.codeInsight.actions.ReformatAndOptimizeImportsProcessor$1.call(ReformatAndOptimizeImportsProcessor.java:80)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$2.run(AbstractLayoutCodeProcessor.java:210)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:986)
    at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1$1.run(AbstractLayoutCodeProcessor.java:489)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:122)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:97)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:83)
    at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1.run(AbstractLayoutCodeProcessor.java:484)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:682)
    at java.awt.EventQueue$3.run(EventQueue.java:680)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:691)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:673)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:498)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)

Original issue reported on code.google.com by VictorDFB on 14 Jan 2013 at 7:25

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by vojta.kr...@gmail.com on 14 Jan 2013 at 7:34

GoogleCodeExporter commented 9 years ago
fixed, you can download new version.

Original comment by vojta.kr...@gmail.com on 14 Jan 2013 at 7:41