- Queries
- All Stories
- Search
- Advanced Search
Advanced Search
Dec 9 2018
Dec 8 2018
Dec 7 2018
Refactored for current git/master.
Dec 6 2018
This revision was not accepted when it landed; it landed in state "Needs Review".
Dec 5 2018
Updated as requested.
Dec 4 2018
undesirable qWarning() removed
Dec 3 2018
FIxed and streamlined version.
Also, considering that "session" in `Core::initialize` is user-specified and defaults to an empty string, please do not use a 100% deterministic name,
No, it went beyond that: the original underlying principle was "don't assume or hardcode /usr/local anywhere, use whatever install prefix the user specified".
Dec 2 2018
Actually, issues with clang temp files is why I started to think about this kind of change but ultimately I realised it didn't seem such a bad idea at all to put all KDevelop-related temporary files in a dedicated location. I often clean out a bunch of KDevelop's own temp files that were left behind, e.g. after a crash. I just didn't mention them because they're negligible in size (and I purge before their numbers really start to grow).
On Linux quite possibly too, I think many packaging systems install into some temporary dir and then copy the deployment out of there for archiving.
Dec 1 2018
The python script changes were committed to the master branch as requested (db05710cb6931a7b44d7fc70bfcfe75c7ccc9f4a).
Nov 30 2018
The change doesn't change the default, but why would using '/usr' (instead of '/usr/local') be worse than using 'c:\Program Files' under MS Windows?
Nope. It *does* change the default if KDevelop's install prefix is not /usr/local.
Nov 27 2018
David, it seems our posts crossed, or did you actually see the new version I just uploaded?
Fixed the AppleTerminal oversight in the non-Apple lldbrc.
Nov 26 2018
A more complete draft:
bump?
Nov 25 2018
You will notice that I plan to maintain an option to disable the Apple-specific behaviour for anyone who depends on the current behaviour (that includes me, but your script would also continue to work). Cf. the APPLE_FORCE_X11 option
Allowing negative prios makes sense.
Nov 24 2018
Nov 23 2018
Can we set DATAROOTDIR=/Library/Application Support/KDE so that everything remains nicely bundled?
At that time hinting with freetype wasn't state of the art due to patent issues, but that has changed with the v40 engine in freetype 2.7.
The current KCM already has a control for that.
Found this by accident, and had only one immediate thought
That'll probably be when we move to Qt6.
Nov 22 2018
includes the root cmake file changes.
a find_packge for `KF5::WindowSystem` is missing in the root CMakeLists file.
Can you rebase it over the last master branch ?
FWIW, anyone can request changes to a review, but also accept it. And while I would probably not take that as a green light to commit unless it comes from a known KDE dev it *does* go to show demand/need for a change. And hopefully, confirmation that it doesn't only work for the author.
Refactored for the standalone DrKonqi repo and disabled the integration testing on Mac.
Sorry, I had updating this on my list but it drifted to the bottom...
Nov 21 2018
Actually, I realise this patch too is a somewhat stripped down version of a patch I've been using for a long time in my MacPorts packaging for Okular:
@rjvbb what do you say? makes sense?
This change does more than just enabling hidpi support in the plist.
Nov 20 2018
Found back my ML post entitled
("compiledb-generator and the generic Makefile proj.manager"). Francis Herne replied
*this*:
That must have been magic code then, quick, try to catch it, we all want that ;)
Not supported, since in your case KDevelop simply does not know a compile_commands.json exist,
Nov 19 2018
Well, apparently the contextmenu CAN change during a session (at least on Mac and when I open it in different opened-at-session-load documents when the initial project load and parsing activity is still in progress).
This implements and uses my idea of an ecm_add_<lang>_compiler_flags_if_supported function set for C and C++. It uses compiler ID+version conditions to determine if flag(s) are supported when those conditions are known and reliable - otherwise and only then does it resort to querying the compiler.
E.g. I would have expected before looking at things that each view has their own separate context menu instance, possibly even created on the fly per display :)
Another fix: use the active MainWindow as the parent of the contextMenuData instance and do NOT delete it in the TextDocumentPrivate dtor.
Nov 18 2018
Apologies, the tear-off bit shouldn't have been included of course.
updated as suggested:
- moves the context menu added stuff logic into a dedicated class (as an upbeat to possible future improvement)
- caches the QMenu* to which actions were last added, and removes them from that menu when the next context menu is shown. This should be equivalent to removing the items on contextMenuAboutToHide.
Sh@@t, sorry, I allowed some unrelated (and potential future) changes to pollute this version. Will fix tomorrow.
I would see the flaw also in that there is no specification in the KTextEditor API how the context menu is shared/reused.
Nov 17 2018
I've made a few more usability changes, and renamed the new menu action to "Configure..." because it corresponds to what the action does.
In case anyone wonders why this has gone undetected: I think because of an undocumented feature, the fact aboutToShowContextMenu was called for all views. Indeed, with the KTextEditor fix in place the duplication issue occurs also without loading the CTags plugin (= with stock KDevelop code).
New patch, same purpose, active principle as outlined in the reopening comment.
Re-opening because I found an actual flaw in KDevelop after noticing that context menu duplication still occurred when only the active view receives the aboutToShowContextMenu signal.
I'm late to this party, but what about projects where the user generates the missing compile_commands.json file manually, e.g. via the compiledb utility? Does this change mean clazy analysis is now possible only for projects where you do NOT need to generate that json file by hand?
Nov 16 2018
Btw., the 2 nullptr in the disconnect can be left out, or?
Something side-ways related: I went down this hole because cmake's generate_export_header failed because of an unsupported flag that was added.
Regardless of how we implement things here, shouldn't there be something like ecm_generate_export_header which empties CMAKE_CXX_FLAGS temporarily because calling CMake's version and then restores the variable? There's no feedback at all in this function, the generated export header just contains dummy EXPORT macros, leaving the user to wonder why the linker fails. Or should the visibility flags also be set conditionally, after setting all other compiler options?
Thus these places need to be turned into: ... if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "3.8") elseif(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "8.1.0")
A simpler version, setting CMAKE_<LANG>_FLAGS directly (also fixes a persistence error in my previous implementation).