Feed Advanced Search

Feb 10 2019

dakon added a comment to D18857: optimize CMakeBuildDirChooser::buildDirSettings().

The QByteArray was already created the same way, now the intermediate object is just cached. But even if that did not change anything it reduces the number of utf8 conversion as only those lines that actually match anything will be converted.

Feb 10 2019, 12:28 PM · KDevelop
apol added a comment to D18857: optimize CMakeBuildDirChooser::buildDirSettings().

I wonder if that's actually faster. Here we are creating intermediary copies of the QByteArray only to convert to QString.

Feb 10 2019, 12:21 PM · KDevelop
apol accepted D18856: CMakeBuildDirChooser: avoid calling deprecated KUrlRequester::setPath().
Feb 10 2019, 12:18 PM · KDevelop

Feb 9 2019

gennad added a member for KDevelop: gennad.
Feb 9 2019, 6:55 AM
gennad added a watcher for KDevelop: gennad.
Feb 9 2019, 6:54 AM

Feb 8 2019

dakon requested review of D18857: optimize CMakeBuildDirChooser::buildDirSettings().
Feb 8 2019, 4:58 PM · KDevelop
dakon requested review of D18856: CMakeBuildDirChooser: avoid calling deprecated KUrlRequester::setPath().
Feb 8 2019, 4:55 PM · KDevelop
arrowd added a reviewer for D18758: Make Project::open() method use async KIO methods.: KDevelop.
Feb 8 2019, 1:28 PM · KDevelop

Feb 7 2019

rjvbb added a comment to D7930: Kdevelop CMake plugin : use canonical paths to build.dir.

Question to @apol: from what I can grasp CMakeTargetItem::m_builtUrl is cmake-internal cuisine so there shouldn't be any need to store it in canonical fashion but rather reason(s) to store it exactly as cmake knows it?

Feb 7 2019, 9:38 AM · KDevelop
hase removed a watcher for KDevelop: hase.
Feb 7 2019, 4:13 AM

Feb 6 2019

aaronpuchert added a comment to D18551: clang: Create preamble only on second parse.

I can't say that it happens systematically but neither that it does NOT happen systematically, and I mean that in general: re-opening a file you just closed.

Isn't this unavoidable BTW, given that we don't end up with preambles of all files?

Feb 6 2019, 12:35 AM · KDevelop

Feb 5 2019

arrowd requested review of D18758: Make Project::open() method use async KIO methods..
Feb 5 2019, 12:43 PM · KDevelop
arrowd closed D18463: Workaround the bug found by ASan, which can be seen on FreeBSD CI..
Feb 5 2019, 9:37 AM · KDevelop
kfunk added a comment to D18463: Workaround the bug found by ASan, which can be seen on FreeBSD CI..

Commit message ideally. Truncate the report where applicable.

Feb 5 2019, 9:29 AM · KDevelop
rjvbb added a comment to D18551: clang: Create preamble only on second parse.
Is the parser triggered again if the entire project has been parsed already?
Feb 5 2019, 9:12 AM · KDevelop
arrowd added a comment to D18463: Workaround the bug found by ASan, which can be seen on FreeBSD CI..

Oh, sorry, I forgot to press "Submit" on Phab and thought I posted ASan log here.

Feb 5 2019, 8:57 AM · KDevelop
mwolff requested changes to D15530: kdev-clang : somewhat more complete ObjC(++) support.
Feb 5 2019, 7:32 AM · KDevelop
mwolff accepted D18463: Workaround the bug found by ASan, which can be seen on FreeBSD CI..

please still attach the full ASAN report to your commit - i.e. put it into your commit message

Feb 5 2019, 7:31 AM · KDevelop
aaronpuchert added a comment to D18551: clang: Create preamble only on second parse.

preambles are not created during the initial import except possibly for the files that opened with the session if the parser is triggered twice for those.

Feb 5 2019, 1:23 AM · KDevelop

Feb 4 2019

