Bug 321735 - «internal error: cannot build a file item» — after opening a project
Summary: «internal error: cannot build a file item» — after opening a project
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: Custom Makefiles (other bugs)
Version First Reported In: 4.4.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-28 20:16 UTC by Egor
Modified: 2018-11-12 03:09 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Egor 2013-06-28 20:16:34 UTC
I have a custom build file, which has a target named «helpers». I can invoke `make helpers` from terminal and get this file updated. I added this target to the kdevelop's «Project Selection» pane, and kdevelop built this file for me when I clicked the build button.

However, when I opened kdevelop the next day, the «helpers» target had an unknown file icon, and not an executable icon it had before. When I pressed «build», kdevelop built my another metatarget (this target did not produce a file with the same name as the target name was) and stopped, showing twice an error which is the title of this bug.

I deleted manually the file helpers, removed this target from the project selection and added again. Now everything worked ok again. If I remove and add back the target «helpers» again, even when the file is present, I do not encounter this error, but when I restart kdevelop I always do.

Reproducible: Always

Steps to Reproduce:
1. Create a target in the Makefile, named, for example T, that produces output file with the same name T.
2. Add this target to the Project selection pane.
3. Make the project.
4. Restart KDevelop
5. Try to make the project again.
Actual Results:  
Two error messages:«Internal error: cannot build a file item».

Expected Results:  
Target should have been built without an error, just as it was from a terminal.
Comment 1 Andrew Crouthamel 2018-11-11 04:22:47 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 Egor 2018-11-11 10:15:00 UTC
This bug does not hit me anymore. I beleive, it is fixed.
Comment 3 Andrew Crouthamel 2018-11-12 03:09:29 UTC
Thanks for the update!