ExecJS::RuntimeError filepath problem

Open
#74 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, rails, ruby
Domain
devtools

Research direction

Start with lib/execjs/external_runtime.rb:39 and the reported temporary filepath on Windows 10, using the stated Ruby, Rails, and ExecJS versions. Reproduce the SyntaxError and determine whether the filepath handling causes it; done means the reported failure is resolved or clearly narrowed to a reproducible runtime issue.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Ruby
Stars
578
Forks
286
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rails/execjs

All issues in rails/execjs

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.