fix: resolve jbang deps search hang on Windows #2549 - #2568
Conversation
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| @@ -44,21 +44,22 @@ | |||
| import java.util.stream.Collectors; | |||
There was a problem hiding this comment.
these changes in NetUtil seems unrelated?
| .build(); | ||
| try (ToolkitRunner r = ToolkitRunner.builder().bindings(bindings).build()) { | ||
|
|
||
| dev.tamboui.tui.TuiConfig config = null; |
There was a problem hiding this comment.
please don't use fully qualified classnames unless actually required.
Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
01c2649 to
760b956
Compare
|
pushed fixes for the review - will merge when test passes |
@maxandersen thanks for the review and remedial. |
Title
fix: resolve jbang deps search hang on WindowsFixes #2549
Description
This PR resolves the issue where
jbang deps searchhangs indefinitely and produces no output when run on Windows.Cause
The terminal backend in JBang for the
deps searchTUI widget is implemented using TamboUI'stamboui-aesh-backend.By default, the backend's constructor instantiates a new
org.aesh.terminal.tty.TerminalConnectionto connect to the system terminal. However, because JBang is already running within an active Aesh shell session, trying to open a second native system terminal connection to the same console session on Windows results in a conflict/deadlock, causing the process to hang without displaying the UI.Solution
org.aesh.terminal.Connectioninstance from Aesh's command invocation context usingcommandInvocation.getShell().connection().search(Connection connection, String initialQuery)method.