Open a read-only file. (Or open a file and make it read-only using the "Make File Read-Only" action.)
Use Randomness to insert generated data.
A com.intellij.openapi.editor.ReadOnlyModificationException with message Attempt to modify read-only document is thrown, resulting from com.fwdekker.randomness.InsertAction.actionPerformed$lambda$2(InsertAction.kt:98). Clearly, Randomness should check for write permissions before actually trying to insert the data.
A
com.intellij.openapi.editor.ReadOnlyModificationException
with messageAttempt to modify read-only document
is thrown, resulting fromcom.fwdekker.randomness.InsertAction.actionPerformed$lambda$2(InsertAction.kt:98)
. Clearly, Randomness should check for write permissions before actually trying to insert the data.