Can't use runtime because `File.executable?` returns false
まだ誰も着手していません。
評価
調査の方向性
Start in lib/execjs/external_runtime.rb at ExternalRuntime.locate_executable and reproduce the reported File.executable? result using the Docker, Ruby 2.7.4, and ExecJS 2.8.1 setup described. Compare the behavior for the present /usr/bin/node executable and identify the expected runtime-detection behavior; the issue does not name a test or a specific intended change.
索引モデルが issue の本文から書いたものです。
説明
Hey guys,
Something weird here. I'm getting the error below when trying to start the Docker container:
ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime.
After some debugging, I found a strange behavior on ExecJS::ExternalRuntime.locate_executable , where the File.executable?(full_path) is returning false, although the /usr/bin/node executable is present.
pry> File.stat('/usr/bin/node').owned?
=> true
pry(#<ExecJS::ExternalRuntime>)> File.executable?('/usr/bin/node')
=> false
pry(#<ExecJS::ExternalRuntime>)> File.file?('/usr/bin/node')
=> true
== Stack ==
Docker
Ruby 2.7.4
ExecJS 2.8.1
- 主要言語
- Ruby
- スター
- 578
- フォーク
- 286
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rails/execjs のほかの issue
-
Runtime stderr is missing from ruby error message対応中かも @arpitjain099 が 123 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 10/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
IHP-GmbH/IHP-Open-PDK#1266 ·
メンテナーはふだん 2 日以内に返信
-
Add Zammad対応中かも @Arslan-TR が今日担当しました。 オープンrequest
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
endoflife-date/endoflife.date#11298 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
performance v/6
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
WITCodingClub/calendar-backend#689 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
rubys/roundhouse#571 ·
メンテナーはふだん 1 日以内に返信