RInno icon indicating copy to clipboard operation
RInno copied to clipboard

Microsoft JScript compilation error 800A03EE.

Open hooty668 opened this issue 6 years ago • 36 comments

I had an error when opening the app. it seems to have trouble running json2.js. This line in particular:
j = eval('(' + text + ')'); i ran the example and everything was fine. Any ideas on what is happening?

image

hooty668 avatar Jan 03 '18 23:01 hooty668

It looks like when i print '(' + text + ')' i get:

image

Which seems as though it is duplicating.

hooty668 avatar Jan 04 '18 00:01 hooty668

I've seen that error on older versions of Windows. Can you run Sys.info() and provide the results here? Thanks!

Dripdrop12 avatar Jan 05 '18 02:01 Dripdrop12

"Windows" "7 x64" "build 7601, Service Pack 1" "x86-64"
I got around it by placing it in my public folder. The problem I am having now is sourcing functions in my ui. I have R functions that I placed in my app directory and I source them in my ui. Is there any particular your suppose to do this?

hooty668 avatar Jan 05 '18 16:01 hooty668

All the files in your app_dir should be installed along with your ui.R and server.R files. It respects any directories you create, so you can use relative references to source those functions into your app. For example, if my_func is in "app_dir/extras", you should be able to source it with: source("extras/my_func.R").

For details, check out ?RInno::files (?RInno::files_section for >= v0.2.0)

Dripdrop12 avatar Jan 05 '18 16:01 Dripdrop12

I figured out what was going on with the R Functions, however i am getting the original problem again. Originally I could choose the destination folder to be Public (during installation) and that fixed the problem, Now it doesn't give me that option when I go through the RInno_installer in the app. Any Ideas?

hooty668 avatar Jan 08 '18 17:01 hooty668

That option is controlled by the default_dir argument of create_app (or setup/setup_section). The installer should always give you the option to change the default installation drive. For more information, check out the documentation of default_dir in ?RInno::setup (or ?RInno::setup_section for >= v0.2.0).

Dripdrop12 avatar Jan 11 '18 18:01 Dripdrop12

I am getting the same error when trying to open an app: Line: 504 Char: 18 Error: Expected ')' Code: 800A03EE Source: Microsoft JScript compilation error

Here is the result of Sys.info():

sysname "Windows" release "7 x64" version build 7601, Service Pack 1" machine "x86-64"

ghost avatar Feb 22 '18 16:02 ghost

I am getting the exact same error using Windows 10: Line: 504 Char: 18 Error: Expected ')' Code: 800A03EE Source: Microsoft JScript compilation error

Here is the result of Sys.info(): Windows

= 8 x64 build 9200 DESKTOP-5SUMVE0 x86-64

Any help greatly appreciated! Thank you,

Antony

peaceengine avatar Feb 22 '18 17:02 peaceengine

Gentleman, Has this issues been resolved? I obtain an identical to other posters above, following the example provided on the Rinno home page: install.packages("RInno") require(RInno) RInno::install_inno() example_app(app_dir = "app") create_app(app_name = "myapp", app_dir = "app") compile_iss()

The error is given as follow: Error: Expected ')' Code: 800A03EE Source: Microsoft JScript compilation error

This package has a lot of promise, if the error can be resolved!

biometrica avatar Apr 12 '18 15:04 biometrica

Unfortunately, not. It's a shame as I'd love to use R to make distributable programs. I need Rinno because the files it has to load up are just too big to use for web. I really don't want to move to Python. Hope it can be solved! ))

peaceengine avatar Apr 12 '18 20:04 peaceengine

@peaceengine Thanks for the update. I ended up programming a solution using: https://www.r-bloggers.com/deploying-desktop-apps-with-r/

However, the above methodology is not as elegant as what Rinno seems to offer, and generates a hefty sized package to distribute to the user. @Dripdrop12 please update users when this is resolved and I'll be sure to retest.

biometrica avatar Apr 12 '18 20:04 biometrica

I am not able to reproduce this error, and don't know java but you those of you having issues might try replacing in json2.js with this version and reporting if you still get the error.

chasemc avatar Apr 12 '18 20:04 chasemc

I have the same issue. I just tried replacing the json2.js file but it did not solve the issue.

J-Sieber avatar Apr 13 '18 15:04 J-Sieber

It looks like IE does some syntax checking on JScript (which it wrongly recognizes as Java Script), and it expects a ")" in that possition... here is a link that may help in one-off situations.

Is this also happening for people using Chrome?

Regardless, the long term fix is to remove all browsers from the framework by creating a stand-alone UI #21 (thanks @trybik for the inspiration here).

Dripdrop12 avatar Apr 13 '18 17:04 Dripdrop12

I use Chrome but also have IE installed. I followed the instructions from the link but still have the issue. Using Windows 10.

J-Sieber avatar Apr 13 '18 18:04 J-Sieber