rjvbb set the repository for D15530: kdev-clang : somewhat more complete ObjC(++) support to R32 KDevelop.
Feb 4 2019, 10:07 AM · KDevelop
rjvbb updated the diff for D15530: kdev-clang : somewhat more complete ObjC(++) support.

Comment removed.

Feb 4 2019, 10:07 AM · KDevelop
rjvbb added inline comments to D15530: kdev-clang : somewhat more complete ObjC(++) support.
Feb 4 2019, 10:06 AM · KDevelop
rjvbb abandoned D14469: KDevelop: word wrapping the problem text in the Problem Reporter (WIP).
Feb 4 2019, 9:32 AM · KDevelop

Feb 3 2019

rjvbb added a comment to D18551: clang: Create preamble only on second parse.

No, sorry, I am a bit confused by your notation and the fact you seem to consider only files that are open when you start a session and then probably confused myself a bit more while answering.

Feb 3 2019, 6:39 PM · KDevelop
arrowd updated the diff for D18463: Workaround the bug found by ASan, which can be seen on FreeBSD CI..

Remove code used for description.

Feb 3 2019, 5:09 PM · KDevelop
aaronpuchert added a comment to D18551: clang: Create preamble only on second parse.

If line 3 means "files opened after (1)" then yes, that's probably correct.

Feb 3 2019, 4:07 PM · KDevelop

Feb 2 2019

rjvbb added a comment to D18551: clang: Create preamble only on second parse.
where (1) = entire project is parsed on import. Is that correct?
Feb 2 2019, 8:03 PM · KDevelop
aaronpuchert added a comment to D18551: clang: Create preamble only on second parse.

The way I understand it, the proposals are slightly different. Maybe we can summarize them as follows:

Feb 2 2019, 4:13 PM · KDevelop
rjvbb added a comment to D18551: clang: Create preamble only on second parse.

Is Milian's suggestion different from mine of setting the flag only when projects are not parsed entirely on import (which may be easier to test for where the flag is set, I haven't checked)?

Feb 2 2019, 8:47 AM · KDevelop

Feb 1 2019

aaronpuchert added a comment to D18551: clang: Create preamble only on second parse.

I'm fine with that, but would prefer never having it. Not all files that are opened will be edited, and the delay caused by creating the preamble after the first edit is probably negligible over the lifetime of a session. It would also allow us to just drop affected preambles when a header is edited — otherwise we might have to recreate all preambles that include the header.

Feb 1 2019, 11:18 PM · KDevelop
rjvbb added a comment to D14469: KDevelop: word wrapping the problem text in the Problem Reporter (WIP).
never seen this, please investigate and fix it
Feb 1 2019, 7:54 PM · KDevelop
mwolff added a comment to D14469: KDevelop: word wrapping the problem text in the Problem Reporter (WIP).

But for some reason I'm not getting any tooltips in that reporter at all at the moment.

Feb 1 2019, 4:49 PM · KDevelop
rjvbb added a comment to D14469: KDevelop: word wrapping the problem text in the Problem Reporter (WIP).

What I meant is that tooltips in the problem reporter appear when you hover the mouse over an entry, and disappear again when you move the mouse back to the text editor (and certainly when you need to scroll the editor window because the tooltip covers the area where you need to be). But for some reason I'm not getting any tooltips in that reporter at all at the moment.

Feb 1 2019, 1:41 PM · KDevelop
mwolff added a comment to D18551: clang: Create preamble only on second parse.

again: why don't we keep this flag when the file is opened in the editor?

Feb 1 2019, 12:41 PM · KDevelop
mwolff requested changes to D18463: Workaround the bug found by ASan, which can be seen on FreeBSD CI..

please show the full ASAN report, but the second change looks fine to me - if we get an event during destruction of the tool view action, m_dock may be gone already and thus accessing it may be broken already

Feb 1 2019, 12:32 PM · KDevelop
mwolff added a comment to D14469: KDevelop: word wrapping the problem text in the Problem Reporter (WIP).

tooltips don't take keyboard focus, so I don't understand your first note. also the tooltip only shows up (in the editor) while you keep ALT pressed.

Feb 1 2019, 12:30 PM · KDevelop

Jan 31 2019

aaronpuchert added a comment to D18551: clang: Create preamble only on second parse.

To clarify, the patch back then was less about the first-time delay, and more about the delay being there *every* time because of wrong usage of the API. Whether the delay occurs once is arguably a bit less important.

Jan 31 2019, 12:37 AM · KDevelop

Jan 30 2019

rjvbb added a comment to D18551: clang: Create preamble only on second parse.

So there should indeed be some real-world benchmarking data to do a cost/benefit analysis that includes the human-in-the-loop aspect and huge projects like the ones Aaron uses. We already have an estimated 10% gain for a full reparse of a small project after its initial import.

Jan 30 2019, 9:06 AM · KDevelop

Jan 29 2019

brauch added a comment to D18551: clang: Create preamble only on second parse.

To clarify, the patch back then was less about the first-time delay, and more about the delay being there *every* time because of wrong usage of the API. Whether the delay occurs once is arguably a bit less important.

Jan 29 2019, 11:42 PM · KDevelop
aaronpuchert added a comment to D18551: clang: Create preamble only on second parse.

Aaron, don't your arguments apply to parsing an entire project on startup as well? I can easily imagine that opening and parsing entire projects of the size you mention must have a non-negligible cost regardless of all optimisation and caching that is currently implemented

It definitely does. Sometimes I just cancel it, but sometimes I need the entire index to understand some code. (“Find uses” is very useful for that.)

Jan 29 2019, 10:06 PM · KDevelop
rjvbb added a comment to D15797: [kdev-clazy] : use canonical paths.

To put it bluntly: you should have asked that 3 months ago ;)
I really can't remember if I had a specific reason or if this is just the result of a search/replace.

Jan 29 2019, 3:56 PM · KDevelop
kossebau added inline comments to D15797: [kdev-clazy] : use canonical paths.
Jan 29 2019, 2:32 PM · KDevelop
arrowd closed D18122: Fix Xdebug disconnecting after php finished if multiple connections are allowed.
Jan 29 2019, 2:19 PM · KDevelop
Petross404 added inline comments to D17908: kdevelop-msvc.bat finds VS-2017 based on a registry key on Windows..
Jan 29 2019, 10:34 AM · KDevelop
Petross404 added a comment to D17908: kdevelop-msvc.bat finds VS-2017 based on a registry key on Windows..

you can pick whatever you prefer for the reviews for now.

do you have commit rights? if so, please feel free to push this directly, otherwise someone from us can take care of that for you

Jan 29 2019, 10:21 AM · KDevelop
mwolff accepted D17908: kdevelop-msvc.bat finds VS-2017 based on a registry key on Windows..

you can pick whatever you prefer for the reviews for now.

Jan 29 2019, 9:44 AM · KDevelop
rjvbb added a comment to D18551: clang: Create preamble only on second parse.

Aaron, don't your arguments apply to parsing an entire project on startup as well? I can easily imagine that opening and parsing entire projects of the size you mention must have a non-negligible cost regardless of all optimisation and caching that is currently implemented
There is a setting for this feature. A similar switch for the preamble thing will probably be difficult to label comprehensively but maybe a coupling can be made with the full-project-parse switch?

Jan 29 2019, 9:26 AM · KDevelop
mmrozowski abandoned D18346: Fix typo in move cursor left action in QtCreator shortcuts theme.

Obsoleted by https://invent.kde.org/kde/kdevelop/merge_requests/5

Jan 29 2019, 5:10 AM · KDevelop
aaronpuchert added a comment to D18551: clang: Create preamble only on second parse.

Preambles are there to speed up repeated reparsing. Most translation units won't be reparsed in a typical session. Since we pay for every preamble we create, I don't think we should create them unless we've some indication that a file needs to be parsed again. It's pretty safe to assume that a file needs to be reparsed again if we parse it for the second time. There is probably no better indicator, which is why this is the default.

Jan 29 2019, 1:16 AM · KDevelop

Jan 28 2019

pino added a comment to D17760: astyle: support the system astyle library.

do we have custom patches in our libastyle?

Jan 28 2019, 8:28 PM · KDevelop
Petross404 updated the diff for D17908: kdevelop-msvc.bat finds VS-2017 based on a registry key on Windows..

Upload the minimum diff.

Jan 28 2019, 7:34 PM · KDevelop
rjvbb added a comment to D17289: KDevelop/Shell: set dedicated TMPDIR.
we use CXTranslationUnit_CreatePreambleOnFirstParse to get code completion results fast. otherwise the first code completion request would create the preamble, which felt much worse
Jan 28 2019, 10:52 AM · KDevelop
rjvbb added a comment to D18551: clang: Create preamble only on second parse.
On my test file, time spent in clang_codeCompleteAt goes down from ~700ms
Jan 28 2019, 10:40 AM · KDevelop
mwolff requested changes to D17760: astyle: support the system astyle library.

do we have custom patches in our libastyle? I hope not, but it's been too long for me to remember. If not, then I guess we should get rid of our copy of lbiastyle and just disable kdevastyle if that dependency wasn't found - it's pretty optional anyways.

Jan 28 2019, 10:36 AM · KDevelop
mwolff added a comment to D18346: Fix typo in move cursor left action in QtCreator shortcuts theme.

yes, push to 5.3 and we'll merge it to master

Jan 28 2019, 10:21 AM · KDevelop
mwolff accepted D17618: Fix override function signature of createCompletionContext().

lgtm now, sorry for the delay - can you push that yourself? if not, please tell us your email address and name to associate with the commit

Jan 28 2019, 10:10 AM · KDevelop
mwolff requested changes to D18551: clang: Create preamble only on second parse.

it was measured back then:

Jan 28 2019, 10:07 AM · KDevelop
rjvbb added a comment to D18551: clang: Create preamble only on second parse.

Replying to a remark by Milian on D17289 where this idea came up:

Jan 28 2019, 9:54 AM · KDevelop
wcancino added a comment to D18122: Fix Xdebug disconnecting after php finished if multiple connections are allowed.

Hello all, No I do not have dev account, you can associate this patch to
wcancino@gmail.com

Jan 28 2019, 8:43 AM · KDevelop
pino added a comment to D17760: astyle: support the system astyle library.

ping?

Jan 28 2019, 7:18 AM · KDevelop

Jan 27 2019

mwolff requested changes to D17289: KDevelop/Shell: set dedicated TMPDIR.

we use CXTranslationUnit_CreatePreambleOnFirstParse to get code completion results fast. otherwise the first code completion request would create the preamble, which felt much worse

Jan 27 2019, 9:14 PM · KDevelop
mwolff requested changes to D15530: kdev-clang : somewhat more complete ObjC(++) support.

please paste compiler errors instead of showing screenshots

Jan 27 2019, 7:52 PM · KDevelop
mwolff requested changes to D14633: Fix drag'n'drop behaviour in ProjectTreeView plugin.
Jan 27 2019, 7:31 PM · KDevelop
mwolff added a comment to D14633: Fix drag'n'drop behaviour in ProjectTreeView plugin.

sorry for the long delay. personally, I like what I'm seeing in the video, could you cleanup the patch a little please? and does ensureVisible help maybe?

Jan 27 2019, 7:31 PM · KDevelop
mwolff requested changes to D17908: kdevelop-msvc.bat finds VS-2017 based on a registry key on Windows..

sorry for the long delay, it sounds like a good idea but the diff is super hard to review since it contains lots of unrelated whitespace changes

Jan 27 2019, 7:23 PM · KDevelop
mwolff requested changes to D18567: Make testActiveDocumentsGetBestPriority() clean up after itself.

great initiative, but could you check if this could be done in a more generic way potentially? if not then I'm all for getting this in as-is otherwise

Jan 27 2019, 7:21 PM · KDevelop
thomassc added a comment to D18224: Clang Plugin: Report some problems from included files.

This new patch (hopefully) addresses the test flakiness that I observed before:
https://phabricator.kde.org/D18567

Jan 27 2019, 7:20 PM · KDevelop
thomassc added a reviewer for D18567: Make testActiveDocumentsGetBestPriority() clean up after itself: KDevelop.
Jan 27 2019, 7:16 PM · KDevelop
thomassc requested review of D18567: Make testActiveDocumentsGetBestPriority() clean up after itself.
Jan 27 2019, 7:15 PM · KDevelop
arrowd added inline comments to D14391: Fix random order of plugin's config pages.
Jan 27 2019, 5:55 PM · KDevelop
rjvbb accepted D18551: clang: Create preamble only on second parse.

In case someone thinks that creating the pch file when you open a file causes a noticeable lag during the opening process: if so this would also be the case when configuring KDevelop not to parse the entire project on import. I use that mode all the time and never noticed any such lag.

Jan 27 2019, 2:16 PM · KDevelop
rjvbb closed D15797: [kdev-clazy] : use canonical paths.
Jan 27 2019, 10:32 AM · KDevelop

Jan 26 2019

aaronpuchert added a comment to D17618: Fix override function signature of createCompletionContext().

Wouldn't that be an opportunity to add the override specifier? The commit message could state "Fix function signature of ... to override".

Jan 26 2019, 11:35 PM · KDevelop
mwolff accepted D15797: [kdev-clazy] : use canonical paths.

lgtm now, note that you now need to push to the new gitlab remote at git@invent.kde.org:kde/kdevelop.git

Jan 26 2019, 11:14 PM · KDevelop
mwolff accepted D18325: Debugger plugin fixes.

lgtm, thanks. note that you now need to push to the new gitlab remote (git@invent.kde.org:kde/kdevelop.git) cf. https://invent.kde.org/kde/kdevelop for future reviews

Jan 26 2019, 11:12 PM · KDevelop
mwolff accepted D18122: Fix Xdebug disconnecting after php finished if multiple connections are allowed.

since noone else is using this plugin, I'd say let's push this! @wcancino do you have a developer account? if not, then we can commit this for you. Please then give us your email address to associate with the commit then.

Jan 26 2019, 11:09 PM · KDevelop
croick closed D18511: Provide debugger name and pid when registering a debugger to DrKonqi.
Jan 26 2019, 11:01 PM · KDevelop
mwolff added a comment to D18218: Properly display argument names of template functions.

@thomassc: A separate context could help, yes. But if you find alternative ways to handle it, like proposed here, then not using a separate context could potentially work out too. But it feels a bit hackish to handle the template args specially everywhere instead of putting them into a proper context.

Jan 26 2019, 11:01 PM · KDevelop
rjvbb added a comment to D18551: clang: Create preamble only on second parse.

It'd be interesting to have an estimate of how much faster this makes that initial parse.

Jan 26 2019, 10:36 PM · KDevelop
mwolff abandoned D15899: Fix segfault on project reload with cmake.
Jan 26 2019, 10:29 PM · KDevelop
mwolff commandeered D15899: Fix segfault on project reload with cmake.

finally got it working, man that old code was broken :D I wrote most of that a really long time ago, and it shows!

Jan 26 2019, 10:28 PM · KDevelop
aaronpuchert added a comment to D17289: KDevelop/Shell: set dedicated TMPDIR.

I've tried to unlink certain files after they were created but reverted that again when I started getting crashes in the parser. Not that reverting helped against that...

Yes, I believe that's not going to work. Clang doesn't keep the preamble files open, but expects them to stay.

Jan 26 2019, 9:15 PM · KDevelop
mwolff added a comment to D15899: Fix segfault on project reload with cmake.

sadly my initial attempt doesn't work either ;-) I'm looking at this some more now and will let you know once I've found an alternative approach

Jan 26 2019, 7:21 PM · KDevelop
narvaez closed D18414: Prevent the Extra Arguments ComboBox to Stretch Too Much.
Jan 26 2019, 5:54 PM · KDevelop
rjvbb added a comment to D17289: KDevelop/Shell: set dedicated TMPDIR.

