Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lechuckcaptain opened this issue Feb 9, 2024 · 0 comments

Comments

@lechuckcaptain
Copy link

lechuckcaptain commented Feb 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant