Author Topic: std::string not available in code completion  (Read 1058 times)

Offline Neo

  • Single posting newcomer
  • *
  • Posts: 9
std::string not available in code completion
« 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.
« Last Edit: April 27, 2022, 07:11:57 am by Neo »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5567
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: std::string not available in code completion
« Reply #1 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.


If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Neo

  • Single posting newcomer
  • *
  • Posts: 9
Re: std::string not available in code completion
« Reply #2 on: April 27, 2022, 05:57:35 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.
I did not find this plugin in the nighly package.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 707
Re: std::string not available in code completion
« Reply #3 on: April 27, 2022, 06:32:54 pm »
The link is given by pecan in the second post of the svn 12802 ...
Windows 10 64 bits (21H2), svn C::B (last version or almost!), wxWidgets 3.2.0, Msys2 Compilers 12.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (sjlj, posix in C:\msys64\mingw32).

Offline Neo

  • Single posting newcomer
  • *
  • Posts: 9
Re: std::string not available in code completion
« Reply #4 on: April 27, 2022, 07:34:53 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.