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

Rubymine - mirrord doesn't load on macOS #134

Open
2 tasks
aviramha opened this issue Sep 3, 2023 · 3 comments
Open
2 tasks

Rubymine - mirrord doesn't load on macOS #134

aviramha opened this issue Sep 3, 2023 · 3 comments

Comments

@aviramha
Copy link
Member

aviramha commented Sep 3, 2023

ruby-3.1.4 installed via rvm

Status after #137 and #139:

  • Running with RVM is now supported.
  • When running with a non-RVM Ruby, the run is aborted and notifications are displayed.

TODO:

  • Support rbenv.
  • Support running Rubies that were not installed via a version manager.

Please add todos if there are other rubies we should support.

@infiniteregrets
Copy link
Contributor

This is really just a extension-level issue from my research, I had the Ruby extension installed by Peng Lv and the debug session wont start even without mirrord, failing with "Debugger terminal error: Process failed: spawn rdebug-ide ENOENT" , on looking at some open issues i found this rubyide/vscode-ruby#214. Had to add

"env": {
  "PATH": "/Users/mehularora/.rvm/gems/ruby-3.1.4/bin:/Users/mehularora/.rvm/gems/ruby-3.1.4@global/bin:/Users/mehularora/.rvm/rubies/ruby-3.1.4/bin:/Users/mehularora/.rvm/bin:/Users/mehularora/.nvm/versions/node/v18.17.1/bin:/Users/mehularora/.local/bin:/opt/homebrew/opt/ruby/bin:/Users/mehularora/.krew/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion Tech Preview.app/Contents/Public:/usr/local/share/dotnet:~/.dotnet/tools:/Applications/Wireshark.app/Contents/MacOS:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/mehularora/.cargo/bin:/Users/mehularora/Library/Application Support/JetBrains/Toolbox/scripts:/usr/local/bin:/usr/local/share/dotnet",
  "GEM_HOME": "/Users/mehularora/.rvm/gems/ruby-3.1.4",
  "GEM_PATH": "/Users/mehularora/.rvm/gems/ruby-3.1.4:/Users/mehularora/.rvm/gems/ruby-3.1.4@global",
  "RUBY_VERSION": "ruby-3.1.4"
}

make the session even start without mirrord in the first place, but no breakpoints hit, on debugging with the vscode extension our flow is correct, we fetch the correct binary to load into, its the extension thats not maintained and has been archived. Now on switching to shopify's extension https://github.com/Shopify/vscode-shopify-ruby everything works perfectly, with/without mirrord and no env interference takes place too, but i will add the abovementioned env for metalbear-co/mirrord#1892 as a precaution.

tldr, vscode-ruby doesnt work even without mirrord and using the shopify extension works

@aviramha aviramha transferred this issue from metalbear-co/mirrord-vscode Sep 3, 2023
@aviramha
Copy link
Member Author

aviramha commented Sep 4, 2023

fwiw above reply is regarding vscode, which didn't have any issue to begin with (I accidentally opened it there then moved the issue here)

I tried having some progress on it, found out that editing cmdLine.exePath doesn't help much, since it wraps it with rbenv + env.

@t4lz t4lz self-assigned this Sep 6, 2023
@t4lz t4lz mentioned this issue Sep 6, 2023
@t4lz t4lz removed their assignment Sep 7, 2023
@t4lz t4lz changed the title Rubymine - mirrord doesn't load Rubymine - mirrord doesn't load on macOS Sep 7, 2023
@infiniteregrets
Copy link
Contributor

Looking closely at the decompiled source - its clear that there are these 5 most important that we need to test with:
Screenshot 2023-09-24 at 11 43 52 PM

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

No branches or pull requests

3 participants