Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Code completion using LSP and clangd
AndrewCot:
File in SVN has been updated, so the next update will include the typo fixed.
ollydbg:
--- Quote from: AndrewCot on January 12, 2022, 12:20:11 pm ---File in SVN has been updated, so the next update will include the typo fixed.
--- End quote ---
There is another typo:
--- Quote ---Windows Clangd-Client Plugin install process:
============================================
1) Install the LLVM or Clangd.exe as documented in the following file:
Windows-LLVM-ClangD-Install-Readme.txt
2) Disable the Code completion plugin as follows:
a) Open the Plugin manager via the Code::Blocks "MainMenu=>Plugins=>Manage plugins..." menu
b) In the Manage Plugin dialog do the following:
i) Find and select the "Code completion" plugin via it's title
ii) Press the "Disable" button on the right near the top
iii) If you get any errors please try again.
3) Install the Clangd-Client Plugin using one of the following options, which are documneted later in this readme file:
a) Install via the Plugin Manager
b) Manaully install the plugin files
3) Configure the Clangd-Client Plugin for use as follows:
a) Select the "MainMenu=>Settings->Editor..." menu
b) In the list on the left click/select the "clangd_client" option.
c) In the "C/C++ parser" tab change the "Specify clangd executable to use" to reference the clangd.exe you installed via step 1) above.
Some examples of this could be:
C:\msys64\clang64\bin\clangd.exe
C:\msys64\clang32\bin\clangd.exe
C:\LLVM\bin\clangd.exe
C:\comilers\cmang\clangd.exe
--- End quote ---
You can see there are two "3)" sub-sections.
BTW:
I download the package: clangd_client.zip, but when I try to "install" the plugin by the plugin manager, it need a file "*.cbplugin", while I see only this zip file, so I need to rename the file extension?
Miguel Gimenez:
File clangd_client.zip is a mess, it contains two levels of older copies of itself.
You just need the DLL and a zip containing the resources.
Miguel Gimenez:
I have just created a wiki entry for the .cbplugin file format: https://wiki.codeblocks.org/index.php/Code::Blocks_Plugins#Format_of_.cbplugin_files
It is a draft based on the source code, if somebody has more information or spots an error please edit it.
AndrewCot:
@ollydbg In the plugin manager you specify the zip file instead of a .cbplugin and it works
@Miguel Thanks for the info. I need mod the project file to check and delete the zip file otherwise you get the zip file stored in it multiple times (probably recursive until I delete the zip file).
As for the .cbplugin format please can you modify the page you did and remove the info as it is duplicated on the following page along with allot more info for a developer:
http://wiki.codeblocks.org/index.php/Managing_Plug-in_Resources
I would suggest on the page you modify the General section where the If you are developing plugins to the following as is has a few issues:
If you are developing plugins:
* Please read the "http://wiki.codeblocks.org/index.php/Managing_Plug-in_Resources" page for creating and producing a plugin.
* You will need to store the source code for the plugin for other developers to have access to it. You can do this on SourceForge or Github or your favorite source code repository web site.
* Setup your own webpage on a file sharing platform that can be used for documenting and distribution of the plugin. This will allow users to download the plugin to install on their Code::Blocks installation.
Once you have a working and production ready plugin for other developers to use then you can do the following:
* Read the "https://wiki.codeblocks.org/index.php/Announcement_for_plugins/patches" page for information on how to announce you have a plugin on the Code::Blocks forum.
* In your announcement in the "https://forums.codeblocks.org/index.php/board,14.0.html" forum please also ask for your plugin to be added to the Code::Blocks "https://wiki.codeblocks.org/index.php?title=Code::Blocks_Plugins" wiki page with the details you would like to see on the page.
One issue with this is that the referenced pages are not up to date either, so when do you stop..... Also it seems that some of the info is on multiple pages or it may be very similar info which is not right as later if one page gets updated and not the other then there may be issues.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version