Author Topic: mouse->get.. or mouse->carrying_something(); doesn't autocomplete  (Read 18245 times)

Offline jalcazo

  • Multiple posting newcomer
  • *
  • Posts: 26
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.

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Re: mouse->get.. or mouse->carrying_something(); doesn't autocomplete
« Reply #1 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

Offline jalcazo

  • Multiple posting newcomer
  • *
  • Posts: 26
Re: mouse->get.. or mouse->carrying_something(); doesn't autocomplete
« Reply #2 on: February 21, 2022, 12:32:14 pm »
Thanks but the link doesn't work.

Edit: sorry, my fault. It does work.

Offline jalcazo

  • Multiple posting newcomer
  • *
  • Posts: 26
Re: mouse->get.. or mouse->carrying_something(); doesn't autocomplete
« Reply #3 on: February 21, 2022, 12:33:13 pm »
But it just works with CLANG, no love for GCC?

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: mouse->get.. or mouse->carrying_something(); doesn't autocomplete
« Reply #4 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.