Bug 441571

Summary: IDE cannot resolve symbols that the toolchain itself has no problem resolving
Product: [Applications] kdevelop Reporter: Szczepan Hołyszewski <rulatir>
Component: Build tools: QMakeAssignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.6.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Thoroughly confused IDE

Description Szczepan Hołyszewski 2021-08-26 13:15:17 UTC
Created attachment 141065 [details]
Thoroughly confused IDE

SUMMARY

Can you guys sit down an intern for a week and tell her to actually test every last one of the project templates you ship with KDevelop? It's ridiculous that a project created using one of the templates builds and runs successfully, but the IDE shows a ton of undersquiggles in source files, being unable to resolve symbols and include files that the toolchain itself had no problem resolving, as evidenced by the binary being successfully produced.

STEPS TO REPRODUCE

1. Project -> New from template... -> Qt -> Grahical (QMake-based) -> QtQuick 2 program
2. Build the project and run the executable to verify that it builds successfully
3. Open src/main.cpp in the IDE

OBSERVED RESULT

See attachment.

EXPECTED RESULT

The IDE should be able to figure out every symbol and include file that the toolchain itself was able to figure out.

SOFTWARE/OS VERSIONS

Operating System: Arch Linux
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Kernel Version: 5.13.12-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 8 × AMD FX(tm)-8320 Eight-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 960/PCIe/SSE2