oracle / fastr

A high-performance implementation of the R programming language, built on GraalVM.
Other
626 stars 64 forks source link

An internal error occurred #67

Closed rbotafogo closed 5 years ago

rbotafogo commented 5 years ago

Executing the following code in fastR console:

library('dplyr')

df1 = data.frame(x = 1:3)
print(df1)

form = quo(y <- a + x)
print(form)

mutate(df1, !!form)

returns:

An internal error occurred: "java.lang.ArrayIndexOutOfBoundsException: -1" fastr_errors_pid24394.log

steve-s commented 5 years ago

Hello Rodrigo,

thank you for the report. On the current master I am getting a different error:

> mutate(df1, !!form)
Error in mutate_impl(.data, dots) :
  Evaluation error: object 'a' not found.
In addition: Warning message:
In mutate_impl(.data, dots) :
  mismatched protect/unprotect (unprotect with empty protect stack)

in any case, we'll investigate and fix this.

rbotafogo commented 5 years ago

Hi Stepan,

The error you are getting is what I was expecting. So, maybe this will be in RC15.

Thanks

Em qui, 4 de abr de 2019 às 11:09, Stepan Sindelar notifications@github.com escreveu:

Hello Rodrigo,

thank you for the report. On the current master I am getting a different error:

mutate(df1, !!form) Error in mutate_impl(.data, dots) : Evaluation error: object 'a' not found. In addition: Warning message: In mutate_impl(.data, dots) : mismatched protect/unprotect (unprotect with empty protect stack)

in any case, we'll investigate and fix this.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/oracle/fastr/issues/67#issuecomment-479912838, or mute the thread https://github.com/notifications/unsubscribe-auth/AD0H8VQQXRyphdH2kXfGX7trJEnS-tWfks5vdgeZgaJpZM4cc1KD .

-- Rodrigo Botafogo

steve-s commented 5 years ago

Great, in that case please reopen this issue if it is not gone in RC15.