Skip to content

Swift can't find its subcommands from within emacs on Windows #69492

Open
@dabrahams

Description

@dabrahams

Description

strangely, if I do M-! (cmd-shift-1) and enter this shell command in Emacs on windows:

where swift && where swift-test.exe && swift test --pkg-config-path .

I get this output

C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\swift.exe
C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\swift-test.exe
error: unknown or missing subcommand 'swift-test.exe'

in other words, it can run swift and swift-test directly, but cannot run swift-test through swift. Git, which is similarly structured, doesn't show the same problem.. Suggests there might be something wrong with the way swift is invoking subcommands, although this works fine from a cmd shell.

compnerd.org Swift version 5.9-dev (LLVM 466a716843b7efb, Swift 39bac1c)
Target: x86_64-unknown-windows-msvc

Metadata

Metadata

Assignees

No one assigned

    Labels

    WindowsPlatform: WindowsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselflegacy driverArea → compiler: the integrated C++ legacy driver. Succeeded by the swift-driver projectswift 5.9unexpected errorBug: Unexpected error

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions