Registered Member
|
I am trying to learn enough to contribute to KDE Plasma, especially the desktop environment. My first step is to work out what happens where in the code. I would like to use KDevelop but I cannot get the semantic analysis to function, which severely inhibits navigation and hence exploration.
My set-up is:
- a separate directory for kdesrc-build: ~/kde/src, ~/kde/build and ~/kde/usr. - I have not built a separate Qt but rely on my full installation in /usr/lib.
- if I use QT Creator the org.kde imports do work correctly where the directories contain plugins.qmltypes files; if I use qmlplugindump to create a (non-relocatable) plugins.qmltypes the import is read. - the environment variables QML2_IMPORT_PATH and QT_PLUGIN_PATH seeme to be correctly set (as evidenced by QT Creator working). - in Configure KDegvelop the QML Support plug-in is present and enabled, and Background Parser is enabled. - I have tried various combinations of directories in the Project-Open Configuration-Language Support-Includes/Imports tab but none have any effect on the problem. - running KDevelop from a terminal yields no obviously useful messages. Can anyone point me in the right direction? Thanks, Hugh Kernohan |
Global Moderator
|
FIrst of all, the QML plugin is not the most-used feature of KDevelop, it is possible that something is simply wrong.
That said, did you try configuring a custom include path for the module directories in the project settings? You could also try to run strace -f kdevelop 2>&1| grep 'some module' to see where KDevelop looks for it, that might tell you why it doesn't find anything.
I'm working on the KDevelop IDE.
|
Registered Member
|
Any success? Have the same problem but my QT Creator has import errors even for dirs with plugins.qmltypes files.
However, if I hover on error message it lists qml directory with needed components there. UPDATE: OK, solved it - the import paths must not contain links - so make sure readlink -f <path> returns <path> indeed. Thanks @scummos for the tip! Looks like QT Creator bug, isn't it? |
Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]