User forums > Help

Code completion does not parse/move through an entire implentation file

(1/3) > >>

nore:
Hi there, I have been experiencing some issues with the Code completion plug-in in the recent weeks. It seems that in one of my implementation files only the constructor is recognized when using CTRL + PgUp/CTRL + PgDn. All other implementation files' and header files' functions can be traversed through using these keys, but I can't seem to discover a reason as to why the implementation file in question cannot be traversed through. I have tried disabling and enabling the plug-in as well as setting the parser to workspace-wide rather than project-wide. I have even tried disabling Smart Sense (what does this do?). If anyone has had a similar problem as this, I would appreciate a point towards solving it!

Thank you,

-nore

Pecan:

--- Quote from: nore on June 22, 2023, 08:47:07 pm ---Hi there, I have been experiencing some issues with the Code completion plug-in in the recent weeks. It seems that in one of my implementation files only the constructor is recognized when using CTRL + PgUp/CTRL + PgDn. All other implementation files' and header files' functions can be traversed through using these keys, but I can't seem to discover a reason as to why the implementation file in question cannot be traversed through. I have tried disabling and enabling the plug-in as well as setting the parser to workspace-wide rather than project-wide. I have even tried disabling Smart Sense (what does this do?). If anyone has had a similar problem as this, I would appreciate a point towards solving it!

Thank you,

-nore

--- End quote ---

To help, we'll need some information about your environment.
Please tell us your operating system, the version of CodeBlocks you're using, and paste the text of the file your having problems with between code tags (the '#' button above the reply box.

nore:

--- Quote from: Pecan on June 24, 2023, 06:44:10 am ---
--- Quote from: nore on June 22, 2023, 08:47:07 pm ---Hi there, I have been experiencing some issues with the Code completion plug-in in the recent weeks. It seems that in one of my implementation files only the constructor is recognized when using CTRL + PgUp/CTRL + PgDn. All other implementation files' and header files' functions can be traversed through using these keys, but I can't seem to discover a reason as to why the implementation file in question cannot be traversed through. I have tried disabling and enabling the plug-in as well as setting the parser to workspace-wide rather than project-wide. I have even tried disabling Smart Sense (what does this do?). If anyone has had a similar problem as this, I would appreciate a point towards solving it!

Thank you,

-nore

--- End quote ---

To help, we'll need some information about your environment.
Please tell us your operating system, the version of CodeBlocks you're using, and paste the text of the file your having problems with between code tags (the '#' button above the reply box.

--- End quote ---

Hi, thank you for your help. I am on Microsoft Windows 11 and I am using code::blocks svn 13231. I see that the nightly build has been updated--could this be a cause of the issue? I am experiencing the non-parsing issue in a couple implementation files.

For example, in my program I am able to move through functions using CTRL + PgUp and CTRL + PgDn in "MapTileSelect.cpp" and "MapTile.cpp" but not within "MainFrame.cpp" or "VisualGrid.cpp". All headers can be traversed through using Code completion.

EDIT: Updating to svn 13311 did not resolve the issues.

Pecan:
When you say that you're using code completion plugin do you mean the older plugin named "code completion" or the newer code completion plugin called "Clangd_client" plugin?

If you're using the older, try using the newer clangd_client plugin.
See https://wiki.codeblocks.org/index.php/CB_Clangd_Client
for directions.

This requires you to install a Clangd.exe process. It's explained in the wiki. I'd suggest using the section entitled " MSYS2 Compiler - MinGW64". For me, I just installed the whole Msys2/Mingw64 system, then told it to install clangd.
It did all the work installing dependencies for me.
 
You'll be happy you did. Msys2/Mingw64 is so useful for so many other windows tools and libs.

Once clangd.exe is installed, go to MainMenu>plugins>Manager plugins. Disable "Code completion" and enable Clangd_client. then restart CodeBlocks. You'll get a message saying you need to tell Clangd client plugin where clangd.exe is. It'll be in the Mingw64/bin/ folder.

If you're already using the newer clangd plugin, would you also upload the .h files so I can try to re-create the problem you described.

The old Code completion plugin is very old and has problems with code using C++11 or higher. Clangd is now used in most modern IDE(s).

Let me know how you progress...
Regards

nore:
Ah, that is such a shame as it was working fine only some weeks ago. I do not mind using a newer plug-in; however I am concerned that I do not have a way to install a plug-in without reinstalling code::blocks, no? Is there a way to install this "Clangd" plug-in without a full reinstall?

EDIT: As it turns out the nightly build that I have already includes the Clangd_client plugin. I only need to install the .exe so I may use it.

Navigation

[0] Message Index

[#] Next page

Go to full version