Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator is not indexing header files in docker container
QtWS25 Last Chance

Qt Creator is not indexing header files in docker container

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
2 Posts 2 Posters 542 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mehmet.alinbay
    wrote on last edited by
    #1

    Hi all;

    I wanted to make a setup with new docker plugin. My target system using ubuntu 18.04 with qt5 and host system is ubuntu 21.04. So instead of using vm I wanted to try docker plugin. Qt creator that I'm using is 7.0.2 and it can use docker container (container includes: cmake 3.16.3, gcc, qt4 and qt5, etc.) without problem. But Creator IDE is not indexing .h files (QT and non-QT) so developing code ise very messy and difficult. in IDE, I tried to set sysroot from docker container but it didn't work. Is there any ideas or what I'm missing?

    Thanks

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Marcus Tillmanns
      wrote on last edited by
      #2

      Hi,

      The Docker plugin in Qt Creator 7.0.2 is already quite old and still very experimental, so indexing is not expected to work at all. While in 9.0 the indexing is still not quite ready to use, you can already get some indexing to work by installing clangd in the docker and selecting it in the project settings. ( Projects => Project Settings => Clangd, underneath where you can edit the Build & Run configuration ). You do have to create the path manually though, as the file chooser does not support remote paths there yet. The path then needs to look similar to: "docker://qt-linux-llvm:latest/usr/bin/clangd".

      This at least allows you to jump to definitions inside your project. Qt Creator 10.0 will probably streamline this a lot more.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved