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

lsp displays loading... on hover #1811

Closed
jackdotink opened this issue Jan 7, 2023 · 3 comments
Closed

lsp displays loading... on hover #1811

jackdotink opened this issue Jan 7, 2023 · 3 comments
Labels
bug Something isn't working performance Related to the performance of the langauge server

Comments

@jackdotink
Copy link

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Type Checking, Completion, Diagnostics/Syntax Checking, Hover

Expected Behaviour

When you hover over some item, it should display the type information about said item. At the same time as this bug, all other diagnostics and completions are gone.

Actual Behaviour

When hovering over an item, it displays loading..., and this continues on for an unreasonably long time (1 min+). As well as this, no autocomplete functionality works, and no diagnostics or syntax errors are given.

Reproduction steps

I was unable to make a minimum repo, I've instead uploaded the project to github. This bug occurs whenever any item is hovered.

Additional Notes

No response

Log File

file_d%3A_Moonworks.log

@carsakiller
Copy link
Collaborator

The unusually long loading time may be due to an excessive amount of files being loaded. See "How can I improve startup speeds" in the wiki. Please check if you are including any libraries globally as this is a large contributor to load times.

@jackdotink
Copy link
Author

There are no libraries I am including, you can check the repo I linked, there is no large amount of files or large files.

@sumneko sumneko added performance Related to the performance of the langauge server bug Something isn't working and removed performance Related to the performance of the langauge server labels Jan 12, 2023
@jackdotink
Copy link
Author

I believe the file causing the issue is libs/luau_ast/nodes.lua as it is by far the largest file with the most complex type information, even though the file is relatively small.

@sumneko sumneko added the performance Related to the performance of the langauge server label Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working performance Related to the performance of the langauge server
Projects
None yet
Development

No branches or pull requests

3 participants