There are mechanisms to ensure cleanup in any event by removing an open file on POSIX compatibles (close will then

Jan 26 2019, 4:18 PM · KDevelop
aaronpuchert requested review of D18551: clang: Create preamble only on second parse.
Jan 26 2019, 3:33 PM · KDevelop
aaronpuchert added a comment to D17289: KDevelop/Shell: set dedicated TMPDIR.

I've had a look at the Clang code. They actually go to some lengths to make sure all temporary files are deleted on a clean exit — they register all open temporary files and clean them up in an exit-time destructor. (See TemporaryFiles in lib/Frontend/PrecompiledPreamble.cpp.) However, this won't work in the case of a crash. They have some mechanisms for cleanup in the case of crashes, but I suspect that this works by setting a signal handler and is thus only available in the stand-alone executable. There are mechanisms to ensure cleanup in any event by removing an open file on POSIX compatibles (close will then automatically delete it), or FILE_FLAG_DELETE_ON_CLOSE on Windows. But that doesn't work for Clang, because they work with paths and don't pass file descriptors around.

Jan 26 2019, 2:45 PM · KDevelop
mwolff added inline comments to D18224: Clang Plugin: Report some problems from included files.
Jan 26 2019, 1:29 PM · KDevelop
mkraus added a comment to D15899: Fix segfault on project reload with cmake.

No problem, I could work with my patch :)

Jan 26 2019, 12:45 PM · KDevelop
mwolff requested changes to D15899: Fix segfault on project reload with cmake.

sorry for the long delay, I just tested this and I can reproduce the crash. But just like Aleix, I'm opposed to the suggested way of fixing it. The patch increases coupling without solving the underlying problem. To me, it looks like the list job simply must not store raw pointers, as that's inherently unsafe when we think about changes being done during the queued signal emission... I think to fix this properly, we need to refactor the listjob, and I have an idea on how to do that (operate on indexed strings instead of items, only lookup item when listjob has finished). I'll try this out now and get back to you afterwards.

Jan 26 2019, 12:04 PM · KDevelop

Jan 25 2019

rjvbb set the repository for D17289: KDevelop/Shell: set dedicated TMPDIR to R32 KDevelop.
Jan 25 2019, 11:13 PM · KDevelop
rjvbb updated the diff for D17289: KDevelop/Shell: set dedicated TMPDIR.

This version saves the original TMPDIR value, and adds a wrapper around QProcessEnvironment::systemEnvironment() that restores that original value. To keep changes to a minimum I've added that wrapper to the Core class itself.

Jan 25 2019, 11:12 PM · KDevelop
mwolff accepted D18414: Prevent the Extra Arguments ComboBox to Stretch Too Much.

lgtm, thanks

Jan 25 2019, 2:26 PM · KDevelop
mwolff accepted D18511: Provide debugger name and pid when registering a debugger to DrKonqi.

I think it's fine to commit this as-is

Jan 25 2019, 2:25 PM · KDevelop
rjvbb set the repository for D15530: kdev-clang : somewhat more complete ObjC(++) support to R32 KDevelop.
Jan 25 2019, 1:58 PM · KDevelop
rjvbb updated the diff for D15530: kdev-clang : somewhat more complete ObjC(++) support.

Updated as discussed.

Jan 25 2019, 1:57 PM · KDevelop
rjvbb added a comment to D15530: kdev-clang : somewhat more complete ObjC(++) support.

Where or how can I find what to put in the JSON comments?

Jan 25 2019, 12:50 PM · KDevelop
rjvbb added inline comments to D15530: kdev-clang : somewhat more complete ObjC(++) support.
Jan 25 2019, 12:41 PM · KDevelop
croick added a comment to D18511: Provide debugger name and pid when registering a debugger to DrKonqi.

Do you think we should check for the version of Plasma to make a distinction between DrKonqi versions?
I think not, the Debug feature is not (yet) very popular, but I would like another opinion.

Jan 25 2019, 9:39 AM · KDevelop
croick requested review of D18511: Provide debugger name and pid when registering a debugger to DrKonqi.
Jan 25 2019, 9:36 AM · KDevelop