Bug 445872

Summary: kde default template for kirigami app (c++) throws errors at opening of project
Product: [Applications] kdevelop Reporter: hacknorris
Component: Application templatesAssignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: normal CC: grkavac.igor
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description hacknorris 2021-11-21 18:38:13 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. open kdevelop
2. add "empty" project with kirigami type
3. select all defaults
4. setup git WITHOUT account
5. you land with tons of errors both in app and in code like:
"'QApplication' file not found", "in added file 'QObject' file not found", "unknown type name 'Q_DECL_EXPORT' 
AND ERROR:
"""
unable to set settings for project'x' (error description: exit code : 0). because of this code understanding might be broken.
to fix this bug be sure that project files"CMakeLists.txt" are correct and KDevelop uses correct settings and CMake version. next right click on project element and click "reload".
"""

OBSERVED RESULT

bunch of errors (look at 5 number in previous point)

EXPECTED RESULT

added files: 'QApplication','QUrl','KLocalizedString','KAboutData','QtQml','xconfig.h','version-x.h' and so on... 

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-40-generic (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i3-8130U CPU @ 2.20GHz
Memory: 7.7 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620

ADDITIONAL INFORMATION

almost pure kde neon. no addons installed. just opened kdevelop and got this
Comment 1 hacknorris 2021-12-29 18:58:18 UTC
noone?
Comment 2 hacknorris 2022-01-08 21:11:51 UTC
knew noone answers... 2 mo...
Comment 3 hacknorris 2022-02-24 19:35:53 UTC
www.youtube.com/watch?v=ALmUd-C-8uA
Comment 4 Igor Grkavac 2022-02-25 10:23:13 UTC
Hi,

Did You manage to build the app after that errors?

You didn't specify the KDevelop version You are using. I tested on 5.7.211202 and I don't get these errors. I get an error that "testappconfig.h" is missing but after building, the error disappears.

Can You build the Kirigami default app from the terminal, or from KDevelop?

Kind regards
Comment 5 hacknorris 2022-02-25 16:52:08 UTC
oh my god. after these 3mo i deinstalled k. neon and im on l. mint... i forgot version :'D

and i can say - python version was getting same errors. and if about testing in terminal/other ide - i didnt cause i left development on kde after these bugs (before doing dev) :/
Comment 6 hacknorris 2022-03-10 20:51:54 UTC
now it came back to my head - yes it was breaking build. but no i already dont have kdevelop version. i wasnt messing up with betas or smth so just check default kdevelop version for this OS i said