Skip to content

Detached Execution is not working in Windows when using clang #872

@coder3101

Description

@coder3101

Describe the bug

Detached execution is not working on Windows 10 with clang

To Reproduce

  1. Run detached and instead of launching program it says 'C:/Users/<name>/AppData/Local/Temp/CP" "Editor-iGoJIc/sol' is not recognized as an internal or external command,
    operable program or batch file.

Screenshots

Environment

Windows 10 21H1
Build from master (4756571)

Additional context

The problem is no related with spaces in path to executable, it seems to be related with the fact that cmd can only execute programs with ending .exe.

A compile command like g++ hello.cpp -o hello produces hello.exe however, clang++ hello.cpp -o hello it produces hello.

To be on safe side we can pass the path with suffix (exe) and it produces correct binary for both the compilers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershigh_priorityHigh Priority Issues are marked with this label.windowsAffecting Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions