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

Ouverte
#1,076 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
ruby, vscode

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Ruby
Étoiles
1.3k
Forks
146
Métriques de merge des PR
Aucune PR mergée en 30 j

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de ruby/debug

Toutes les issues de ruby/debug

Issues similaires

Plus d'issues Ruby

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.