You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the protocol documentation, the initializationOptions parameter to initialize is optional. My client omits this parameter.
This morning I did pip uninstall jedi-language-server followed by pip install -U jedi-language-server. This appears to have updated dependencies as follows:
{
jsonrpc = "2.0";
method = "window/showMessage";
params = {
message = "Invalid InitializationOptions, using defaults: 1 validation error for InitializationOptions\n__root__\n InitializationOptions expected dict not NoneType (type=type_error)";
type = 1;
};
}
However, the server never responds to the initialize request, even with an error, and so the client is left hanging.
So, the two issues I'm reporting are:
The server needs to allow initialize to succeed if initializationOptions is absent from the parameters.
If an error occurs during handling of an initialize call, please make sure that it is returned to the client, and that the server doesn't stall or hang. (The server could exit at that point, and my client can handle that case, but is probably not the ideal behavior.)
(Followup: it's possible that the hang is unrelated; after adding an empty dictionary for initializationOptions, I'm finding that the server still never returns from the initialize request, and that there's a Python process eating 100% CPU.)
The text was updated successfully, but these errors were encountered:
According to the protocol documentation, the
initializationOptions
parameter toinitialize
is optional. My client omits this parameter.This morning I did
pip uninstall jedi-language-server
followed bypip install -U jedi-language-server
. This appears to have updated dependencies as follows:When starting the server, my client supplies the following parameters to
initialize
:The server then sends a notification:
However, the server never responds to the
initialize
request, even with an error, and so the client is left hanging.So, the two issues I'm reporting are:
initialize
to succeed ifinitializationOptions
is absent from the parameters.initialize
call, please make sure that it is returned to the client, and that the server doesn't stall or hang. (The server could exit at that point, and my client can handle that case, but is probably not the ideal behavior.)(Followup: it's possible that the hang is unrelated; after adding an empty dictionary for
initializationOptions
, I'm finding that the server still never returns from theinitialize
request, and that there's a Python process eating 100% CPU.)The text was updated successfully, but these errors were encountered: