Feed Advanced Search

Oct 11 2018

kfunk added a comment to D16123: windows: Detect VS2017 compiler and tools.

Note: This is alternative approach to https://phabricator.kde.org/D15976

Oct 11 2018, 6:44 AM · KDevelop
kfunk requested changes to D15976: Fix KDevelop's detection for Visual Studio 2017 compiler and tools..

Hey @Petross404 -- the other day I reworked that script a bit, here's the result: https://phabricator.kde.org/D16123 -- I refactored it this way before seeing the new revision of yours. I do think my version is a little bit easier to grasp, since it does not have that many branches compared to yours.

Oct 11 2018, 6:44 AM · KDevelop
kfunk requested review of D16123: windows: Detect VS2017 compiler and tools.
Oct 11 2018, 6:43 AM · KDevelop
kfunk added a comment to D16032: Generate all kdebugsettings .categories files automatically.

I'm torn about this review; I'm with Aleix in the sense that this adds lots and lots of extra CMake code to maintain without a /lot/ of gain.

Oct 11 2018, 5:28 AM · KDevelop

Oct 10 2018

kossebau added a comment to D16032: Generate all kdebugsettings .categories files automatically.

On some quick experiments I could not find a nice way to merge the generation of the .categories file into the declare macros. So when it comes to invested resources, I would rather prefer to keep the current explicit install_* macro calls for now, until someone has a better idea.

Oct 10 2018, 9:02 PM · KDevelop
kossebau added a comment to D16032: Generate all kdebugsettings .categories files automatically.
In D16032#340668, @apol wrote:

Considering we're doing our own macro,

Oct 10 2018, 4:32 PM · KDevelop
kossebau added a comment to D16032: Generate all kdebugsettings .categories files automatically.
In D16032#340668, @apol wrote:

Considering we're doing our own macro, we can be also more succint. I don't see why we can't have declare_plugin_qt_logging_category(targetname)

You can use target_sources() instead of adding it to the variable.

Oct 10 2018, 4:28 PM · KDevelop
apol added a comment to D16032: Generate all kdebugsettings .categories files automatically.

Considering we're doing our own macro, we can be also more succint. I don't see why we can't have declare_plugin_qt_logging_category(targetname)

Oct 10 2018, 2:17 PM · KDevelop
flherne closed D16085: Improve support for 'with' statements..
Oct 10 2018, 12:03 AM · KDevelop

Oct 9 2018

mkraus added a comment to D15899: Fix segfault on project reload with cmake.
In D15899#336024, @apol wrote:

Would it make sense to recreate the KDirWatchers at this point? I would prefer if this patch didn't have to get outside the plugin.

Oct 9 2018, 8:09 PM · KDevelop
Petross404 updated the diff for D15976: Fix KDevelop's detection for Visual Studio 2017 compiler and tools..

Our script now initializes the environment correctly (at least for VS2017) even if the user doesn't run it from Developers Command Prompt. It reads Registry to find the path under which VS2017 is installed (I fear that I read the wrong variable from the Registry).

Oct 9 2018, 7:55 PM · KDevelop
brauch accepted D16085: Improve support for 'with' statements..

Otherwise looks good! If you feel super ambitious you could add a test, should be very simple ;)

Oct 9 2018, 6:09 PM · KDevelop
flherne requested review of D16085: Improve support for 'with' statements..
Oct 9 2018, 5:36 PM · KDevelop
Petross404 added a comment to D15976: Fix KDevelop's detection for Visual Studio 2017 compiler and tools..

Can a windows user with VS installed, give me the content of HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7?

Oct 9 2018, 5:17 PM · KDevelop
kossebau updated the summary of D16032: Generate all kdebugsettings .categories files automatically.
Oct 9 2018, 3:26 PM · KDevelop
kossebau updated the diff for D16032: Generate all kdebugsettings .categories files automatically.

update to latest master

Oct 9 2018, 3:20 PM · KDevelop
rjvbb added a comment to D9344: [KDevelop] : [fixed] consistent use of the project name allowing to create multiple projects in a single source tree.

I'd be pushing less if this hadn't already been committed and then reverted because of an issue that got through the initial review process.

Oct 9 2018, 11:48 AM · KDevelop
kossebau added a comment to D9344: [KDevelop] : [fixed] consistent use of the project name allowing to create multiple projects in a single source tree.
In D9344#339729, @rjvbb wrote:

In absence of instructions to the contrary I'll interpret Milian's "feel free to respin" as "feel free to recommit", and push a commit during the day. This has been waiting to be re-applied long enough.

