Feed Advanced Search

Jan 29 2019

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
rjvbb added a comment to D17289: KDevelop/Shell: set dedicated TMPDIR.

I was referring to @mwolff's comment D17289#395163.

Jan 25 2019, 6:16 AM · KDevelop
aaronpuchert added a comment to D18224: Clang Plugin: Report some problems from included files.

To some extent that problem is going to disappear as soon as concepts are more widely used. GCC ≥ 6 already supports them and I expect Clang to follow suit — there is already a prototype.

Jan 25 2019, 2:07 AM · KDevelop

Jan 24 2019

aaronpuchert added a comment to D17289: KDevelop/Shell: set dedicated TMPDIR.

If you don't use systemd, for example because you're not on Linux, there are certainly other tools for doing the same thing.

How does that systemd thing clean tmp dirs at runtime, IOW, how can it know it's safe to clean up a given file if the application that created it doesn't do something explicit to guarantee cleanup?

Jan 24 2019, 11:23 PM · KDevelop
arrowd closed D15565: Fix bug 389060 (Heaptrack analysis keeps firing /usr/bin/plasmoidviewer).
Jan 24 2019, 5:25 PM · KDevelop
mwolff requested changes to D14391: Fix random order of plugin's config pages.

so, I believe we need to change some things here...

Jan 24 2019, 4:25 PM · KDevelop
mwolff resigned from D14432: Appwizard plugin. Add more repository information in the project file. .
Jan 24 2019, 3:59 PM · KDevelop
mwolff accepted D15565: Fix bug 389060 (Heaptrack analysis keeps firing /usr/bin/plasmoidviewer).

please just push it to master

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

please add tests for the features you add - it's probably enough to add one or two files to tests/files/ and use the JSON comments to verify everything is parsed properly?

Jan 24 2019, 3:56 PM · KDevelop
Sergobot abandoned D774: Add zoom buttons to documentation view and make it able to zoom documentation using Ctrl + mouse wheel.
Jan 24 2019, 1:23 PM · KDevelop
rjvbb added a comment to D17289: KDevelop/Shell: set dedicated TMPDIR.
If you don't use systemd, for example because you're not on Linux, there are certainly other tools for doing the same thing.

How does that systemd thing clean tmp dirs at runtime, IOW, how can it know it's safe to clean up a given file if the application that created it doesn't do something explicit to guarantee cleanup?

Jan 24 2019, 8:34 AM · KDevelop

Jan 23 2019

aaronpuchert added a comment to D17289: KDevelop/Shell: set dedicated TMPDIR.

Temporary files being left behind after a crash is not unusual. This is why systemd has systemd-tmpfiles --clean.

Not really relevant outside of the systemd realm, right? :)

Jan 23 2019, 11:01 PM · KDevelop
mwolff requested changes to D18224: Clang Plugin: Report some problems from included files.
Jan 23 2019, 8:16 PM · KDevelop
rjvbb added a comment to D14469: KDevelop: word wrapping the problem text in the Problem Reporter (WIP).

I completely forgot about this one, for some reason the patch was moved out of my active set (possibly because of lineheight calculation issues).

Jan 23 2019, 4:08 PM · KDevelop
rjvbb added a comment to D17289: KDevelop/Shell: set dedicated TMPDIR.
Jan 23 2019, 3:46 PM · KDevelop
arrowd requested review of D18463: Workaround the bug found by ASan, which can be seen on FreeBSD CI..
Jan 23 2019, 6:33 AM · KDevelop

Jan 22 2019

mmrozowski added a comment to D18346: Fix typo in move cursor left action in QtCreator shortcuts theme.

I haven't pushed anything since KDE svn days but my account should be set up I think. One way to find out. Which branches? master and 5.3?
Or just 5.3 and you're merging to master once in a while?

Jan 22 2019, 12:20 AM · KDevelop

Jan 21 2019

mwolff closed D18229: Contextbrowser: Ability to show combined problems and decl tooltip.
Jan 21 2019, 5:08 PM · KDevelop
mwolff added a comment to D18224: Clang Plugin: Report some problems from included files.

