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

Add launch.json config to debug Sorbet pipeline #312

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

egiurleo
Copy link

Motivation

This debug config launches the main Sorbet executable to type check the provided file path (with Prism).

Test plan

Tested manually.

Will remove before upstreaming.

This debug config launches the main Sorbet executable to type check
the provided file path (with Prism).
@egiurleo egiurleo self-assigned this Oct 29, 2024
@egiurleo egiurleo merged commit 0cd6d8f into prism Oct 29, 2024
1 check passed
@egiurleo egiurleo deleted the emily/debug-pipeline branch October 29, 2024 20:57
@amomchilov amomchilov changed the title Add launch.json config to debug Sorbet pipeline Add launch.json config to debug Sorbet pipeline Oct 29, 2024
"preLaunchTask": "Build with Prism",
"stopOnEntry": false,
"sourceMap": {
"${env:BAZEL_EXEC_ROOT}": "${workspaceFolder}",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the other launch action relies on Prepare tests debugging task to export BAZEL_EXEC_ROOT, I didn't expect this to work.
But even after restarting the editor with a complete reset, this action can still work.

After a bunch of tests, I found that this would just work 🤯

            "sourceMap": {
                "": "${workspaceFolder}",
            },

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

Successfully merging this pull request may close these issues.

3 participants