aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljsutils.cpp
diff options
context:
space:
mode:
authorSami Shalayel <sami.shalayel@qt.io>2025-11-24 14:57:53 +0100
committerSami Shalayel <sami.shalayel@qt.io>2025-12-05 19:36:07 +0100
commit8c93c5ee591a4bdb8edcb9350fe996fa481e112f (patch)
tree06ca70bc4177b7a904d3cb03f44ff7cf52e0c720 /src/qmlcompiler/qqmljsutils.cpp
parent7288db71848f7f52ebeb20d6680ac00dd16eafd7 (diff)
qmlls: don't use build directories as import paths
Don't mix build and import paths in qmlls. Use build paths for build path operation (finding .qmlls.build.ini, eventually resource files, CMake invocations, ...) and the import paths for imports (when linting and constructing the DOM). Only use build paths as import paths as a fallback, for projects running on Qt < 6.10. It turns out that our tests were making heavy use of "build folders are import paths". Modernize the tst_qmlls_modules tests to write a .qmlls.build.ini file in the build folder which contains the import paths. Also don't read the import path twice from the qmlls.build.ini file, and read it from the QQmlCodeModelManager, not the QQmlCodeModel. Add a test for importPathsForFileUrl() that used to duplicate the import paths. Task-number: QTBUG-141707 Change-Id: I9eceb743bf37bc0f743954a0e7b1e5831f1989fa Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljsutils.cpp')
0 files changed, 0 insertions, 0 deletions