Question: Could not load source 'Fastfile': not found, while debugging a Fastlane lane from VSCODE

Abierto
#1,076 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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
ruby, vscode

Línea de trabajo

Reproduce the issue in the linked debug-fastlane example using the terminal command and the rdbg --open=vscode command, after running bundle install. Compare how each mode resolves the Fastfile source, then verify that the VS Code session can open and debug custom_lane as the terminal session does.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Your environment

  • ruby -v: ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin23]
  • rdbg -v: rdbg 1.9.1

Describe the bug
I'm not an expert here (so I'm probably missing something) but I was recently trying to debug a custom Fastlane lane with rdbg using vscode with the following terminal command:

rdbg --open=vscode -c -- bundle exec fastlane custom_lane

But it seems that the editor cannot load the source file: the Fastfile (see attached screenshot). I would guess that some context information are not correctly passed to the editor (am I missing some parameters?).

image

If I debug from the terminal, using the following command:

rdbg -c -- bundle exec fastlane custom_lane

Everything seems to work correctly (see attached screenshot).

image

I prepared an example repo to easily reproduce the issue.

Thanks in advance for your support, and sorry if it's a stupid question 😅

To Reproduce

  • Checkout the example repo
  • Install the required gems with bundle install
  • Debug from terminal with: rdbg -c -- bundle exec fastlane custom_lane
  • Debug from vscode with: rdbg --open=vscode -c -- bundle exec fastlane custom_lane

Expected behavior
I would expect to debug the custom_lane similarly from both terminal and vscode.

Lenguaje dominante
Ruby
Estrellas
1.3k
Forks
146
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ruby/debug

Todos los issues de ruby/debug

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.