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

MicrosoftSqlToolsServiceLayer seems to hang with 200% cpu, no output #2

Open
unhammer opened this issue Dec 8, 2019 · 2 comments
Open

Comments

@unhammer
Copy link

unhammer commented Dec 8, 2019

As soon as I click the SQL server disconnected in the modeline, select my server and try connecting, MicrosoftSqlToolsServiceLayer starts using 200% cpu, but it still says "disconnected" (and of course nothing works). I did (setq lsp-mssql-log-debug-info t) but neither the *sql* nor *sql::stderr* buffers show any output.

If I click it again, I get

LSP :: Failed to connect with the following error error number: 0
nil

Is there a way to get more debug info?

@yyoncho
Copy link
Member

yyoncho commented Dec 16, 2019

You may set lsp-print-io to t and check what the server has returned. My guess is that the service layer is unable to connect to your mssql instance. Use lsp-workspace-show-log after setting lsp-print-io to t to view the logs.

@unhammer
Copy link
Author

unhammer commented Dec 16, 2019

Does mssql.log tell you anything? I don't see any clues :( The 100% cpu starts at line 273

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