-
Notifications
You must be signed in to change notification settings - Fork 196
Setup on Windows machines picks wrong terminal #1776
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
Comments
I am having a similar problem but on Linux with
but pwsh doesn't have an The extension should probably always use bash if that's what it's expecting |
Currently, we use the shell to activate the Ruby environment using the correct version and gem paths. We need to use the default shell because that's typically where users have their version manager configuration (things like sourcing This coupling with the shell has proved brittle and too easily broken by different shells, configurations or plugins. I am exploring trying to fully decouple us from the shell, so that this class of problems can go away. However, it will take a little bit to get that done as it'll require ensuring that it works for all version managers we support. |
We made a preview release with a re-work of how Ruby activation works. If you'd like to give that a try and provide feedback if it works for your setups, that would be helpful. |
It appears to work just fine now! |
I'm very happy to hear that! Ruby environment activation is not easy to get right, so I appreciate the patience and the feedback. Too many combinations of shells, version managers, operating systems, etc. The new activation mechanism will remain as experimental (preview release) until we can iron out any bugs or edge cases we didn't foresee. Hopefully this will be a much smoother experience for everybody. |
This issue is being marked as stale because there was no activity in the last 2 months |
This should be fixed in the latest v0.7.0. Please let us know if that's not the case. |
Uh oh!
There was an error while loading. Please reload this page.
Operating System
Windows 11
Ruby version
3.2.2
Project has a bundle
Ruby version manager being used
no manager
Description
The flow of things on a windows machine is pretty much as follows:
C:\Git\bin\bash.exe -ic 'ruby -rjson -e "STDERR.printf(%{RUBY_ENV_ACTIVATE%sRUBY_ENV_ACTIVATE}, JSON.dump({ env: ENV.to_h, ruby_version: RUBY_VERSION, yjit: defined?(RubyVM::YJIT) }))"' bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell
The reason I'm not using any version manager is that whatever I'm trying to use, VS-Code tries to run the background task in CMD, which isn't really configured to be used for anything, so it fails to find the version managers or ruby itself.
The flow appears to be "CMD -> Bash -> Ruby".
I tried to change all VS Code Settings related to this, but had no luck whatsoever.
I'm using Git Bash as my default terminal everywhere else on my computer, even as the default terminal within VS Code.
The text was updated successfully, but these errors were encountered: