Page MenuHomeFreeBSD

Enable .editorconfig support in devel/kf5-ktexteditor
AbandonedPublic

Authored by tcberner on Feb 6 2020, 12:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 28 2023, 10:12 PM
Unknown Object (File)
Aug 19 2023, 8:22 AM
Unknown Object (File)
Jun 16 2023, 3:27 AM
Unknown Object (File)
Jun 3 2023, 8:12 AM
Subscribers

Details

Reviewers
adridg
Summary

Most Linuxes have .editorconfig enabled in KTextEditor (hence kate,
kdevelop, ...) and editorconfig.org lists kate as supported.
But to get that, we need to actually enable it at build-time,
by linking against libeditorconfig.

Adds an OPTION, on-by-default.

Test Plan

This should go out with the next KF5 update (which will force updates to
all the editors anyway).

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 29204
Build 27131: arc lint + arc unit

Event Timeline

Why make it an option? Is there any benefit in not having it?

linimon retitled this revision from Enable .editorconfig support in KTextEditor to Enable .editorconfig support in devel/kf5-ktexteditor.Feb 6 2020, 3:42 PM

You are missing a PORTREVISION bump.

devel/kf5-ktexteditor/Makefile
21

It is better to define OPTIONS_DEFAULT and OPTIONS_DEFINE statically.

23

Support how? Editing it? Parsing it? Displaying it?

a *_DESC must describe what the option is doing, "support" is so vague, it is absolutely useless. (Yes, I know, 99.9% of options descriptions are useless.)

tcberner requested changes to this revision.Feb 6 2020, 4:48 PM

Also if it remains an option there needs to be an option toggle to cmake.. Or is it not linking actually?

This revision now requires changes to proceed.Feb 6 2020, 4:48 PM

As Tobias points out, it's probably better to avoid the option and always include it. Then we don't need to worry about an option description :)

When the editorconfig libraries are present on the system at cmake-time, they will be used and linked into the ktexteditor libraries. If we make it an option, then we also need to support the case where the option is off, but the libraries are installed; things get complicated for basic functionality that, IMO, should always be there: the presence of an .editorconfig file influences the editor settings underneath the directory holding the .editorconfig file.

So, file under:

Let's pick this up in the next frameworks update

tcberner edited reviewers, added: adridg; removed: tcberner.
This revision now requires review to proceed.Apr 9 2020, 9:08 PM