codelite icon indicating copy to clipboard operation
codelite copied to clipboard

language server plugin different behavior on freebsd and linux

Open sss123next opened this issue 3 years ago • 11 comments

on current master ( 78443cfb10520adb7733411c2a6e64edcea654ec ) code completion does not work on freebsd with any language server. for ctagsd it just silently does not work at all. for ccls and clangd it can't find any include files.

sss123next avatar Apr 26 '22 09:04 sss123next

it seems i just missed "generate compil_commands.json file" in code completion options, but on linux completion works even with it turned off.

sss123next avatar Apr 26 '22 12:04 sss123next

also behavior on freebsd and linux are different, for example on freebsd i do not have tooltip on hover with type description and comments i use ccld, clangd and ctags on both systems

sss123next avatar Apr 26 '22 13:04 sss123next

the tooltip is there, disabled by default. settings-> code completion -> display type info tooltip

https://docs.codelite.org/plugins/lsp/#cmake-clangd-ctagsd

eranif avatar Apr 26 '22 20:04 eranif

yes, it is turned on.

sss123next avatar Apr 27 '22 00:04 sss123next

you will need to rebuild CodeLite. The binary file codelite-ctags provided with CodeLite probably does not run on freebsd.

I have updated the source code to build it on *nix machines and we no longer provide it.

    git clone https://github.com/eranif/codelite.git
    cd codelite
    git submodule update --init
    mkdir build-release
    cd build-release
    cmake .. -DCMAKE_BUILD_TYPE=Release
    make -j24 install

eranif avatar May 14 '22 10:05 eranif

i think problem caused by something else, i do have universal-ctags installed on bsd, and looks like it executed (i see high cpu load from ctags during codelite workspace parsing). also, i think pulling dependencies with codelite is not very good idea, it's just making build process more complicated. for example it does not builds anymore on my exherbo based system.

sss123next avatar May 15 '22 00:05 sss123next

i also can't build codelite on freebsd anymore via ports, freebsd does have strict security policies, and handling things like dynamic git submodules is a bit complicated.

sss123next avatar May 15 '22 00:05 sss123next

on b22aa39d671df064e44b96976ea32b40f4353c7f tooltips still does not work on freebsd on mouse hover in editor (does not work at all), but tooltips are sown from codecompleteon menu properly

sss123next avatar May 20 '22 10:05 sss123next

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs (within 5 days). Thank you for your contributions.

stale[bot] avatar Jul 10 '22 10:07 stale[bot]

still happening on latest master.

sss123next avatar Jul 10 '22 22:07 sss123next

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs (within 5 days). Thank you for your contributions.

stale[bot] avatar Oct 30 '22 14:10 stale[bot]