Oct 9 2018, 10:44 AM · KDevelop
buschinski added inline comments to D16064: Fix memleaks in unittests.
Oct 9 2018, 10:08 AM · KDevelop
kfunk accepted D16064: Fix memleaks in unittests.

Can be committed this way as well, but I'd research using QScopedPoiner in some places instead.

Oct 9 2018, 9:11 AM · KDevelop
buschinski requested review of D16064: Fix memleaks in unittests.
Oct 9 2018, 9:04 AM · KDevelop
buschinski updated the diff for D16018: Fix align of doxygen comments in templates.

Changed to (correct) ktexteditor repository. Someday... I will learn how to use phabricator :)

Oct 9 2018, 8:54 AM · Frameworks, Kate
rjvbb added a comment to D9344: [KDevelop] : [fixed] consistent use of the project name allowing to create multiple projects in a single source tree.

In absence of instructions to the contrary I'll interpret Milian's "feel free to respin" as "feel free to recommit", and push a commit during the day. This has been waiting to be re-applied long enough.

Oct 9 2018, 8:30 AM · KDevelop
kfunk requested changes to D15976: Fix KDevelop's detection for Visual Studio 2017 compiler and tools..
Oct 9 2018, 8:29 AM · KDevelop
Petross404 added a comment to D15976: Fix KDevelop's detection for Visual Studio 2017 compiler and tools..

People with Visual Studio other than Community Edition, please consider trying out these changes. If a typo or a bug exists, it should be found early.

Oct 9 2018, 12:25 AM · KDevelop
Petross404 updated the diff for D15976: Fix KDevelop's detection for Visual Studio 2017 compiler and tools..
  1. The script (sadly) uses hardcoded paths for vcvarsall.bat, instead of needing VS150COMNTOOLS. This way it can be found and executed, without the need of Developer's Command Prompt.
Oct 9 2018, 12:20 AM · KDevelop

Oct 8 2018

kfunk requested changes to D15976: Fix KDevelop's detection for Visual Studio 2017 compiler and tools..

Ah, right, I missed that part. The problem is that VS2017 by default doesn't set VS150COMNTOOLS as system-wide env variable.

Oct 8 2018, 6:49 PM · KDevelop
Petross404 added a comment to D15976: Fix KDevelop's detection for Visual Studio 2017 compiler and tools..

@kfunk As I already have mentioned, clicking the script (finding it in Start menu) doesn't initialize correctly the environment. It has to be run from within Developer Command Prompt or the complete path of MSCV binaries (for the wanted target) has to be in %PATH%.

Oct 8 2018, 2:44 PM · KDevelop
kfunk accepted D15976: Fix KDevelop's detection for Visual Studio 2017 compiler and tools..

Looks good to me, please push to 5.3 branch.

Oct 8 2018, 1:58 PM · KDevelop
kfunk added a comment to D16012: Make Qt5Test optional.

(there are also some missing deps that are implicitly linked, but that is for another review)

Oct 8 2018, 11:52 AM · KDevelop
kfunk added a comment to D16012: Make Qt5Test optional.

Pushed this for you. To 5.3 branch.

Oct 8 2018, 11:51 AM · KDevelop
kfunk closed D16012: Make Qt5Test optional.
Oct 8 2018, 11:50 AM · KDevelop
kossebau updated the summary of D16032: Generate all kdebugsettings .categories files automatically.
Oct 8 2018, 11:47 AM · KDevelop
kossebau added a comment to D16032: Generate all kdebugsettings .categories files automatically.

Initial commit message also had:
"The EXPORT argument is kept explicit for now, though it could be considered to
hardcode the related install_qt_logging_categories() calls into the two
macros."

Oct 8 2018, 11:47 AM · KDevelop
apol added inline comments to D16032: Generate all kdebugsettings .categories files automatically.
Oct 8 2018, 11:02 AM · KDevelop
asturmlechner added a comment to D16012: Make Qt5Test optional.

(there are also some missing deps that are implicitly linked, but that is for another review)

Oct 8 2018, 6:37 AM · KDevelop

Oct 7 2018

kossebau requested review of D16032: Generate all kdebugsettings .categories files automatically.
Oct 7 2018, 10:41 PM · KDevelop
asturmlechner updated the diff for D16012: Make Qt5Test optional.

Make KF5Archive exclusive to BUILD_TESTING as well

Oct 7 2018, 10:29 PM · KDevelop
buschinski changed the repository for D16018: Fix align of doxygen comments in templates from R32 KDevelop to R39 KTextEditor.
Oct 7 2018, 10:06 PM · Frameworks, Kate
buschinski added a comment to D16018: Fix align of doxygen comments in templates.

