{"action":"created","issue":{"url":"https://api.github.com/repos/mplushnikov/lombok-intellij-plugin/issues/308","repository_url":"https://api.github.com/repos/mplushnikov/lombok-intellij-plugin","labels_url":"https://api.github.com/repos/mplushnikov/lombok-intellij-plugin/issues/308/labels{/name}","comments_url":"https://api.github.com/repos/mplushnikov/lombok-intellij-plugin/issues/308/comments","events_url":"https://api.github.com/repos/mplushnikov/lombok-intellij-plugin/issues/308/events","html_url":"https://github.com/mplushnikov/lombok-intellij-plugin/issues/308","id":189830389,"number":308,"title":"Write access is allowed from write-safe contexts only","user":{"login":"relgames","id":179605,"avatar_url":"https://avatars.githubusercontent.com/u/179605?v=3","gravatar_id":"","url":"https://api.github.com/users/relgames","html_url":"https://github.com/relgames","followers_url":"https://api.github.com/users/relgames/followers","following_url":"https://api.github.com/users/relgames/following{/other_user}","gists_url":"https://api.github.com/users/relgames/gists{/gist_id}","starred_url":"https://api.github.com/users/relgames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relgames/subscriptions","organizations_url":"https://api.github.com/users/relgames/orgs","repos_url":"https://api.github.com/users/relgames/repos","events_url":"https://api.github.com/users/relgames/events{/privacy}","received_events_url":"https://api.github.com/users/relgames/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-16T20:15:29Z","updated_at":"2016-11-16T21:51:46Z","closed_at":null,"body":"Latest IntelliJ IDEA 2016.3 Build #IU-163.7743.37 shows an error due to Lombok plugin:\r\n\r\n```\r\nWrite access is allowed from write-safe contexts only. Please ensure you're using invokeLater/invokeAndWait with a correct modality state (not \"any\"). See TransactionGuard documentation for details.\r\n  current modality=ModalityState.NON_MODAL\r\n  known modalities={ModalityState.NON_MODAL=true}\r\njava.lang.Throwable\r\n\tat com.intellij.openapi.diagnostic.Logger.error(Logger.java:132)\r\n\tat com.intellij.openapi.application.TransactionGuardImpl.assertWriteActionAllowed(TransactionGuardImpl.java:246)\r\n\tat com.intellij.psi.impl.PsiDocumentManagerBase.commitAllDocuments(PsiDocumentManagerBase.java:219)\r\n\tat de.plushnikov.intellij.plugin.action.delombok.BaseDelombokAction.isValidForFile(BaseDelombokAction.java:205)\r\n\tat de.plushnikov.intellij.plugin.action.delombok.BaseDelombokAction.update(BaseDelombokAction.java:135)\r\n\tat com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:122)\r\n\tat com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:188)\r\n\tat com.intellij.openapi.actionSystem.impl.Utils.updateGroupChild(Utils.java:265)\r\n\tat com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:239)\r\n\tat com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:205)\r\n\tat com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:153)\r\n\tat com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:86)\r\n\tat com.intellij.openapi.actionSystem.impl.Utils.fillMenu(Utils.java:280)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionMenu.c(ActionMenu.java:324)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionMenu.access$600(ActionMenu.java:51)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionMenu$MenuListenerImpl.menuSelected(ActionMenu.java:278)\r\n\tat javax.swing.JMenu.fireMenuSelected(JMenu.java:1038)\r\n\tat javax.swing.JMenu$MenuChangeListener.stateChanged(JMenu.java:1118)\r\n\tat javax.swing.DefaultButtonModel.fireStateChanged(DefaultButtonModel.java:349)\r\n\tat javax.swing.DefaultButtonModel.setSelected(DefaultButtonModel.java:232)\r\n\tat javax.swing.JMenu.setSelected(JMenu.java:305)\r\n\tat com.apple.laf.ScreenMenu$2.run(ScreenMenu.java:135)\r\n\tat java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)\r\n\tat java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)\r\n\tat java.awt.EventQueue.access$500(EventQueue.java:97)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:709)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:703)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)\r\n\tat java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)\r\n\tat java.awt.EventQueue$4.run(EventQueue.java:731)\r\n\tat java.awt.EventQueue$4.run(EventQueue.java:729)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)\r\n\tat java.awt.EventQueue.dispatchEvent(EventQueue.java:728)\r\n\tat com.intellij.ide.IdeEventQueue.g(IdeEventQueue.java:843)\r\n\tat com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:679)\r\n\tat com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)\r\n\tat java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)\r\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)\r\n\tat java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)\r\n\tat java.awt.EventDispatchThread.run(EventDispatchThread.java:82)\r\n```"},"comment":{"url":"https://api.github.com/repos/mplushnikov/lombok-intellij-plugin/issues/comments/261083814","html_url":"https://github.com/mplushnikov/lombok-intellij-plugin/issues/308#issuecomment-261083814","issue_url":"https://api.github.com/repos/mplushnikov/lombok-intellij-plugin/issues/308","id":261083814,"user":{"login":"AlexejK","id":104794,"avatar_url":"https://avatars.githubusercontent.com/u/104794?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexejK","html_url":"https://github.com/AlexejK","followers_url":"https://api.github.com/users/AlexejK/followers","following_url":"https://api.github.com/users/AlexejK/following{/other_user}","gists_url":"https://api.github.com/users/AlexejK/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexejK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexejK/subscriptions","organizations_url":"https://api.github.com/users/AlexejK/orgs","repos_url":"https://api.github.com/users/AlexejK/repos","events_url":"https://api.github.com/users/AlexejK/events{/privacy}","received_events_url":"https://api.github.com/users/AlexejK/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T21:51:46Z","updated_at":"2016-11-16T21:51:46Z","body":"What operation did you try to perform?\r\nLooks like De-lombok?"}}
{"actor":{"display_login":"AlexejK"}}