Bug 449441 - Code completion keeps changing . to ->
Summary: Code completion keeps changing . to ->
Status: RESOLVED DUPLICATE of bug 432774
Alias: None
Product: kdevelop
Classification: Applications
Component: Code completion (show other bugs)
Version: 5.7.211201
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-01 05:15 UTC by Aaron Williams
Modified: 2022-10-24 06:35 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***