Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExecJS::RuntimeError filepath problem #74

Open
jean-damien opened this issue Apr 25, 2018 · 2 comments
Open

ExecJS::RuntimeError filepath problem #74

jean-damien opened this issue Apr 25, 2018 · 2 comments

Comments

@jean-damien
Copy link

Hello, I have had a recurring problem with ExecJS while trying launching my app. I'm running Ruby2.3.3 & Rails 5.1.4 on Windows 10.

I have a "SyntaxError: Caractère incorrect" on execjs (2.7.0) lib/execjs/external_runtime.rb:39:in `exec' at this line :

        begin
          **extract_result(@runtime.exec_runtime(filepath), filepath)**
        ensure
          File.unlink(tmpfile)
        end

When I print the filepath I get this :

"C:/Users/jdami/AppData/Local/Temp/execjs20180425-9972-1aoia44js"

Do you know if there's really an incorrect character ? I'm guessing maybe the "C:/" part might be the problem ?
Thanks a lot.

@rafaelfranca
Copy link
Member

Can you please provide a sample application that reproduces the error?

@jean-damien
Copy link
Author

I finally decided to install a VM with a linux OS to run my app, and I no longer encounter this problem. I guess it has to do with windows compatibility. I let you close this issue if you consider it ended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants