Exit code 3

Answered

Greetings,

I recently started using IntelliJ as an R IDE and it was working fine at the beginning

However, when i Try running a code line with list.files() it produces the lines below without any additional info.

*Process was terminated

*Process finished with exit code 3

when i try running my program in Rstudio, it works fine, but when i bring it back to IntelliJ it does not work.

 

what could be the problem?

1
3 comments

I experience the same and it is pretty annoying.

Using the same code works perfectly fine in RStudio.

0

Same problem here, same exit code and the R code works fine in RStudio

 

Edit:

Here is the error from the log file:

 

2020-09-22 20:30:00,714 [1801351] INFO - brains.r.rinterop.RInteropUtil - RWRAPPER TERMINATED, code=3
2020-09-22 20:30:00,714 [1801351] INFO - brains.r.rinterop.RInteropUtil - PORT 13911

2020-09-22 20:30:00,717 [1801354] ERROR - brains.r.rinterop.RInteropUtil - IdeaLoggingEvent[message=RWrapper terminated with Runtime Error, throwable=java.lang.Throwable
at com.intellij.idea.IdeaLogger.error(IdeaLogger.java:77)
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:153)
at org.jetbrains.r.rinterop.RInteropUtil.reportCrash(RInteropUtil.kt:183)
at org.jetbrains.r.rinterop.RInteropUtil.access$reportCrash(RInteropUtil.kt:36)
at org.jetbrains.r.rinterop.RInteropUtil$createRInterop$2.processTerminated(RInteropUtil.kt:93)
at jdk.internal.reflect.GeneratedMethodAccessor127.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.intellij.execution.process.ProcessHandler$2.invoke(ProcessHandler.java:246)
at com.sun.proxy.$Proxy44.processTerminated(Unknown Source)
at com.intellij.execution.process.ProcessHandler.lambda$notifyTerminated$2(ProcessHandler.java:204)
at com.intellij.execution.process.ProcessHandler$TasksRunner.execute(ProcessHandler.java:279)
at com.intellij.execution.process.ProcessHandler.notifyTerminated(ProcessHandler.java:187)
at com.intellij.execution.process.ProcessHandler.notifyProcessTerminated(ProcessHandler.java:183)
at com.intellij.execution.process.BaseProcessHandler.onOSProcessTerminated(BaseProcessHandler.java:59)
at com.intellij.execution.process.OSProcessHandler.onOSProcessTerminated(OSProcessHandler.java:204)
at com.intellij.execution.process.BaseOSProcessHandler$1.lambda$startNotified$0(BaseOSProcessHandler.java:96)
at com.intellij.execution.process.ProcessWaitFor.lambda$new$0(ProcessWaitFor.java:51)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:207)
at com.intellij.execution.process.ProcessWaitFor.lambda$new$1(ProcessWaitFor.java:33)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:834)

0

As it turns out, there is a mulfunction with the new update of R language plugin,

If you wanna get rid of the error, you need to unistall the latest update and download the previous one manually from the plugin's portal.

 

see solution below

https://stackoverflow.com/questions/63821296/how-to-solve-exit-code-3-with-intellij-idea-for-r-code?noredirect=1#comment113037428_63821296 

0

Please sign in to leave a comment.