without digging into the patch myself (I'll have to see whether I can find time for this), could we solve more of the open TODOs by reporting problems for *all tail* child diagnostics that point at the current file? And then reference the "parent" from them somehow? I.e. I believe currently, we have something like this (bare with me, it was quite some time since I worked on this):

Jan 21 2019, 4:54 PM · KDevelop
mwolff closed D18218: Properly display argument names of template functions.
Jan 21 2019, 4:42 PM · KDevelop
frmdstryr added a member for KDevelop: frmdstryr.
Jan 21 2019, 1:40 PM
mwolff accepted D18229: Contextbrowser: Ability to show combined problems and decl tooltip.

unrelated - but potential future work: does keyboard navigation work across tooltips? I.e. 'ALT + ARROW'?

Jan 21 2019, 9:51 AM · KDevelop

Jan 20 2019

thomassc added a comment to D18224: Clang Plugin: Report some problems from included files.

I moved the code into helper functions and added an initial version of the tests. The tests for having the function and the call in the same file, and for having a chain of template functions in the same file include QEXPECT_FAIL(). In principle it would be easy to generate additional problems for these cases, but then a single actual problem would be represented by multiple problems in the same file. Maybe it would be cleaner to make a single problem have multiple ranges.

Jan 20 2019, 9:07 PM · KDevelop
pino added inline comments to D18224: Clang Plugin: Report some problems from included files.
Jan 20 2019, 7:35 PM · KDevelop
thomassc updated the diff for D18224: Clang Plugin: Report some problems from included files.

Make helper functions and add tests, as requested by Milian.

Jan 20 2019, 7:30 PM · KDevelop
narvaez requested review of D18414: Prevent the Extra Arguments ComboBox to Stretch Too Much.
Jan 20 2019, 7:22 PM · KDevelop
thomassc added a comment to D18218: Properly display argument names of template functions.

I just noticed this old bug: https://bugs.kde.org/show_bug.cgi?id=368460
Should the template parameters be put into a separate context?

Jan 20 2019, 6:07 PM · KDevelop
volden abandoned D18326: Fix compilation on Windows.

Already fixed.

Jan 20 2019, 6:01 PM · KDevelop
thomassc added a comment to D18218: Properly display argument names of template functions.

Yes, the behavior of this patch is as described by Milian.

Jan 20 2019, 3:30 PM · KDevelop
thomassc added a comment to D18229: Contextbrowser: Ability to show combined problems and decl tooltip.

This is how it looks on my system:

Jan 20 2019, 2:45 PM · KDevelop
thomassc updated the diff for D18229: Contextbrowser: Ability to show combined problems and decl tooltip.

Cosmetic improvement to combined problems and decl tooltip

Jan 20 2019, 2:43 PM · KDevelop

Jan 19 2019

apol accepted D18346: Fix typo in move cursor left action in QtCreator shortcuts theme.

Can you push the change or do you need us to do it for you?

Jan 19 2019, 8:03 AM · KDevelop

Jan 18 2019

miroslawstein added a revision to T10373: Support for indent-after-parens astyle option: Unknown Object (Differential Revision).
Jan 18 2019, 9:40 PM · KDevelop
miroslawstein created T10373: Support for indent-after-parens astyle option.
Jan 18 2019, 9:14 PM · KDevelop
wcancino updated the diff for D18122: Fix Xdebug disconnecting after php finished if multiple connections are allowed.
  • Fix testcase
Jan 18 2019, 10:11 AM · KDevelop
mmrozowski requested review of D18346: Fix typo in move cursor left action in QtCreator shortcuts theme.
Jan 18 2019, 12:06 AM · KDevelop

Jan 17 2019

aaronpuchert added a comment to D17289: KDevelop/Shell: set dedicated TMPDIR.

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).

Jan 17 2019, 10:11 PM · KDevelop
volden added a reviewer for D18326: Fix compilation on Windows: kdevelop-devel.
Jan 17 2019, 5:43 PM · KDevelop
volden requested review of D18326: Fix compilation on Windows.
Jan 17 2019, 5:37 PM · KDevelop
igorkushnir requested review of D18325: Debugger plugin fixes.
Jan 17 2019, 5:04 PM · KDevelop
rjvbb set the repository for D15797: [kdev-clazy] : use canonical paths to R32 KDevelop.
Jan 17 2019, 3:10 PM · KDevelop