Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Neo on April 27, 2022, 04:17:05 AM

Title: std::string not available in code completion
Post by: Neo on April 27, 2022, 04:17:05 AM
I am a casual user of CB. I mainly do small tests and write small projects in CB.

I have a problem with std::string code completion. It seems CB does not know this type. When I type s. there is no code completion at all. When I try  std::stri the list does not have `string`.

I tried this in the latest nightly svn12802 and the official 17.12, and got same behavior.
Title: Re: std::string not available in code completion
Post by: ollydbg on April 27, 2022, 12:59:33 PM
Hi, thanks for the report.

I maintain the CodeCompletion for a long time, but the C++ source code is hard to parse.

Currently, I think the main direction is using code completion from "clangd".
We have "clangd_client" plugin, can you try it?

See: The 24 April 2022 build (12802) is out. (https://forums.next.codeblocks.org/index.php/topic,24945.0.html)


Title: Re: std::string not available in code completion
Post by: Neo on April 27, 2022, 05:57:35 PM
Quote from: ollydbg on April 27, 2022, 12:59:33 PM
Currently, I think the main direction is using code completion from "clangd".
We have "clangd_client" plugin, can you try it?

See: The 24 April 2022 build (12802) is out. (https://forums.next.codeblocks.org/index.php/topic,24945.0.html)
I did not find this plugin in the nighly package.
Title: Re: std::string not available in code completion
Post by: gd_on on April 27, 2022, 06:32:54 PM
The link is given by pecan in the second post of the svn 12802 ...
Title: Re: std::string not available in code completion
Post by: Neo on April 27, 2022, 07:34:53 PM
Quote from: gd_on on April 27, 2022, 06:32:54 PM
The link is given by pecan in the second post of the svn 12802 ...
Thanks for pointing out, but I decide to wait for next nightly build.