toString plugin assertion failed: Wrong line separators in Document
Assertion failed: Wrong line separators in Document
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:64)
at com.intellij.openapi.editor.impl.DocumentImpl.(DocumentImpl.java:65)
at com.intellij.psi.formatter.PsiBasedFormattingModel.]]>(PsiBasedFormattingModel.java:24)
at com.intellij.psi.impl.source.codeStyle.CodeFormatterFacade.processRange(CodeFormatterFacade.java:149)
at com.intellij.psi.impl.source.codeStyle.CodeFormatterFacade.process(CodeFormatterFacade.java:34)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformat(CodeStyleManagerImpl.java:413)
at org.intellij.idea.plugin.tostring.GenerateToStringActionHandler.createToStringMethod(GenerateToStringActionHandler.java:321)
at org.intellij.idea.plugin.tostring.GenerateToStringActionHandler.executeGenerateAction(GenerateToStringActionHandler.java:237)
at org.intellij.idea.plugin.tostring.GenerateToStringActionHandler.access$400(GenerateToStringActionHandler.java:40)
at org.intellij.idea.plugin.tostring.GenerateToStringActionHandler$3.run(GenerateToStringActionHandler.java:254)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:328)
at org.intellij.idea.plugin.tostring.GenerateToStringActionHandler$2.run(GenerateToStringActionHandler.java:251)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:74)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:120)
at org.intellij.idea.plugin.tostring.psi.idea4.PsiAdapterIdea4.executeCommand(PsiAdapterIdea4.java:124)
at org.intellij.idea.plugin.tostring.GenerateToStringActionHandler.executeGenerateActionLater(GenerateToStringActionHandler.java:263)
at org.intellij.idea.plugin.tostring.GenerateToStringActionHandler.access$000(GenerateToStringActionHandler.java:40)
at org.intellij.idea.plugin.tostring.GenerateToStringActionHandler$1.run(GenerateToStringActionHandler.java:147)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:34)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:89)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:39)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Please sign in to leave a comment.
Hi
Can you post the version numbers of IDEA and the plugin you are using?
And does it happend everytime?
I'll check it this weekend.
/Claus
Okay I got it with the latest build 3296 and my dev version of the plugin.
I'll check it out. Thanks for the report.
It's something to do with linebreaks from the String that is returned from Velocity.
If I hardcode a body code in java there isn't any problem.
I'll have to check the chars how the linebreaks are from Velocity.
/claus
Okay I am about to release v3.14 that works on #3296.
Checkout the plugin manager.
wow..thats's fast, and for my favourite plugin
thanks very much,
-m
Glad it can be used by others.