Qt Declarative (Quick 2)
Go to file
Sami Shalayel 7188ee3513 qmlls: put import warnings on the correct line
In qmllint, the import warnings are printed right after the "warnings
occurred while importing" warning despite them having no sourcelocation.

This warning gets a default sourcelocation when used in qmlls which
points to the first line of the file, so the "Failed to import" warning
ends up an the first line of a file, and not on the same line as the
"warnings occurred while importing" warning. This is confusing for users.

Modify a test to expect that the "Failed to import" warning has a valid
sourcelocation, so that it is shown on the correct line in qmlls.

Fixes: QTBUG-131958
Pick-to: 6.8 6.9
Change-Id: Ia0c327b82e89cd0a003d05b4c3efe693fb3b3ed7
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2024-12-11 14:26:05 +01:00
LICENSES Add REUSE.toml files and missing licenses 2024-10-29 14:00:19 +02:00
cmake Mark RegExpJitTables.h as non-module header 2023-04-03 15:38:57 +02:00
coin Change Axivion analysis result format 2024-06-28 13:40:35 +03:00
dist Add REUSE.toml files and missing licenses 2024-10-29 14:00:19 +02:00
examples Qt Quick for Android: Implement new onStatusChanged in examples 2024-12-11 12:12:10 +02:00
features
src qmlls: put import warnings on the correct line 2024-12-11 14:26:05 +01:00
tests qmlls: put import warnings on the correct line 2024-12-11 14:26:05 +01:00
tools qmlls: fix compatibility issue due to removal of "p" flag 2024-12-08 11:52:41 +01:00
.cmake.conf Port to std::(v)snprinf() and mark the module q(v)snprinf-free 2024-08-06 22:35:55 +00:00
.gitattributes
.gitignore gitignore: Add compile_commands.json and .ccache 2024-05-16 17:25:19 +02:00
.gitmodules
.tag Use tree hash rather than commit hash in .tag file 2022-01-25 23:55:27 +01:00
CMakeLists.txt Fix detection of CMake target ExamplesAssetDownloaderPrivate 2024-07-22 15:00:36 +02:00
README.md
REUSE.toml Correct AndroidManifest.xml licensing in REUSE.toml file 2024-11-05 09:27:25 +01:00
configure.cmake Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-09-07 17:01:30 +02:00
dependencies.yaml Update dependencies on 'dev' in qt/qtdeclarative 2024-12-08 14:02:06 +00:00
licenseRule.json Add a licenseRule.json file for checking of SPDX license identifiers 2024-07-01 16:33:02 +02:00
qt_cmdline.cmake Remove "2" from Qt Quick Controls directories 2022-12-01 10:26:20 +08:00
qtdeclarative.doxy