Docker plugin compiles project, but Qt Creator complain about lots of parse issues.
-
I successfully created docker image, was able to manually run it and compile qmake and CMake based project inside.
I included Docker plugin from Utilities branch. Added new device (docker based) and auto-detect kit.
Build command send from Qt Creator (hammer icon) executed successfully.
Even running output binary worked fine.Only problem - lots of parse issue in Editor panel.
My current setup is executed on desktop where all needed libraries and includes are present -so I have confirmation that Qt Creator didn't have problem with those parse issues.How to solve them? How to tell C++ model to be updated/parsed properly? What am I missing?
PS: I faced similar problem when I created kit for cross-compilation for embedded system. Project compiled and executed (on target) cleanly, but Qt Creator complained about lots of missing or undeclared elements.
Qt Creator 7, Qt 5.15, Debian testing, gcc 9
-
When I opened C++ Code Model Inspector (Tools-> Debug Qt Creator -> Inspect C++ Code Model ...) , then tab Snapshots and Documents.
Then in Global/Indexing snapshot or Current Editor's Snapshot showed that ... <vector> is red/unrecognized, QFile, QJsonObject or QObject also.In other main tab of this panel - Project Paths, eg. subTab Header paths I see paths leading to places with QtCore includes. So paths from Code model lead to existing locations with QObject or QFile or QJson... But Qt Creator claims there are missing.