ExternalRuntime command searching slightly incompatible with nodenv
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript, nodejs, ruby
- Área
- developer-experience, tooling
Línea de trabajo
Start by reading the ExternalRuntime command-search logic and reproducing the nodenv shim case described in the issue. Determine how an unusable node shim should be treated and verify that the runtime can fall back to JavaScriptCore when appropriate.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
(I thought a bit about how to correct this corner case without significant updates to the library, but didn't come up with anything that I could send over.)
When using nodenv to handle different node versions, but not having a global node version available, the ExternalRuntime logic breaks down. This is due to nodenv providing a path-accessible shim for the node binary regardless of whether it actually points to a valid node install. So, execjs will get through load time successfully, but fall over at runtime when actually shelling out to node.
Here is the gist of the environment:
$ which node
/Users/jimmy/.nodenv/shims/node
$ node
nodenv: node: command not found
The `node' command exists in these Node versions:
4.2.1
4.2.6
4.4.0
5.4.0
6.10.0
7.4.0
This can be avoided by explicitly preferring JavaScriptCore (assuming OSX), but I saw that the order of these was purposely swapped so I assume there are reasons things are the way they are currently. Ideally execjs wouldn't be picking up this install in the first place, and then falling back to JavaScriptCore on its own.
Not a big deal, as it is easily worked around, but it was a gotcha nonetheless and I wanted to make you aware of it.
- Lenguaje dominante
- Ruby
- Estrellas
- 581
- Forks
- 285
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de rails/execjs
-
Runtime stderr is missing from ruby error messagePosiblemente ocupada @arpitjain099 la tomó hace 168 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
Todos los issues de rails/execjs
Issues similares
-
Bug Ruby Waiting for: Product Owner
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
getsentry/sentry-ruby#3228 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
開発用DockerイメージにPlaywrightのシステム依存を追加するPosiblemente ocupada @momocus la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
sakazuki-org/sakazuki#1453 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
jenkins-infra/jenkins.io#9615 · 1 comentario ·
Los mantenedores suelen responder en 1 día