This did not work for templates as "isComment" uses line attributes and at the time the template is inserted it is always "C/C++ Code/Data"-attribute never a comment. It only becomes a "doxygen comment"-attribute after the template "editing" is finished.

Oct 7 2018, 10:05 PM · Frameworks, Kate
buschinski updated the diff for D16018: Fix align of doxygen comments in templates.
Oct 7 2018, 10:03 PM · Frameworks, Kate
asturmlechner added a comment to D16012: Make Qt5Test optional.

To 5.3 branch, please.

Oct 7 2018, 7:46 PM · KDevelop
kossebau closed D15977: Generate kdebugsettings .categories file automatically.
Oct 7 2018, 6:50 PM · KDevelop
kfunk accepted D16012: Make Qt5Test optional.

To 5.3 branch, please.

Oct 7 2018, 5:11 PM · KDevelop
buschinski closed D16003: Sort Project Targets in Launch configuration.
Oct 7 2018, 1:48 PM · KDevelop
buschinski closed D15998: Fix discovery of clang builtin directory with clang svn versions.
Oct 7 2018, 1:47 PM · KDevelop
asturmlechner added a reviewer for D16012: Make Qt5Test optional: KDevelop.
Oct 7 2018, 12:47 PM · KDevelop
asturmlechner requested review of D16012: Make Qt5Test optional.
Oct 7 2018, 12:46 PM · KDevelop
kossebau added a comment to D15977: Generate kdebugsettings .categories file automatically.

Thanks for review,

Oct 7 2018, 12:30 PM · KDevelop
kfunk accepted D15977: Generate kdebugsettings .categories file automatically.

Looks good to me in general, feel free to push to master.

Oct 7 2018, 12:12 PM · KDevelop
kfunk accepted D16003: Sort Project Targets in Launch configuration.

I don't see why not.

Oct 7 2018, 11:57 AM · KDevelop
kfunk accepted D15998: Fix discovery of clang builtin directory with clang svn versions.
Oct 7 2018, 11:51 AM · KDevelop
buschinski requested review of D16003: Sort Project Targets in Launch configuration.
Oct 7 2018, 10:41 AM · KDevelop
buschinski requested review of D15998: Fix discovery of clang builtin directory with clang svn versions.
Oct 7 2018, 9:44 AM · KDevelop

Oct 6 2018

Petross404 added a comment to D15976: Fix KDevelop's detection for Visual Studio 2017 compiler and tools..

Not sure about x64 part. What if user wants x32 project? Or that is arch of the toolchain itself?

Oct 6 2018, 11:39 AM · KDevelop
arrowd added inline comments to D15976: Fix KDevelop's detection for Visual Studio 2017 compiler and tools..
Oct 6 2018, 8:22 AM · KDevelop

Oct 5 2018

kossebau requested review of D15977: Generate kdebugsettings .categories file automatically.
Oct 5 2018, 11:13 PM · KDevelop
Petross404 requested review of D15976: Fix KDevelop's detection for Visual Studio 2017 compiler and tools..
Oct 5 2018, 11:06 PM · KDevelop
kfunk closed D15955: clang: Also detect Clang builtin dirs at runtime.
Oct 5 2018, 12:40 PM · KDevelop
kossebau added a comment to D15955: clang: Also detect Clang builtin dirs at runtime.

Confirmed to work on openSUSE TW:

kdevelop.plugins.clang: Full Clang version: "clang version 6.0.1 (tags/RELEASE_601/final 335528)"
kdevelop.plugins.clang: Detected Clang version: "6.0.1"
kdevelop.plugins.clang: Using builtin dir: /usr/lib64/clang/6.0.1/include
kdevelop.plugins.clang: Using Clang builtin include path: "/usr/lib64/clang/6.0.1/include"

or when being nasty setting KDEV_CLANG_BUILTIN_DIR=/does/not/exist:

kdevelop.plugins.clang: Full Clang version: "clang version 6.0.1 (tags/RELEASE_601/final 335528)"
kdevelop.plugins.clang: Detected Clang version: "6.0.1"
kdevelop.plugins.clang: Using dir from $KDEV_CLANG_BUILTIN_DIR: "/does/not/exist"
kdevelop.plugins.clang: Using Clang builtin include path: "/does/not/exist"

which results in unloading the clang plugin, as expected.

Oct 5 2018, 12:24 PM · KDevelop
brauch accepted D15955: clang: Also detect Clang builtin dirs at runtime.

