Qt Creator, clangd, CMake and CUDA
-
Hi guys, I'm just starting to use Qt Creator the past month even though I knew about it for decades now. I'm moving from CLion and VSCode but faced two issues so far:
-
When Clangd is busy parsing the project after editing a .cpp file, I'm getting short freezes in QtCreator on Gnome Desktop where a 'Close' and 'Wait' dialog boxes appear and I need to be careful not to click on Close. This is probably due to the main thread waiting for clangd to complete parsing the currently edited source file and in my opinion should be forked in an auxiliary thread that synchronizes with the main thread occasionally. Are there any tweaks I don't know about I should modify in QtCreator?
-
Qt Creator on a CMake project fails to parse and highlight properly .cu and .cuh files. The CMake is fine and works well with CLion and VSCode (with small interventions in .clangd) but I am not able to get proper code error detection working in .cu files.
How do I make clangd on QyCreator work well with CUDA files in a CMake project, which otherwise works fine?
Thanks,
Z -
-
Hi guys, I'm just starting to use Qt Creator the past month even though I knew about it for decades now. I'm moving from CLion and VSCode but faced two issues so far:
-
When Clangd is busy parsing the project after editing a .cpp file, I'm getting short freezes in QtCreator on Gnome Desktop where a 'Close' and 'Wait' dialog boxes appear and I need to be careful not to click on Close. This is probably due to the main thread waiting for clangd to complete parsing the currently edited source file and in my opinion should be forked in an auxiliary thread that synchronizes with the main thread occasionally. Are there any tweaks I don't know about I should modify in QtCreator?
-
Qt Creator on a CMake project fails to parse and highlight properly .cu and .cuh files. The CMake is fine and works well with CLion and VSCode (with small interventions in .clangd) but I am not able to get proper code error detection working in .cu files.
How do I make clangd on QyCreator work well with CUDA files in a CMake project, which otherwise works fine?
Thanks,
Z@asenzz I have https://bugreports.qt.io/browse/QTCREATORBUG-28861 opened.
Can you provide a small project that highlights the issue? Either comment on that bug or here.
-
-
The project I'm using QtCreator with is Tempus https://github.com/asenzz/tempus-core and any of the cu files located in SVRRoot/OnlineSVR/src/*.cu are giving me the errors as described here https://forum.qt.io/topic/3042/moved-qtcreator-and-cuda-cu-files/4