holgerbrandl / r4intellij

An integration of the R programming language into Intellij IDEA
BSD 2-Clause "Simplified" License
148 stars 28 forks source link

Debug Exception - debug not running? #185

Open clFaster opened 5 years ago

clFaster commented 5 years ago

When I try to run my R Script in debug mode, I get an exception in Pycharm:

com.r4intellij.debugger.exception.RUnexpectedExecutionResultTypeException: Actual type is not the same as expected: [actual: RESPONSE, expected: DEBUG_AT] at com.r4intellij.debugger.executor.RExecutorUtils.execute(RExecutorUtils.java:20) at com.r4intellij.debugger.function.RFunctionDebuggerBase.initCurrentLine(RFunctionDebuggerBase.java:148) at com.r4intellij.debugger.function.RFunctionDebuggerBase.(RFunctionDebuggerBase.java:61) at com.r4intellij.debugger.function.RBraceFunctionDebugger.(RBraceFunctionDebugger.java:19) at com.r4intellij.debugger.function.RFunctionDebuggerFactoryImpl.getFunctionDebugger(RFunctionDebuggerFactoryImpl.java:37) at com.r4intellij.debugger.RDebugger.prepareDebug(RDebugger.java:185) at com.r4intellij.debugger.RDebugger.advance(RDebugger.java:113) at com.r4intellij.run.debug.RDebugProcess.advance(RDebugProcess.java:299) at com.r4intellij.run.debug.RDebugProcess.access$100(RDebugProcess.java:41) at com.r4intellij.run.debug.RDebugProcess$4.run(RDebugProcess.java:221) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

After that debuging stucks, I didn't get any console output etc. When I run the same script in RUN mode it works fine.

My Code:

message("[ADA] starting ..")

library(getPass)
user.name <- getPass(msg = "Enter Username: ", noblank = TRUE, forcemask = TRUE)
user.pw <- getPass(msg = "Enter Password: ", noblank = TRUE, forcemask = TRUE)
holgerbrandl commented 5 years ago

Debugging is known to be buggy at the moment. Sorry for inconvenience.

HIJackone commented 5 years ago

i meet this bug too