I am using Windows 10 and tried with Firefox, Chrome and Edge.

peaceengine avatar Apr 14 '18 22:04 peaceengine

Is there any update on this thread? I'm also facing the same issue.

jackliu333 avatar May 17 '18 10:05 jackliu333

I'm not able to reproduce the error. I've tried it on multiple machines with different configurations, but never gotten it. If someone can figure out what is causing it on their machines, I'd be happy to address it!

Dripdrop12 avatar May 17 '18 13:05 Dripdrop12

I get this problem with both my own project and the demonstration example. I have tried it on win 10 and win 7. I have set the default browser to firefox and chrome on the win 10 machine. I tried it with 32 bit and 64 bit R. I don't know if this matters, but R is installed in the Documents folder instead of programs folder and did all programming in RStudio.

akorejwa avatar Jun 06 '18 15:06 akorejwa

Is your R library in Documents (that is normal)? Or is the rscript.exe installed there as well?

Dripdrop12 avatar Jun 06 '18 17:06 Dripdrop12

I take back what I said earlier. R is in Programs/, the library is in Documents/. (I didn't see an R folder in the x86 Programs folder and assumed the bin/ was under Documents/R/).

akorejwa avatar Jun 06 '18 20:06 akorejwa

I was having the same issue. I included all the library dependencies on the ui.R file, and seems to work now.

cwg940 avatar Jun 27 '18 00:06 cwg940

I think I have narrowed it down to adding the closing part in server.R. Once I add the session section:

function(input, output, session) {

  output$distPlot <- renderPlot({

    # generate bins based on input$bins from ui.R
    x    <- faithful[, 2] 
    bins <- seq(min(x), max(x), length.out = input$bins + 1)

    # draw the histogram with the specified number of bins
    hist(x, breaks = bins, col = 'darkgray', border = 'white')

  })

  session$onSessionEnded(function() {
    stopApp()
    q("no")
  })

}

Then I start getting this error. It works before adding in the session section but it does not close properly.

J-Sieber avatar Jun 27 '18 14:06 J-Sieber

@J-Sieber I started experiencing this error message when adding the onSessionEnded function to my server function as well. Hope this helps

segoldma avatar Jul 02 '18 20:07 segoldma

Has this been resolved yet? I am stuck at this point.

natewells25 avatar May 30 '19 17:05 natewells25

I have managed to reproduce the bug and also to get rid of it. When I followed the minimal example (https://cran.r-project.org/web/packages/RInno/vignettes/Introduction.html) it ended up with the error message. But when I also specified the arguments include_R = TRUE and include_Rtools = TRUE) in create_app() it did not end up with the error message. This also worked for my own app. A possible clue: the installer mentioned that the Rtools version on my computer is different from the one in the installer. I forced the version within the installer. Does this help?

Sys.info(): $sysname [1] "Windows" $release [1] ">= 8 x64" $version [1] "build 9200" $machine [1] "x86-64"

stitam avatar Jun 24 '19 14:06 stitam

@stitam : I am facing the same issues and including include_R = TRUE and include_Rtools = TRUE does not resolve the issue for me.

Unfortunately none of the other approaches for resolving worked neither.

tobiasblasberg avatar Jun 27 '19 13:06 tobiasblasberg

@tobiasblasberg @stitam

Has any progress been made toward solving this issue? I've attempted builds on Windows 7 and Windows 10 and I've used the include_R and include_RTools flag but I'm still experiencing the same error.

mxfeinberg avatar Sep 07 '19 20:09 mxfeinberg

I literally learnt Python because I couldn’t do this in R. Such a shame R doesn’t have this ability. Hope things change.

From: Max Feinberg [email protected] Sent: 07 September 2019 21:31 To: ficonsulting/RInno [email protected] Cc: Antony Butts [email protected]; Mention [email protected] Subject: Re: [ficonsulting/RInno] Microsoft JScript compilation error 800A03EE. (#44)

@tobiasblasberg https://github.com/tobiasblasberg @stitam https://github.com/stitam

Has any progress been made toward solving this issue? I've attempted builds on Windows 7 and Windows 10 and I've used the include_R and include_RTools flag but I'm still experiencing the same error.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ficonsulting/RInno/issues/44?email_source=notifications&email_token=ACVGCFVMDIFGHX5Y2UURWXLQIQFRVA5CNFSM4EKJTX72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6FBWTA#issuecomment-529144652 , or mute the thread https://github.com/notifications/unsubscribe-auth/ACVGCFXHNE5VXTDIX6PCNIDQIQFRVANCNFSM4EKJTX7Q . https://github.com/notifications/beacon/ACVGCFRGCTVEIAJ6I2HRRRTQIQFRVA5CNFSM4EKJTX72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6FBWTA.gif

peaceengine avatar Sep 07 '19 21:09 peaceengine

@Dripdrop12 do you have any input?

mxfeinberg avatar Sep 10 '19 01:09 mxfeinberg