Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => CodeCompletion redesign => Topic started by: jalcazo on February 20, 2022, 07:46:52 pm

Title: mouse->get.. or mouse->carrying_something(); doesn't autocomplete
Post by: jalcazo on February 20, 2022, 07:46:52 pm
I have a Mouse.cpp class, and a mouse instance as external in my Code::Blocks project to access the mouse from various classes.

When I write mouse-> (mouse is a shared_ptr) the text doesn't autocomplete with the mouse available methods.

The same happens for instance with screen.

screen->talk_one_line("You are poisoned!");

screen-> doesn't autocomplete anything.

It would be a nice help to have this working.
Title: Re: mouse->get.. or mouse->carrying_something(); doesn't autocomplete
Post by: AndrewCot on February 20, 2022, 11:18:07 pm
The current autocomplete has allot of bugs.
If you want to try it's replacement have a read of the following thread:
https://forums.codeblocks.org/index.php/topic,24357.0.html
Title: Re: mouse->get.. or mouse->carrying_something(); doesn't autocomplete
Post by: jalcazo on February 21, 2022, 12:32:14 pm
Thanks but the link doesn't work.

Edit: sorry, my fault. It does work.
Title: Re: mouse->get.. or mouse->carrying_something(); doesn't autocomplete
Post by: jalcazo on February 21, 2022, 12:33:13 pm
But it just works with CLANG, no love for GCC?
Title: Re: mouse->get.. or mouse->carrying_something(); doesn't autocomplete
Post by: Pecan on February 21, 2022, 07:22:44 pm
But it just works with CLANG, no love for GCC?

why do you say clangd_client does not work with GCC. I use it everyday with Linux GCC and Windows C++.

How did you install it?

Start CB with the /d option (full debug log) and post the log (Titled Code::Blocks Debug) to the forum using `[code`]`[/code`] marks (without the backticks). The "#" button above the posting area will provide the marks for you.