Recent Posts

Pages: 1 ... 5 6 7 8 9 [10]
91
Plugins development / Re: Code completion using LSP and clangd
« Last post by Miguel Gimenez on January 13, 2022, 11:47:05 am »
I have updated the Wiki with your suggestions
93
Plugins development / Re: Code completion using LSP and clangd
« Last post by AndrewCot on January 13, 2022, 07:58:01 am »
@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.
94
Help / C::B LinuxMint 20.3 segmentation fault on start after upgrade LM & C::B
« Last post by AndrewCot on January 13, 2022, 07:12:26 am »
This looks like something has gone wrong with my Linux Mint virtual guest, but I cannot figure out what I need to do, so any pointers or help or advice is welcome as I have spend all day updating and trying things.

The problem is that after upgrading LinuxMint from 20.2 to 30.3 and then upgrading to the 12639 Nightly build from Xaviou in the  http://apt.xaviou.fr/debian11/pool/main/c/codeblocks directory I get the following when I run "gdb /usr/bin/codeblocks":
Code
Reading symbols from /usr/bin/codeblocks...
(No debugging symbols found in /usr/bin/codeblocks)
(gdb) r
Starting program: /usr/bin/codeblocks
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff69c3854 in wxBaseArrayPtrVoid::Add(void const*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
(gdb) back
#0  0x00007ffff69c3854 in wxBaseArrayPtrVoid::Add(void const*, unsigned long) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#1  0x00007ffff69a1907 in wxCmdLineParser::AddSwitch(wxString const&, wxString const&, wxString const&, int) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#2  0x00007ffff69a4b57 in wxCmdLineParser::SetDesc(wxCmdLineEntryDesc const*) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3  0x0000555555602cb0 in  ()
#4  0x00007ffff6a21a72 in wxEntry(int&, wchar_t**) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00005555555e9292 in  ()
#6  0x00007ffff63b60b3 in __libc_start_main (main=0x5555555e9280, argc=1, argv=0x7fffffffe5a8, init=<optimised out>, fini=<optimised out>, rtld_fini=<optimised out>, stack_end=0x7fffffffe598) at ../csu/libc-start.c:308
#7  0x00005555555fbe5a in  ()
(gdb)

Things I have tried:
   * Remove codeblocks and tried to reinstall 20.03 from the LM Software Manager, but this did not work and I did not want to spend allot of time on this as I want to use a recent nightly
   * Remove codeblocks and re-install from debs a number of times with reboots between them and still did not help
   * Upgrade the kernel from 5.15.2 to 5.15.14 just in case, but this did not help
   * Installed the http://ftp.de.debian.org/debian/pool/main/w/wxwidgets3.0/libwxbase3.0-0v5_3.0.5.1+dfsg-2_amd64.deb as reference on the https://debian.pkgs.org/11/debian-main-amd64/libwxbase3.0-0v5_3.0.5.1+dfsg-2_amd64.deb.html page , but again this did not help
    * Run other apps like Visual Code, Meld etc and they run okay.

Tonight if I get time I will install a new LM 20.3 guest from the LM 20.3 iso and see how I go.
95
Plugins development / Re: Code completion using LSP and clangd
« Last post by Miguel Gimenez on January 12, 2022, 05:56:44 pm »
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.
96
Nightly builds / Re: The 20 December 2021 build (12599) is out.
« Last post by WinterMute on January 12, 2022, 05:03:18 pm »
OS X version of this rev (12596) can be downloaded from my Google Drive.
There is a specific dmg file for versions 10.15 and 11.6 of the OS.
Note that these are not notarized versions of the application.

How are you compiling the macOS versions and how well are they working? I just got an M1 macbook & I was thinking about having a go at building c::b for that.
97
Plugins development / Re: Code completion using LSP and clangd
« Last post by Miguel Gimenez on January 12, 2022, 04:22:10 pm »
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.
98
Plugins development / Re: Code completion using LSP and clangd
« Last post by ollydbg on January 12, 2022, 04:07:20 pm »
File in SVN has been updated, so the next update will include the typo fixed.

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

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?
99
Plugins development / Re: Code completion using LSP and clangd
« Last post by AndrewCot on January 12, 2022, 12:20:11 pm »
File in SVN has been updated, so the next update will include the typo fixed.

100
Plugins development / Re: Code completion using LSP and clangd
« Last post by ollydbg on January 12, 2022, 12:01:57 pm »
Due to incompatibilities between plugins built with the latest MSYS2 and the nightly releases that cause then plugin to not load (unless you update the Mingw64 DLL's) there is an update of the plugin available that has been built using Mingw64 8.1.0. This update works with the nightly builds and also locally build C::B built with MSYS2 at:
    https://sourceforge.net/projects/cb-clangd-client/files/

The install docs have been updated with a bunch of options for both the plugin and the clangd.exe.

There is a typo in the file: https://sourceforge.net/projects/cb-clangd-client/files/Plugin_Install_Package/Windows_x64/0.2.5%20-%2012JAN2022/Windows-LLVM-ClangD-Install-Readme.txt/download

Quote
instructions below for the specific compiler you haev installed:



Pages: 1 ... 5 6 7 8 9 [10]