Exception when trying to open a file with "r" extension

I am having some issues with R4IntelliJ plugin when trying to open a R file (e.g. script.r) in IntelliJ IDEA Ultimate for Mac version 12.1.7. I am using the latest version of R4IntelliJ as of July 9th.

Does anyone have any suggestion? To me this looks like an API issue. Could it be that R4IntelliJ tries to use an IntelliJ API not available in version 12?

Here is the exception that IntelliJ throws:

Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(138,353),absolute(138,375),button=1,modifiers=Button1,clickCount=2] on frame2: com.r4intellij.lang.parser.GrammarParserUtil.current_position_(Lcom/intellij/lang/PsiBuilder;)I
java.lang.NoSuchMethodError: com.r4intellij.lang.parser.GrammarParserUtil.current_position_(Lcom/intellij/lang/PsiBuilder;)I
 at com.r4intellij.lang.parser.RParser.expr_or_assign_0(RParser.java:666)
 at com.r4intellij.lang.parser.RParser.expr_or_assign(RParser.java:656)
 at com.r4intellij.lang.parser.RParser.command_1_0(RParser.java:102)
 at com.r4intellij.lang.parser.RParser.command_1(RParser.java:92)
 at com.r4intellij.lang.parser.RParser.command(RParser.java:81)
 at com.r4intellij.lang.parser.RParser$1.parse(RParser.java:1168)
 at com.intellij.lang.parser.GeneratedParserUtilBase.parseAsTree(GeneratedParserUtilBase.java:892)
 at com.r4intellij.lang.parser.GrammarParserUtil.parseGrammar(GrammarParserUtil.java:29)
 at com.r4intellij.lang.parser.RParser.parse_root_(RParser.java:69)
 at com.r4intellij.lang.parser.RParser.parse(RParser.java:61)
 at com.intellij.psi.tree.ILazyParseableElementType.doParseContents(ILazyParseableElementType.java:64)
 at com.intellij.psi.tree.IFileElementType.parseContents(IFileElementType.java:43)
 at com.intellij.psi.impl.source.tree.LazyParseableElement.e(LazyParseableElement.java:165)
 at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:209)
 at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:34)
 at com.intellij.psi.impl.source.tree.SharedImplUtil.getFirstChild(SharedImplUtil.java:44)
 at com.intellij.psi.impl.source.PsiFileImpl.getFirstChild(PsiFileImpl.java:746)
 at com.r4intellij.editor.RFoldingBuilder.touchTree(RFoldingBuilder.java:85)
 at com.r4intellij.editor.RFoldingBuilder.buildFoldRegions(RFoldingBuilder.java:73)
 at com.intellij.lang.folding.LanguageFolding.buildFoldingDescriptors(LanguageFolding.java:87)
 at com.intellij.codeInsight.folding.impl.FoldingUpdate.a(FoldingUpdate.java:202)
 at com.intellij.codeInsight.folding.impl.FoldingUpdate.a(FoldingUpdate.java:115)
 at com.intellij.codeInsight.folding.impl.FoldingUpdate.updateFoldRegions(FoldingUpdate.java:93)
 at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.a(CodeFoldingManagerImpl.java:313)
 at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.access$200(CodeFoldingManagerImpl.java:55)
 at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl$4.run(CodeFoldingManagerImpl.java:226)
 at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:1971)
 at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.buildInitialFoldings(CodeFoldingManagerImpl.java:248)
 at com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorImpl.initFolding(PsiAwareTextEditorImpl.java:49)
 at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl4(FileEditorManagerImpl.java:763)
 at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl3(FileEditorManagerImpl.java:696)
 at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$9.run(FileEditorManagerImpl.java:675)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:117)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:99)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:85)
 at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl2(FileEditorManagerImpl.java:673)
 at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:630)
 at com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(FileEditorManagerEx.java:135)
 at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$15.run(FileEditorManagerImpl.java:1004)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:124)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:99)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:85)
 at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openEditor(FileEditorManagerImpl.java:1001)
 at com.intellij.openapi.fileEditor.OpenFileDescriptor.navigateInAnyFileEditor(OpenFileDescriptor.java:148)
 at com.intellij.openapi.fileEditor.OpenFileDescriptor.navigateInEditor(OpenFileDescriptor.java:134)
 at com.intellij.openapi.fileEditor.OpenFileDescriptor.navigate(OpenFileDescriptor.java:121)
 at com.intellij.psi.impl.source.PsiFileImpl.navigate(PsiFileImpl.java:915)
 at com.intellij.codeInsight.navigation.NavigationUtil.activateFileWithPsiElement(NavigationUtil.java:141)
 at com.intellij.ide.projectView.impl.nodes.AbstractPsiBasedNode.navigate(AbstractPsiBasedNode.java:205)
 at com.intellij.ide.projectView.impl.nodes.PsiFileNode.navigate(PsiFileNode.java:131)
 at com.intellij.util.OpenSourceUtil.navigate(OpenSourceUtil.java:51)
 at com.intellij.util.OpenSourceUtil.openSourcesFrom(OpenSourceUtil.java:29)
 at com.intellij.util.EditSourceOnDoubleClickHandler$TreeMouseListener.processDoubleClick(EditSourceOnDoubleClickHandler.java:130)
 at com.intellij.util.EditSourceOnDoubleClickHandler$TreeMouseListener.onDoubleClick(EditSourceOnDoubleClickHandler.java:122)
 at com.intellij.ui.DoubleClickListener.onClick(DoubleClickListener.java:28)
 at com.intellij.ui.ClickListener$1.mouseReleased(ClickListener.java:73)
 at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
 at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
 at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
 at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
 at java.awt.Component.processMouseEvent(Component.java:6414)
 at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
 at com.intellij.ui.treeStructure.Tree.processMouseEvent(Tree.java:420)
 at com.intellij.ide.dnd.aware.DnDAwareTree.processMouseEvent(DnDAwareTree.java:51)
 at java.awt.Component.processEvent(Component.java:6179)
 at java.awt.Container.processEvent(Container.java:2084)
 at java.awt.Component.dispatchEventImpl(Component.java:4776)
 at java.awt.Container.dispatchEventImpl(Container.java:2142)
 at java.awt.Component.dispatchEvent(Component.java:4604)
 at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
 at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4279)
 at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4209)
 at java.awt.Container.dispatchEventImpl(Container.java:2128)
 at java.awt.Window.dispatchEventImpl(Window.java:2492)
 at java.awt.Component.dispatchEvent(Component.java:4604)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)
 at java.awt.EventQueue.access$400(EventQueue.java:82)
 at java.awt.EventQueue$2.run(EventQueue.java:676)
 at java.awt.EventQueue$2.run(EventQueue.java:674)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
 at java.awt.EventQueue$3.run(EventQueue.java:690)
 at java.awt.EventQueue$3.run(EventQueue.java:688)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:687)
 at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:700)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:521)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)
 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)

Please sign in to leave a comment.