Please fix annoying exception

If you try to edit a read-only (CVS committed) file then it will ask you
if you want to check it out.

On the other hand, if you try to apply an intention against a read only
file, sometimes it succeeds (!!!!) and sometimes you get an exception
(see below, exception # 268750).

Could we please get this fixed so that intentions are handled like any
other edit?

Thank you,

Donald

Cannot modify a read-only file
'/Users/dmclean/IdeaProjects/dsb/dads/onegui_webapp/efl/test/edu/stsci/util/TestValueModuleTest.scala'.:
Cannot modify a read-only file
'/Users/dmclean/IdeaProjects/dsb/dads/onegui_webapp/efl/test/edu/stsci/util/TestValueModuleTest.scala'.
com.intellij.util.IncorrectOperationException: Cannot modify a read-only
file
'/Users/dmclean/IdeaProjects/dsb/dads/onegui_webapp/efl/test/edu/stsci/util/TestValueModuleTest.scala'.
     at com.intellij.psi.impl.CheckUtil.checkWritable(CheckUtil.java:44)
     at
com.intellij.psi.impl.source.tree.LeafPsiElement.delete(LeafPsiElement.java:168)
     at
org.jetbrains.plugins.scala.lang.psi.impl.statements.ScFunctionDefinitionImpl$$anonfun$removeAssignment$1.apply(ScFunctionDefinitionImpl.scala:105)
     at
org.jetbrains.plugins.scala.lang.psi.impl.statements.ScFunctionDefinitionImpl$$anonfun$removeAssignment$1.apply(ScFunctionDefinitionImpl.scala:105)
     at scala.Option.foreach(Option.scala:185)
     at
org.jetbrains.plugins.scala.lang.psi.impl.statements.ScFunctionDefinitionImpl.removeAssignment(ScFunctionDefinitionImpl.scala:105)
     at
org.jetbrains.plugins.scala.codeInspection.methodSignature.quickfix.RemoveEqualsSign.applyFix(RemoveEqualsSign.scala:17)
     at
org.jetbrains.plugins.scala.codeInspection.methodSignature.quickfix.RemoveEqualsSign.applyFix(RemoveEqualsSign.scala:11)
     at
com.intellij.codeInspection.ex.QuickFixWrapper.invoke(QuickFixWrapper.java:81)
     at
com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler$2.run(ShowIntentionActionsHandler.java:153)
     at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:844)
     at
com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler$3.run(ShowIntentionActionsHandler.java:166)
     at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:115)
     at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:91)
     at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:79)
     at
com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler.chooseActionAndInvoke(ShowIntentionActionsHandler.java:171)
     at
com.intellij.codeInsight.intention.impl.IntentionListStep$2$1.run(IntentionListStep.java:227)
     at
com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:332)
     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
     at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:658)
     at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:511)
     at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:410)
     at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
     at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
     at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
     at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

1 comment
Comment actions Permalink

Read-only files are properly handled by quick-fixes now.

0

Please sign in to leave a comment.