Replies: 8 comments 4 replies
-
Tried again today and as soon as I opened Meson tree |
Beta Was this translation helpful? Give feedback.
-
I've just created #11.
I don't think it's the delay itself, I think it was the switch back to I also tested the plugin on Raspberry Pi and the initial indexing takes really long there so seeing some progress would be really useful. After that, normal editing is pretty responsive. Only semantic token requests seem to cause quite long delays on the server, and, interestingly, also block the GUI in Geany. The only reason why this happens that I can imagine is that clangd creates some lock that avoids sending RPC messages and Geany blocks in the Seems more like clangd problem but could be also something in jsonrpc-glib which is based on gio which behaves in a slightly unexpected way, at least for me: |
Beta Was this translation helpful? Give feedback.
-
Ok, yeah if the user is just reading the newly opened file they want the styling to get corrected in a reasonable time without typing.
Especially if its going to go index the whole tree every time a file is opened in a new tree that has a |
Beta Was this translation helpful? Give feedback.
-
People doing that already know they have to start such tasks before going on holiday :-). |
Beta Was this translation helpful? Give feedback.
-
Anyway, what it shows is that |
Beta Was this translation helpful? Give feedback.
-
Or using the config file: |
Beta Was this translation helpful? Give feedback.
-
I'm thinking about adding some config file option to disable LSP when opening files outside the project directory, what do you think? I think it could be useful because for directories without any |
Beta Was this translation helpful? Give feedback.
-
Noooooooooooooooooooooooooooooooooooooooooooo, my loverly features!!!!!!!!!!!!!!!!!!!!!!!!! 😭 As you said its clangd specific, I think other languages have learnt from the C/C++ build debacle and have there own ways of building stuff (crate for rust for eg). And yes, if a file without Is it possible to determine on a file by file basis rather than just reject all outside the project directory? Edit: or maybe just turn off errors for those files, the parsing seems not to be worse than ctags (at one quick glance anyway). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I had a C++ non-GTK LSP project not connected to any Geany tree open and LSP running.
I opened
document.c
from a Geany tree that was built with meson (ie had abuild/compile_commands.json
) and all the GTK and most library types were not recognised, the same as when I openeddocument.c
from a Geany tree built by autotools (no build dir).But when I also opened
document.h
from the meson tree all the GTK and STL types were then styled in that treesdocument.c
, but not in the autotools treedocument.c
, and that did not change when I opened the autotools trees
document.h`.Since the
compile_commands.json
of the open project does not tell where to find GTK symbols and clangd cannot find them for the files in the autotools tree it seems like clangd may search up the tree forbuild/compile_commands.json
and finds the one in the meson tree that tells it where to find GTK symbols.Is that documented, or is there another explanation?
Beta Was this translation helpful? Give feedback.
All reactions