| Summary: | Disable semantic analysis on a per file basis | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | rohan.preacher.smith |
| Component: | UI: general | Assignee: | kdevelop-bugs-null |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | aspotashev, mail |
| Priority: | NOR | ||
| Version First Reported In: | 5.7.211203 | ||
| Target Milestone: | --- | ||
| Platform: | Kubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
rohan.preacher.smith
2018-04-28 10:12:17 UTC
I think "touch .kdev_ignore" still works for directories. There is also the
#ifndef IN_IDE_PARSER ... #endif trick. Another workaround would be to use a different file ending for these files (e.g. .c_arm), although that may of course confuse other tools.
Other than that, I could imagine that an option could be added to the project filter plugin which does this ("exclude and do not parse" or so) ...
With the right-click menu, the problem I see is a bit that you do not have a UI which visualizes the current state of what is being ignored.
How the problem tooltips work needs rework anyways, though, they are relatively annoying right now.
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version? If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you! The situation has improved in some ways by showing the errors on the end of the line where the error is detected, however I am still unable to find any way to disable `Semantic analysis` on a per file basis, or even in the entire project. Sven's suggestion of using the `Project Filter` plugin to exclude files doesn't work on specific files as they are still part of the project. His suggestion to use a different file extension also doesn't seem to work as the semantic analysis is still reporting errors even after changing the extension, as though it is analysing it as C. I would still like to be able to right click in a given file and have an option to disable semantic analysis on this file. |