-
Notifications
You must be signed in to change notification settings - Fork 237
The server never answers to a initialize
request on Windows over stdio (but it does on Linux) (takes too long loading libraries on Windows)
#2092
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
Comments
initialize
request on Windows over stdio (but it does on Linux) (takes too long loading libraries)initialize
request on Windows over stdio (but it does on Linux) (takes too long loading libraries on Windows)
You know, I think maybe it's getting stuck loading your profile on Windows? Because I see this line:
but never the accompanying line:
which means it never finishes initializing (and therefore doesn't answer the request). |
I'm new to powershell, so sorry for my lack of knowledge. I guess that using the parameter Because, on the issue I linked (this one) people are having the same problem on Windows when everything works fine on Linux. |
That's right. I would try setting |
@andyleejordan confirming that this is the same issue I was having on #2048. Removing my profile, the LSP starts and works as expected. However, I'm not sure how I go about setting the value of It seems that neovim's LSP doesn't implement it. Is there a way I can pass it in as a parameter to |
@andyleejordan Thaaaaaaaaaaaaaanks, that was it. @scottmckendry You only need to do the following: require("lspconfig").powershell_es.setup {
bundle_path = "path/to/your/bundle_path",
init_options = {
enableProfileLoading = false,
},
} |
Glad to help and happy it's working for you! I'm sorry the setup for PSES for Vim/Emacs etc. is not the greatest. It's been on our docket to simplify and clean up for a long time but I keep getting pulled into other work. |
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
Steps to reproduce
I'm using Neovim as my editor, so I'm using the minimal reproduction of this issue (but using the
Diagnostic
log level for powershellEditorServices).a.ps1
initiliaze
request. There is more info on the logs)If the same things are done on linux, everything works as expected.
Expected behavior
PowershellEditorServices should answer the `initialize` request in both windows and linux.
Actual behavior
PowershellEditorServices does not answer the `initiliaze` request on Windows (there is more info in the logs)
Error details
No response
Environment data
Version
3.13
Visuals
Powershell logs on Linux (everything works fine here):
pwsh_linux.log
Neovim LSP logs on Linux (everything works fine here):
neovim_linux.log
Powershell logs on Windows (it looks like the server takes too long loading some libraries and then cancels the initialize request):
pwsh_windows.log
Neovim logs on Windows (there is never a response for the
initialize
requets)neovim_windows.log
The text was updated successfully, but these errors were encountered: