https://bugs.kde.org/show_bug.cgi?id=499888

Igor Kushnir <igor...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/kdev
                   |                            |elop/kdevelop/-/commit/e44d
                   |                            |716a4adec12343dc63e64b3c6e6
                   |                            |e2be79244
         Resolution|---                         |FIXED
   Version Fixed In|                            |6.3.250800
             Status|ASSIGNED                    |RESOLVED

--- Comment #11 from Igor Kushnir <igor...@gmail.com> ---
Git commit e44d716a4adec12343dc63e64b3c6e6e2be79244 by Igor Kushnir.
Committed on 15/05/2025 at 09:33.
Pushed by igorkushnir into branch 'master'.

ParseSessionData: locate an installed file, not directory

Uninstalling a program such as KDevelop removes its installed files but
not directories. Consider the following scenario:
1) the user installs KDevelop into the prefix /usr/local;
2) the user uninstalls KDevelop;
3) the user installs KDevelop into the prefix /usr.

Assuming that /usr/local has a higher priority than /usr, locating the
directory "kdevclangsupport/wrappedQtHeaders" in ParseSessionData()
produces the path /usr/local/share/kdevclangsupport/wrappedQtHeaders.
The file
/usr/local/share/kdevclangsupport/wrappedQtHeaders/QtCore/qobjectdefs.h
was removed during the uninstallation step, so KDevelop cannot detect
signals and slots anymore.

Locate the file kdevclangsupport/wrappedQtHeaders/QtCore/qobjectdefs.h
instead and truncate last segments of its path to obtain the parent and
grandparent directory paths. The empty directories left over from
previous KDevelop installations into higher-priority locations are
ignored now.

A side effect of this commit is that now the path
kdevclangsupport/wrappedQtHeaders/QtCore is added before rather than
after the path kdevclangsupport/wrappedQtHeaders. This should be fine.
FIXED-IN: 6.3.250800

M  +11   -8    plugins/clang/duchain/parsesession.cpp

https://invent.kde.org/kdevelop/kdevelop/-/commit/e44d716a4adec12343dc63e64b3c6e6e2be79244

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to