Bug 405140 - Cannot disable background parser
Summary: Cannot disable background parser
Status: REOPENED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (show other bugs)
Version: 5.2.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-06 12:42 UTC by Artem
Modified: 2019-03-07 07:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
attachment-7533-0.html (1.73 KB, text/html)
2019-03-07 07:33 UTC, Artem
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Artem 2019-03-06 12:42:57 UTC
No way to disable background parser.

STEPS TO REPRODUCE
1. Disable background parser in 'Language Support -> Background parser'
2. Open C++ project
3. Open C++ file

OBSERVED RESULT
Background parsers starts eating my CPU.

EXPECTED RESULT
No background activity.
Comment 1 Sven Brauch 2019-03-06 13:01:29 UTC
The file(s) you open are always parsed. If you don't want that, you have to completely disable the C++ plugin.

Disabling the background parser only disables parsing files in a project in advance.
Comment 2 Artem 2019-03-06 16:36:35 UTC
(In reply to Sven Brauch from comment #1)
> The file(s) you open are always parsed. If you don't want that, you have to
> completely disable the C++ plugin.
> 
> Disabling the background parser only disables parsing files in a project in
> advance.

It's quite confusing. In fact I want to disable it because it never finishes and crashes sometimes (then I switch branches and files became unavailable). It would be great if there were an option "max time per file".
Comment 3 Artem 2019-03-06 16:47:22 UTC
One more thing. I've tried to find something like 'Background parser' of 'C++ plugin' in plugins to disable and there's nothing like this. What section of plugins it should be placed in and what is it's name?
Comment 4 Artem 2019-03-06 16:53:15 UTC
Still no way to disable plugin / parser. There's no 'C++ plugin' in plugins list.
Comment 5 Sven Brauch 2019-03-06 16:57:13 UTC
Yeah, you cannot disable the language plugins from the UI. You can start KDevelop with "KDEV_DISABLE_PLUGINS=kdevclangsupport kdevelop" or remove the .so file. At that point you can pretty much use kate instead, though.
Comment 6 Artem 2019-03-07 07:33:57 UTC
Created attachment 118618 [details]
attachment-7533-0.html

Thanks,

Kete is not enough cause of gdb, cmake and other integration.

My case is to edit code on laptop, build it on remote server and fetch
result sometimes for local execute and debug. So if background parser eats
my battary and makes me noise - it’s not OK. But off cause I’m interested
in syntax highlighting and other results of C++ plugin. It would be cool to
be able switch off automatics and run background parser manually. No need
to start it any time I switch branch. It has no chance to finish. I’d
better run it once a month for an hour and will work with slightly
inconsistent results next week.

ср, 6 марта 2019 г. в 19:57, Sven Brauch <bugzilla_noreply@kde.org>:

> https://bugs.kde.org/show_bug.cgi?id=405140
>
> --- Comment #5 from Sven Brauch <mail@svenbrauch.de> ---
> Yeah, you cannot disable the language plugins from the UI. You can start
> KDevelop with "KDEV_DISABLE_PLUGINS=kdevclangsupport kdevelop" or remove
> the
> .so file. At that point you can pretty much use kate instead, though.
>
> --
> You are receiving this mail because:
> You reported the bug.