You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GEM
remote: https://rubygems.org/
specs:
PLATFORMS
x86_64-linux
DEPENDENCIES
BUNDLED WITH
2.4.10
For Ruby-LSP to work for me, it has to detect anyGemfile.lock in the project root, hence why this is here. I could've removed it at this point and it'd still work since that's what makes it create .ruby-lsp.
Expected Behaviour
Something like when debugging JavaScript files using default Run Current File config from NodeJS for example this lovely one:
letone=1oneee
I can stay on Debug Console tab and see this:
If I'm on Problems tab for example, VSCode doesn't change the tab and the proper output is still in Debug Console.
Observed Behaviour
When I run the aforementioned Ruby file while having Debug Console focused, this is what happens:
Notice how it automatically jumped to Output tab. My Debug Console tab looks like this:
If I for example have Problems tab focused, it still jumps to the Output tab but my Debug Console tab does have output:
This might not be an Ruby-LSP problem but rather a VSCode problem, I am not sure, apologies if this is not the right repo.
The text was updated successfully, but these errors were encountered:
If debugging exit with an error (which is the case here, asdasdasd is undefined) the extensions show the OUTPUT tab. Running this debug on a file without error, do not jump to OUTPUT tab.
To be honest, I don't know why it's cleaning the DEBUG CONSOLE after redirecting only from this tab itself.
I feel quite weird to redirect to OUTPUT after saying "check the output channel for more information", I think this redirection is challengeable.
If maintainers are agreed with this last point, I can handle it if necessary.
On Shopify/vscode-ruby-lsp#989, we switched from the exit event to the close event, which means we wait for the stderr pipe to be closed before throwing the error. This makes it so that the backtrace of the debug server shows up in the debug console, making it much easier to diagnose issues.
I agree that we can now remove the automatic opening of the output tab 👍.
Operating System
Xubuntu 22.04 VM VirtualBox 7
Ruby version
3.2.2
Project has a bundle
Ruby version manager being used
rbenv
Description
The Setup
test.rb
file with these contents:Debug script
as the debug configls -a
output is as follows:ruby-lsp
previously, but I removed it:Gemfile.lock
in the project root, hence why this is here. I could've removed it at this point and it'd still work since that's what makes it create.ruby-lsp
.Expected Behaviour
Something like when debugging JavaScript files using default
Run Current File
config from NodeJS for example this lovely one:I can stay on
Debug Console
tab and see this:If I'm on
Problems
tab for example, VSCode doesn't change the tab and the proper output is still inDebug Console
.Observed Behaviour
When I run the aforementioned Ruby file while having
Debug Console
focused, this is what happens:Notice how it automatically jumped to
Output
tab. MyDebug Console
tab looks like this:If I for example have
Problems
tab focused, it still jumps to theOutput
tab but myDebug Console
tab does have output:This might not be an Ruby-LSP problem but rather a VSCode problem, I am not sure, apologies if this is not the right repo.
The text was updated successfully, but these errors were encountered: