SUMMARY cannot compile cpp if the path has any space. STEPS TO REPRODUCE 1. create a directory containing a space 2. create any .cpp inside it 3. use tools>external tools>tools>compile and run cpp OBSERVED RESULT Compilation fails. The argument given to g++ lacks quotation marks around the paths. EXPECTED RESULT SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: 5.14.10-1-MANJARO (64-bit) (available in About System) KDE Plasma Version: 5.22.5 KDE Frameworks Version: 5.86.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION I believe this is solved by adding the quotation marks in the arguments inside the file /kate/addons/externaltools/externaltools-config/compile_and_run_cpp.
This problem is also present if I compile Kate from source in KDE Neon.
Can confirm. I think this is fix is trivial: simply enclosing all variables in "".
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/512
Git commit c710090c45fb5bb7b1a95bdd955139c611cfd278 by Thiago Sueto. Committed on 06/11/2021 at 22:42. Pushed by cullmann into branch 'master'. Fix compile cpp when path has spaces M +1 -1 addons/externaltools/externaltools-config/compile_and_run_cpp https://invent.kde.org/utilities/kate/commit/c710090c45fb5bb7b1a95bdd955139c611cfd278