User forums > Help

Code completion issues : Nightly build 13231

(1/4) > >>

draughlin:
Hi,
I have the following simple C++ project with the following code, which compiles successfully (, that's not the problem.) The problem is that code completion does not work for any members of 'myHouses' derived from struct House. I am using nightly build 13231. Any help would be greatly appreciated. The code below is just a small excerpt to demonstrate the problem. Its not just this code that the code completion does not work with. BTW I am using cbLauncher.exe to launch codeblocks as I like to use it "portably." Also using Windows 11 22H2 build 22621.1413

#include <iostream>
#include <vector>

struct House
{
    int number {};
    int numberRooms {};
};

int main()
{
    std::vector<House> myHouses {};
    myHouses = { { {1,2 }, {3, 4}, {5, 6} } };
    myHouses[0].number = 99;
    std::cout << myHouses[0].number
}

Miguel Gimenez:
Are you using the original plugin or the clangd one?. The latter should work.

draughlin:
Hi, thanks for your reply. I am using whatever one comes by default out of the box as it were. How do I go about using the Clangd version?

<edit>
Ok, so I go to Plugins menu and select Manage plugins. I select Code completion and Disable it. I select Clangd_client and enable it.
Then I exit codeblocks. Then I launch codeblocks again, go to plugins menu and see that Clangd_Client is DISABLED why?
I re ENABLE it, and exit codeblocks again. I launch codeblocks again, go to plugins menu and see that Clangd_Client is still DISABLED.
Dont know what to do from here. Any help would be appreciated.

draughlin:
Hi All,
Ok, managed to successfully ENABLE the Clangd_Client in the plugin manager. Now I go to Settings/Editor but there is no Clangd_client anywhere in the scrolling section on the left of the window.
Any help much appreciated.

Miguel Gimenez:
I have never used it, but there are comprehensive instructions in the Wiki.

Navigation

[0] Message Index

[#] Next page

Go to full version