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

Pass tests on CI for macOS #75

Merged
merged 1 commit into from
Nov 5, 2022
Merged

Pass tests on CI for macOS #75

merged 1 commit into from
Nov 5, 2022

Conversation

ono-max
Copy link
Member

@ono-max ono-max commented Nov 5, 2022

VS code overrides The PATH environment variable:
https://github.com/microsoft/vscode/blob/1.73.0/src/vs/server/node/extensionHostConnection.ts#L59
Thus, when we execute ruby command like ruby target.rb, the ruby path may be wrong as follows

The PATH environment variable before running VS Code:
/Users/runner/work/vscode-rdbg/vscode-rdbg/node_modules/.bin:/Users/runner/work/vscode-rdbg/node_modules/ ... /bin:/Users/runner/hostedtoolcache/Ruby/3.1.2/ ...

The PATH environment variable after running VS Code:
/usr/local/lib/ruby/gems/3.0.0/bin:/usr/local/opt/ruby@3.0/ ... /Users/runner/work/vscode-rdbg/vscode-rdbg/node_modules/.bin:/Users/runner/work/vscode-rdbg/node_modules/

To solve this problem, I set The RUBY_DEBUG_TEST_PATH environment variable for getting correct ruby path when testing.

@ono-max ono-max force-pushed the patch-16 branch 2 times, most recently from 68766ce to 032bb3d Compare November 5, 2022 13:25
@ono-max ono-max changed the title Set ruby path Pass tests on CI for macOS Nov 5, 2022
@ono-max ono-max marked this pull request as ready for review November 5, 2022 13:27
@ono-max
Copy link
Member Author

ono-max commented Nov 5, 2022

Rebased.

@ko1 ko1 merged commit 65b8fba into ruby:master Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants