Giter Club home page Giter Club logo

Comments (2)

tavianator avatar tavianator commented on May 27, 2024 1

See rust-lang/rust#37519 for some history about the behaviour of Command::spawn() on Windows. One useful suggestion from that issue is the which crate, which provides command resolution behaviour that may be closer to what CMD/PowerShell actually does to resolve executables.

Which xargs implementation are you using? Never mind, I see it's from git bash

from fd.

Kristinita avatar Kristinita commented on May 27, 2024

Type: Additional information

1. xargs + npx on Windows without WSL

When I run fd + npx CoffeeLint on Windows 11 without WSL, I get this output:

fd --print0 --extension coffee | xargs --null npx coffeelint
Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore

I don’t reproduce this behavior on continuous integration services perhaps because CIs have WSL pre-installed.

I think that WSL — too big dependency to run npx commands, and that it would be nice if Windows users without WSL could run npx commands use fd.

2. xargs implementation

Which xargs implementation are you using?

I added this information to my AppVeyor build. Yes, I used the xargs command from Git for Windows.

I can’t resolve the WSL problem when I also use the xargs command from Cygwin 3.5.1:

where xargs
D:\Chocolatey\tools\cygwin\bin\xargs.exe

D:\Chocolatey\tools\cygwin\bin\xargs.exe --version
xargs (GNU findutils) 4.9.0
Packaged by Cygwin (4.9.0-1)
Copyright (C) 2022 Free Software Foundation, Inc.

fd --print0 --extension coffee | D:\Chocolatey\tools\cygwin\bin\xargs.exe --null npx coffeelint
Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore

Thanks.

from fd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.