Copyright plugin exception

In build 3415 the Copyright plugin doesn't work for me:

com.intellij.util.IncorrectOperationException: Incorrect comment "// Copyright 2005 XXXXX
// All Rights Reserved.".
at com.intellij.psi.impl.PsiElementFactoryImpl.createCommentFromText(PsiElementFactoryImpl.java:220)
at com.maddyhome.idea.copyright.psi.UpdateJavaFileCopyright.getComment(UpdateJavaFileCopyright.java:212)
at com.maddyhome.idea.copyright.psi.UpdateJavaFileCopyright.updateComment(UpdateJavaFileCopyright.java:168)
at com.maddyhome.idea.copyright.psi.UpdateJavaFileCopyright.update(UpdateJavaFileCopyright.java:73)
at com.maddyhome.idea.copyright.util.CommandHelper$2.run(CommandHelper.java:45)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:75)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:33)
at com.maddyhome.idea.copyright.util.CommandHelper$1.run(CommandHelper.java:39)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:133)
at com.maddyhome.idea.copyright.util.CommandHelper.runUpdate(CommandHelper.java:35)
at com.maddyhome.idea.copyright.CopyrightPluginImpl$2.run(CopyrightPluginImpl.java:77)
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:39)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:95)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:61)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
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)

0
3 comments

The current version of the Copyright plugin only supports block comments, not multiple line comments.

Try:

/*

  • Your copyright

  • goes here

*/

instead

Rick

0
Avatar
Permanently deleted user

I can't, company policy requires the comment to be exactly the same. Do
you plan to add support for line comments?

Rick Maddy wrote:

The current version of the Copyright plugin only supports block comments, not multiple line comments.

Try:

/*

  • Your copyright

  • goes here

*/

instead

Rick

0
Avatar
Permanently deleted user

Rick, I'd like to add this feature. I tried to e-mail you to ask for the latest
version source (the wiki is out of date) but I don't know if it worked. Will you
send me the source?

Rick Maddy wrote:

The current version of the Copyright plugin only supports block comments, not multiple line comments.

Try:

/*

  • Your copyright

  • goes here

*/

instead

Rick

0

Please sign in to leave a comment.