Looks good to me, and with little risk ... on Linux nothing changes, on Windows we test it anyways before shipping.

Oct 5 2018, 11:14 AM · KDevelop
kossebau added inline comments to D15955: clang: Also detect Clang builtin dirs at runtime.
Oct 5 2018, 11:11 AM · KDevelop
kfunk added a comment to D15955: clang: Also detect Clang builtin dirs at runtime.

You're right. For the Windows case, we wouldn't actually need to query the Clang version at runtime, since we control the version of Clang/LLVM ourselves.

Oct 5 2018, 6:46 AM · KDevelop

Oct 4 2018

aaronpuchert added a comment to D15955: clang: Also detect Clang builtin dirs at runtime.

Don't we know the exact version of Clang at compile-time when building the bundled version? I think this change is mainly interesting for the "unbundled" case when Clang can be updated independently. Or what am I missing?

Oct 4 2018, 10:31 PM · KDevelop
kfunk added a comment to D15955: clang: Also detect Clang builtin dirs at runtime.

Otoh, Clang 7 "fixes" this since they no longer use "X.Y.Z/include" but just "X/include" -- so we do not have to worry about this any longer anyway.

Oct 4 2018, 10:13 PM · KDevelop
kfunk added a comment to D15955: clang: Also detect Clang builtin dirs at runtime.

