Skip to content

Conversation

ahayzen-kdab
Copy link
Collaborator

Related to #975

Copy link

codecov bot commented Oct 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (c415678) to head (cc86524).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1343   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           75        75           
  Lines        13038     13082   +44     
=========================================
+ Hits         13038     13082   +44     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ahayzen-kdab ahayzen-kdab force-pushed the 975-improve-support-for-qmlls-qmllint branch 2 times, most recently from 481be2d to d131194 Compare October 8, 2025 16:34
@ahayzen-kdab ahayzen-kdab force-pushed the 975-improve-support-for-qmlls-qmllint branch from d131194 to b96068e Compare October 15, 2025 13:45
@ahayzen-kdab ahayzen-kdab force-pushed the 975-improve-support-for-qmlls-qmllint branch from b96068e to cc86524 Compare October 15, 2025 14:03
Comment on lines +853 to +857
// TODO: clean the old module target
// however if there is a sub uri this cleans that too
// so we should only remove files and not sub folders?
// dir::clean(dir::module_target(&qml_uri))
// .expect("Failed to clean qml module export directory!");
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as we now produce a/b/qmldir etc if we also had a sub qml module of a/b/c/qmldir that is removed by the clean of the other module, so we would only remove the files from within the export directory and not any sub folders?

MESSAGE(STATUS "qmllint not found. Please install it")
else()
file(GLOB QMLLINT_QML_FILES ${CMAKE_CURRENT_SOURCE_DIR}/qml/**/*.qml)
add_test(NAME example_qml_features_qmllint_check COMMAND ${QMLLINT_COMMAND} --max-warnings 0 -I ${CMAKE_CURRENT_BINARY_DIR}/cxxqt/qml_modules ${QMLLINT_QML_FILES})
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs to be disabled for Qt 5 as the qmllint tool doesn't have --max-warnings as we only likely want to support Qt 6 for linting and language server anyway...

QmlModule::new("com.kdab.cxx_qt.demo")
.qml_files([
"../qml/main.qml",
"../qml/pages/ContainersPage.qml",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these files potentially end up being specified wrong in the qmldir?

Warning: 9:1: ../qml/pages/InvokablesPage.qml is listed as component in /home/runner/work/cxx-qt/cxx-qt/build/examples/qml_features/cxxqt/qml_modules/com/kdab/cxx_qt/demo/qmldir but does not exist.

And we might need to copy them into the resultant qml module folder like CMake does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants