https://bugs.kde.org/show_bug.cgi?id=371565

Kevin Funk <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WAITINGFORINFO

--- Comment #3 from Kevin Funk <[email protected]> ---
I can't reproduce your problem, using latest KDevelop with Clang 3.9. All works
fine for me.

This is what I get:
```
Invocation: clang -ferror-limit=100 -fspell-checking -Wdocumentation
-Wunused-parameter -Wunreachable-code -Wall -std=c++11 -nostdinc -nostdinc++
-xc++ -isystem/home/kfunk/Downloads/path with spaces build
-isystem/usr/include/c++/6 -isystem/usr/include/x86_64-linux-gnu/c++/6
-isystem/usr/include/c++/6/backward -isystem/usr/local/include
-isystem/usr/lib/llvm-3.9/lib/clang/3.9.0/include
-isystem/usr/include/x86_64-linux-gnu -isystem/usr/include
-I/home/kfunk/Downloads/path with spaces -imacros /tmp/kdevelop.U27790
/home/kfunk/Downloads/path with spaces/folder/header.cpp
```

Note that the output here is slightly misleading, there are no '"' around the
include paths. Internally, the arguments are passed as a list of arguments,
thus spacing in one argument is not a problem.

Anyhow, in your case, the quoting indeed looks wrong:
```
-I/path with spaces/build" -I"/path with spaces
```

That's either because CMake creates a bogus compile_commands.json file or we
fail to parse it properly.

Could you please 
a) Check out the newest AppImage on https://www.kdevelop.org/download and try
to reproduce?
b) Post the contents of the compile_commands.json in the build directory?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to