Bug 449441

Summary: Code completion keeps changing . to ->
Product: [Applications] kdevelop Reporter: Aaron Williams <aaronw>
Component: Code completionAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: normal CC: igorkuo
Priority: NOR    
Version First Reported In: 5.7.211201   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Aaron Williams 2022-02-01 05:15:40 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
***


typedef struct io_block_ops {
	size_t	(*read)(int lba, uintptr_t buf, size_t size);
	size_t	(*write)(int lba, const uintptr_t buf, size_t size);
} io_block_ops_t;

typedef struct io_block_dev_spec {
	io_block_spec_t	buffer;
	io_block_ops_t	ops;
	size_t		block_size;
} io_block_dev_spec_t;

Now as I'm filling in a global variable it's doing this:

static struct io_block_dev_spec emmc_dev_spec = {
	->ops = {
        ^^
		.read = emmc_block_read,
		.write = emmc_block_write,
		
	}
}

Which is wrong. Every time I replace -> with . it just replaces it back with ->
I can force it to use "." if I copy and paste, otherwise, it's extremely annoying.

OBSERVED RESULT
Shown above

EXPECTED RESULT
It should use ".", not "->"

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Linux (x86_64) release 5.3.18-150300.59.43-preempt
(available in About System)
KDE Plasma Version: 5.23.90
KDE Frameworks Version: 21.12.1
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Igor Kushnir 2022-10-24 06:35:35 UTC

*** This bug has been marked as a duplicate of bug 432774 ***