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

Does not work on very large projects #2

Open
WanderFrank opened this issue Dec 5, 2024 · 10 comments
Open

Does not work on very large projects #2

WanderFrank opened this issue Dec 5, 2024 · 10 comments

Comments

@WanderFrank
Copy link

Errors in log like this:

2024-12-04T11:40:40.451 helix_lsp::client [WARN] language server failed to terminate gracefully - server closed the stream
2024-12-04T11:40:40.451 helix_lsp::transport [ERROR] ctags-lsp err <- "2024/12/04 11:40:40 Error reading message: error reading header: EOF\n"
2024-12-04T11:40:40.452 helix_lsp::transport [ERROR] ctags-lsp err: <- StreamClosed

2024-12-04T11:40:48.696 helix_lsp::transport [ERROR] ctags-lsp <- InternalError: Internal error
2024-12-04T11:40:48.696 helix_lsp [ERROR] failed to initialize language server: protocol error: InternalError: Internal error
@netmute
Copy link
Owner

netmute commented Dec 5, 2024

Can show me your ~/.config/helix/languages.toml?

@WanderFrank
Copy link
Author

[language-server.ctags-lsp]
timeout = 1000
command = "ctags-lsp"

[[language]]
name = "make"
language-servers = ["ctags-lsp"]

@netmute
Copy link
Owner

netmute commented Dec 6, 2024

Can you try if this build works for you?
ctags-lsp.tar.gz

@WanderFrank
Copy link
Author

2024-12-06T13:32:31.768 helix_lsp::transport [ERROR] ctags-lsp <- InternalError: Internal error
2024-12-06T13:32:31.769 helix_lsp [ERROR] failed to initialize language server: protocol error: InternalError: Internal error
2024-12-06T13:32:40.867 helix_lsp::client [WARN] language server failed to terminate gracefully - server closed the stream
2024-12-06T13:32:40.868 helix_lsp::transport [ERROR] ctags-lsp <- InvalidRequest: Malformed request
2024-12-06T13:32:40.868 helix_lsp::transport [ERROR] Discarding Language Server response without a request (id=Null) Err(Rpc(Error { code: InvalidRequest, message: "Malformed request", data: Some(String("error reading header: EOF")) }))
2024-12-06T13:32:40.868 helix_lsp::transport [ERROR] ctags-lsp <- InvalidRequest: Malformed request
2024-12-06T13:32:40.868 helix_lsp::transport [ERROR] Discarding Language Server response without a request (id=Null) Err(Rpc(Error { code: InvalidRequest, message: "Malformed request", data: Some(String("error reading header: EOF")) }))

@WanderFrank
Copy link
Author

I was running it on too big a project.
lsp create /tmp/tags.fbNo2K file 2,2Gb
It works on a smaller project.

@netmute
Copy link
Owner

netmute commented Dec 6, 2024

Can you run this command in your project directory and see if it works and how long it takes?

ctags --output-format=json --fields=+n -R

@WanderFrank
Copy link
Author

It works and execute 3m59,455s. Maybe you need to consider .gitignore file for best perfomansce.

@netmute
Copy link
Owner

netmute commented Dec 6, 2024

Supporting .gitignore is a good idea.
Can I ask you to try how much that will improve performance in your project?

git ls-files | ctags --output-format=json --fields=+n -L -

@netmute netmute changed the title Does not work on linux in helix Does not work on very large projects Dec 6, 2024
@WanderFrank
Copy link
Author

0m30,009s

@netmute
Copy link
Owner

netmute commented Dec 6, 2024

Better, but still way slower than I'd like it to be. Let me try and think of something to speed this up.
Thank you for your input so far!

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

No branches or pull requests

2 participants