Skip to content

Conversation

@twelvet-s
Copy link

I cannot run bat related commands such as npx properly under Windows. I hope to be able to start it more friendly, otherwise it may be troublesome or catastrophic for cross platform development, which has caused me to be unable to configure it properly. Therefore, I hope to get a fix. Thank you.

Unable to find relevant commands compatible with Windows

Signed-off-by: twelvet <[email protected]>
Strengthen model response judgment

Signed-off-by: twelvet <[email protected]>
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi - no star imports

@markpollack markpollack removed this from the 1.1.0.M1 milestone Sep 25, 2025
@tzolov tzolov assigned markpollack and unassigned tzolov Sep 29, 2025
@markpollack markpollack added this to the 1.1.0.M4 milestone Oct 22, 2025
if (OS_NAME.contains("win") && WIN_COMMAND.contains(command)) {
List<String> winArgs = new LinkedList<>(Arrays.asList("/c", this.command()));
winArgs.addAll(this.args);
return ServerParameters.builder("cmd.exe").args(winArgs).env(this.env()).build();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we need to add /c for windows and perhaps simliar -c for the unix one to be more robust. look at https://github.com/spring-attic/spring-cli/blob/efa39cd922aedcfd3b172a4bb9bfd1721c29d490/src/main/java/org/springframework/cli/command/SpecialCommands.java#L59

@ilayaperumalg ilayaperumalg modified the milestones: 1.1.0.M4, 1.1.0.RC1 Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants