Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support $cquery/progress #626

Closed
maddanio opened this issue Jun 24, 2019 · 5 comments
Closed

support $cquery/progress #626

maddanio opened this issue Jun 24, 2019 · 5 comments

Comments

@maddanio
Copy link

cquery works relatively well, but it would be nice to see indexing progress better by having sublime lsp support the $cquery/progress message. at least i assume thats what it would do, the log keeps saying it isnt supported when sublime starts up.

@rwols
Copy link
Member

rwols commented Jun 24, 2019

If I understand correctly, you should be able to write a cquery-specific "LanguageHandler". You can subscribe to the $cquery/progress notification in the on_initialized callback:

https://github.com/tomv564/LSP/blob/master/plugin/core/windows.py#L476

Here is the interface class for a LanguageHandler: https://github.com/tomv564/LSP/blob/master/plugin/core/handlers.py

Perhaps @papadokolos already has a solution (jacobdufault/cquery#525).

@papadokolos
Copy link

Sorry, I didn't implement a solution for this.

If you plan on implementing something yourself, note that cquery's development has been stopped, but it does have an actively maitained fork, created by one of cquery's main contributers:
https://github.com/MaskRay/ccls

For more information, see this issue:
jacobdufault/cquery#867

@maddanio
Copy link
Author

ok. so would ccls work with LSP?

@tomv564
Copy link
Contributor

tomv564 commented Aug 13, 2019

Hope you've tried ccls since, but I suspect clangd would also be a good option - both are compatible with this package.

@tomv564 tomv564 closed this as completed Aug 13, 2019
@maddanio
Copy link
Author

yep, unfortunately it sometimes keeps crashing. already made an issue, but that didnt fix it. somehow the pipe between the process and sublime seems to break, but i couldnt find out why yet. will investigate further

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants