https://bugs.kde.org/show_bug.cgi?id=445939
Bug ID: 445939
Summary: Unable to run executable in cmd.exe because %workdir
path uses forward slashes
Product: kdevelop
Version: 5.5.0
Platform: Microsoft Windows
OS: Microsoft Windows
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
I want to run an executable built with CMake inside a separate cmd.exe window
because I need to type something into stdin (which seems to be not possible
with the built-in console window).
I put the following command into the "External terminal" field:
cmd.exe /C "start /D "%workdir" %exe"
But cmd.exe fails to start:
E:/Projects/project_name/build/windows/kdevelop-debug> cmd.exe /C "start /D
E:/Projects/project_name/build/windows/kdevelop-debug
E:/Projects/project_name/build/windows/kdevelop-debug/exe_name"
Invalid switch - "/Projects".
It seems to interpret part of the path to my executable as a switch, because
its command line flags being with "/".
I think that KDevelop should use native path separators inside the path to
%workdir on Windows.
STEPS TO REPRODUCE
1. Create an executable CMake project on Windows
2. Check "Use external terminal" and paste "cmd.exe /C "start /D "%workdir"
%exe""
3. Run the project
OBSERVED RESULT
E:/Projects/project_name/build/windows/kdevelop-debug> cmd.exe /C "start /D
E:/Projects/project_name/build/windows/kdevelop-debug
E:/Projects/project_name/build/windows/kdevelop-debug/exe_name"
Invalid switch - "/Projects".
*** Failure: Exit code 1 ***
EXPECTED RESULT
Expected to run the exe successfully
SOFTWARE/OS VERSIONS
Windows: 7 x64
--
You are receiving this mail because:
You are watching all bug changes.