Note: Doing the retrieval at runtime would also allow distro packages to upgrade the libclang version under-the-hood; without having the need to recompile KDevelop. I.e. going from Clang/LLVM 6.0.0 to 6.0.1 (and keeping ABI), KDevelop would keep working just fine (which it currently wouldn't...).

Oct 4 2018, 10:11 PM · KDevelop
kfunk added reviewers for D15955: clang: Also detect Clang builtin dirs at runtime: kossebau, aaronpuchert.
Oct 4 2018, 10:07 PM · KDevelop
kfunk requested review of D15955: clang: Also detect Clang builtin dirs at runtime.
Oct 4 2018, 10:07 PM · KDevelop
kossebau closed D15606: Fix calling qdbus by using qt5-current name qdbus-qt5.
Oct 4 2018, 8:02 PM · KDevelop
kossebau updated the summary of D15606: Fix calling qdbus by using qt5-current name qdbus-qt5.
Oct 4 2018, 7:59 PM · KDevelop
kfunk added a comment to D15895: Use CLANG_INCLUDE_DIRS for clang include dir.

Pushed via: https://commits.kde.org/kdevelop/716372ae2e8dff9c51e94d33443536786e4bd85b

Oct 4 2018, 7:20 PM · KDevelop
buschinski closed D15895: Use CLANG_INCLUDE_DIRS for clang include dir.
Oct 4 2018, 6:36 PM · KDevelop
kfunk added inline comments to D15606: Fix calling qdbus by using qt5-current name qdbus-qt5.
Oct 4 2018, 3:25 PM · KDevelop
kossebau added inline comments to D15606: Fix calling qdbus by using qt5-current name qdbus-qt5.
Oct 4 2018, 3:19 PM · KDevelop
kfunk requested changes to D15606: Fix calling qdbus by using qt5-current name qdbus-qt5.
Oct 4 2018, 3:13 PM · KDevelop
kfunk accepted D15895: Use CLANG_INCLUDE_DIRS for clang include dir.

Rest LGTM, feel free to push after fixing my remark.

Oct 4 2018, 1:55 PM · KDevelop
buschinski updated the diff for D15895: Use CLANG_INCLUDE_DIRS for clang include dir.

Used PATH_SUFFIXES to cleanup the find_path a bit more

Oct 4 2018, 1:27 PM · KDevelop
buschinski added inline comments to D15895: Use CLANG_INCLUDE_DIRS for clang include dir.
Oct 4 2018, 1:26 PM · KDevelop
arrowd added a comment to D15895: Use CLANG_INCLUDE_DIRS for clang include dir.

FreeBSD+Clang 6 also works fine with this patch.

Oct 4 2018, 9:24 AM · KDevelop
kfunk requested changes to D15895: Use CLANG_INCLUDE_DIRS for clang include dir.

But I think in general that approach makes more sense. Thanks for working on it.

Oct 4 2018, 6:57 AM · KDevelop

Oct 3 2018

aaronpuchert added a comment to D15895: Use CLANG_INCLUDE_DIRS for clang include dir.

"cpuid.h" on my system is in:

  • /usr/lib64/clang/7.0.0/include/cpuid.h

$ llvm-config --libdir
/usr/lib64/llvm/7/lib64

Oct 3 2018, 9:32 PM · KDevelop
kossebau added a comment to D15895: Use CLANG_INCLUDE_DIRS for clang include dir.

I can tell the updated patch results does not change behaviour on openSUSE TW,,same value for KDEV_CLANG_BUILTIN_DIR before and after (/usr/lib64/clang/6.0.1/include).

Oct 3 2018, 6:26 PM · KDevelop
brauch added a comment to D15895: Use CLANG_INCLUDE_DIRS for clang include dir.

On Arch Linux, the latest version of the patch seems to work fine.

Oct 3 2018, 5:12 PM · KDevelop
apol added a comment to D15899: Fix segfault on project reload with cmake.

Would it make sense to recreate the KDirWatchers at this point? I would prefer if this patch didn't have to get outside the plugin.

Oct 3 2018, 5:09 PM · KDevelop
buschinski updated the diff for D15895: Use CLANG_INCLUDE_DIRS for clang include dir.

Added additional search PATHS with CLANG_LIBRARY_DIRS, like it was used in the original version (without this patch). This should hopefully work on opensuse as well.

Oct 3 2018, 2:25 PM · KDevelop
buschinski added a comment to D15895: Use CLANG_INCLUDE_DIRS for clang include dir.

"cpuid.h" on my system is in (listing ALL locations):

  • /usr/lib64/clang/7.0.0/include/cpuid.h
  • /usr/lib64/gcc/x86_64-pc-linux-gnu/7.3.0/include/cpuid.h
  • /usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.0/include/cpuid.h
  • and a few in /usr/src/linux-* (linux kernel sources)
Oct 3 2018, 2:01 PM · KDevelop
kossebau closed D15919: cmake: Avoid rst2html warnings in on-the-fly generated html documentation.
Oct 3 2018, 1:18 PM · KDevelop
kfunk accepted D15919: cmake: Avoid rst2html warnings in on-the-fly generated html documentation.
Oct 3 2018, 12:52 PM · KDevelop
kossebau added a comment to D15919: cmake: Avoid rst2html warnings in on-the-fly generated html documentation.

Forgot to mention: the parameter "--quiet" seems to be around since at least 2005, see date stamp on the docs of docutils 0.4: http://docutils.sourceforge.net/0.4/docs/user/config.html
So should be safe to use unconditionally.

Oct 3 2018, 12:44 PM · KDevelop
kossebau requested review of D15919: cmake: Avoid rst2html warnings in on-the-fly generated html documentation.
Oct 3 2018, 12:09 PM · KDevelop
kossebau added inline comments to D15694: Make implicit fallthroughs a compiler error, remove unneeded breaks.
Oct 3 2018, 11:02 AM · KDevelop
kossebau closed D15911: cmake: fix detecting ids with digits inside on a cursor position.
Oct 3 2018, 10:57 AM · KDevelop
apol accepted D15911: cmake: fix detecting ids with digits inside on a cursor position.

Looks good, thanks!

Oct 3 2018, 8:49 AM · KDevelop
amhndu updated the test plan for D15902: Consider using-directives with function implements code-completion.
Oct 3 2018, 4:13 AM · KDevelop
amhndu updated the diff for D15902: Consider using-directives with function implements code-completion.

Added a test.
But, as I've mentioned before, the tests for code completion crash,
So I haven't been able to run all tests, though you can run a single test case
before it crashes.

Oct 3 2018, 4:09 AM · KDevelop

Oct 2 2018

kossebau added a comment to D15911: cmake: fix detecting ids with digits inside on a cursor position.

A bit sad i blew up the code here. But then when I first looked at the code I was wondering about all the corner cases, so being a bit more explicit might not hurt. Moving into separate method at least helps keeping the actual method small and understandable.
Second while loop done to be consistent a bit with first one, undecided wheter another loop would be better, so looking for opinions here :)

Oct 2 2018, 11:40 PM · KDevelop
kossebau requested review of D15911: cmake: fix detecting ids with digits inside on a cursor position.
Oct 2 2018, 11:34 PM · KDevelop
apol added a comment to D15902: Consider using-directives with function implements code-completion.

This looks sound but it would be very good if it included a unit test.

Oct 2 2018, 11:25 PM · KDevelop
kossebau added inline comments to D15694: Make implicit fallthroughs a compiler error, remove unneeded breaks.
Oct 2 2018, 10:04 PM · KDevelop
aaronpuchert closed D15694: Make implicit fallthroughs a compiler error, remove unneeded breaks.
Oct 2 2018, 9:28 PM · KDevelop