question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`qmllint` does not work with PySide 6.4.1

See original GitHub issue

Usage: /home/nir/Desktop/tzv5hob/UI/.venv/lib/python3.10/site-packages/PySide6/qmllint [options] files
QML syntax verifier and analyzer

All warnings can be set to three levels:
    disable - Fully disables the warning.
    info - Displays the warning but does not influence the return code.
    warning - Displays the warning and leads to a non-zero exit code if encountered.


Options:
  --alias <level>                      Warn about alias errors (default:
                                       warning)
  --compiler <level>                   Warn about compiler issues (default:
                                       disable)
  --controls-sanity <level>            Performance checks used for
                                       QuickControl's implementation (default:
                                       disable)
  --deferred-property-id <level>       Warn about making deferred properties
                                       immediate by giving them an id. (default:
                                       warning)
  --deprecated <level>                 Warn about deprecated properties and
                                       types (default: warning)
  --import <level>                     Warn about failing imports and
                                       deprecated qmltypes (default: warning)
  --inheritance-cycle <level>          Warn about inheritance cycles (default:
                                       warning)
  --multiline-strings <level>          Warn about multiline strings (default:
                                       info)
  --multiple-attached-objects <level>  Warn if attached types from parent
                                       components aren't reused (default:
                                       disable)
  --plugin <level>                     Warn if a qmllint plugin finds an issue
                                       (default: warning)
  --property <level>                   Warn about unknown properties (default:
                                       warning)
  --required <level>                   Warn about required properties (default:
                                       warning)
  --signal <level>                     Warn about bad signal handler parameters
                                       (default: warning)
  --type <level>                       Warn about unresolvable types and type
                                       mismatches (default: warning)
  --unqualified <level>                Warn about unqualified identifiers and
                                       how to fix them (default: warning)
  --unused-imports <level>             Warn about unused imports (default:
                                       info)
  --with <level>                       Warn about with statements as they can
                                       cause false positives when checking for
                                       unqualified access (default: warning)
  -h, --help                           Displays help on commandline options.
  --help-all                           Displays help including Qt specific
                                       options.
  -v, --version                        Displays version information.
  -s, --silent                         Don't output syntax errors
  --json <file>                        Write output as JSON to file
  --write-defaults                     Writes defaults settings to .qmllint.ini
                                       and exits (Warning: This will overwrite
                                       any existing settings and comments!)
  --ignore-settings                    Ignores all settings files and only
                                       takes command line options into
                                       consideration
  --resource <resource>                Look for related files in the given
                                       resource file
  -I, --qmldirs <directory>            Look for QML modules in specified
                                       directory
  --bare                               Do not include default import
                                       directories or the current directory.
                                       This may be used to run qmllint on a
                                       project using a different Qt version.
  -i, --qmltypes <qmldirs>             Import the specified qmldir files. By
                                       default, the qmldir file found in the
                                       current directory is used if present. If
                                       no qmldir file is found,but qmltypes
                                       files are, those are imported instead.
                                       When this option is set, you have to
                                       explicitly add the qmldir or any qmltypes
                                       files in the current directory if you
                                       want it to be used. Importing qmltypes
                                       files without their corresponding qmldir
                                       file is inadvisable.
  -f, --fix                            Automatically apply fix suggestions
  --dry-run                            Only print out the contents of the file
                                       after fix suggestions without applying
                                       them
  --list-plugins                       List all available plugins
  -D, --disable-plugins <plugins>      List of qmllint plugins to disable (all
                                       to disable all plugins)
  -P, --plugin-paths <directory>       Look for qmllint plugins in specified
                                       directory

Arguments:
  files                                list of qml or js files to verify


Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
nrbnlulucommented, Nov 28, 2022

Hi, there is an update in Qt-bug tracker

command should be:

qmllint --json -
1reaction
seanwu1105commented, Nov 26, 2022

@nrbnlulu This is an undocumented breaking change from the upstream after 6.4.1. I have opened a bug report here: https://bugreports.qt.io/browse/PYSIDE-2135.

If they decide to stick with the change, I will try to build a workaround for it. Using PySide 6.3.x for now to avoid such error messages if you want.

Read more comments on GitHub >

github_iconTop Results From Across the Web

qmllint | Qt Quick 6.4.1 - Qt Documentation
qmllint is a tool shipped with Qt, that verifies the syntatic validity of QML files. It also warns about some QML anti-patterns.
Read more >
AUR (en) - pyside6-tools - Arch Linux
-> Stripping unneeded symbols from binaries and libraries... -> Compressing man and info pages... ==> Checking for packaging issues... ==> ...
Read more >
Visual Studio Code Extension Qt for Python - GitHub
The following list shows the supported variables you can use in extension ... working directory upon the startup of VS Code (currently not...
Read more >
Qt Creator Design mode disabled for Qt Quick / PySide6 project
1, the Design Mode is disabled. I can only code in QML in Edit Mode. I can easily reproduce the problem by just...
Read more >
PySide6 - PyPI
The Qt for Python project is developed in the open, with all facilities you'd expect ... cd pyside-setup git checkout 6.x # if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found