-
Notifications
You must be signed in to change notification settings - Fork 21
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
The isort server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information. #316
Comments
Can you run Are you using any custom encoding in your OS? |
I am facing a similar issue. In my case, it's also about:
Indeed, See also https://github.com/microsoft/vscode-black-formatter/pull/286/files |
This seems to be the case for embedded/portable python. I am open for a PR adding the changes that were done for black to address this. |
Also having this issue, the bundled install doesn't find the modules needed. Do not want to install them to my venv for the project either. I've gotten around this so far by installing it to another environment and then I pointed the extension to that one, but that's not ideal |
I get this error:
I use Debian Linux 11, Python |
Is there any updates on this? |
@MiltiadisKoutsokeras If you are not using portable python then make sure the following directory exists in the extension. |
I am coming back to this, indeed the directory
|
@MiltiadisKoutsokeras This issue is with how the package was created by whoever uploaded to the VSCodium's extension store. If you download the VSIX from the VS Code store you will see that it exists. Please raise an issue on the there. There is nothing we can do here. |
I am having this problem with the official MS release of VSCode on Windows and the official VSCode store, not using VSCodium. The problem as others have identified seems to be that the directory I am using a portable Python as I am not an administrator on this computer and cannot install Python for the system. Here's what PYTHONPATH looks like prior to me doing this. ['c:\\Users\\nriley\\.vscode\\extensions\\ms-python.isort-2023.13.10681007\\bundled\\libs',
'',
'C:\\Users\\nriley\\Apps\\Python\\python311.zip',
'C:\\Users\\nriley\\Apps\\Python',
'C:\\Users\\nriley\\Apps\\Python\\Lib\\site-packages',
'C:\\Users\\nriley\\Apps\\Python\\Lib\\site-packages\\win32',
'C:\\Users\\nriley\\Apps\\Python\\Lib\\site-packages\\win32\\lib',
'C:\\Users\\nriley\\AppData\\Roaming\\Python\\venv\\3.11',
'C:\\Users\\nriley\\AppData\\Roaming\\Python\\venv\\3.11\\Lib\\site-packages'] Copying the following lines from the linked vscode-black commit and adding them to lsp_server.py fixed the issue: BUNDLE_DIR = pathlib.Path(__file__).parent.parent
# Always use bundled server files.
update_sys_path(os.fspath(BUNDLE_DIR / "tool"), "useBundled") Unfortunately I do not have time to submit a PR right now but did not want to get this lost, as I was somewhat confused reading this issue that the original reported problem is still a problem with a known solution and just awaiting a PR to fix. |
2023-08-19 01:13:09.305 [info] Name: isort
2023-08-19 01:13:09.305 [info] Module: isort
2023-08-19 01:13:09.305 [info] Python extension loading
2023-08-19 01:13:09.305 [info] Waiting for interpreter from python extension.
2023-08-19 01:13:09.305 [info] No interpreter found from setting isort.interpreter
2023-08-19 01:13:09.305 [info] Getting interpreter from ms-python.python extension for workspace d:\work\njbdbd\dreamface\DreamSpaceLiveStream
2023-08-19 01:13:09.305 [info] Python extension loaded
2023-08-19 01:13:09.305 [info] Interpreter from ms-python.python extension for d:\work\njbdbd\dreamface\DreamSpaceLiveStream: d:\work\njbdbd\dreamface\python39\python.exe
2023-08-19 01:13:09.305 [info] No interpreter found from setting isort.interpreter
2023-08-19 01:13:09.328 [info] Getting interpreter from ms-python.python extension for workspace d:\work\njbdbd\dreamface\DreamSpaceLiveStream
2023-08-19 01:13:09.328 [info] Interpreter from ms-python.python extension for d:\work\njbdbd\dreamface\DreamSpaceLiveStream: d:\work\njbdbd\dreamface\python39\python.exe
2023-08-19 01:13:09.328 [info] Server run command: d:\work\njbdbd\dreamface\python39\python.exe c:\Users\admin.vscode\extensions\ms-python.isort-2023.10.1\bundled\tool\lsp_server.py
2023-08-19 01:13:09.328 [info] Server: Start requested.
2023-08-19 01:13:10.526 [info] Traceback (most recent call last):
File "c:\Users\admin.vscode\extensions\ms-python.isort-2023.10.1\bundled\tool\lsp_server.py", line 39, in
import lsp_jsonrpc as jsonrpc
ModuleNotFoundError: No module named 'lsp_jsonrpc'
2023-08-19 01:13:10.556 [info] [Error - 01:13:10] Server initialization failed.
2023-08-19 01:13:10.556 [info] Message: Pending response rejected since connection got disposed
Code: -32097
2023-08-19 01:13:10.557 [info] [Info - 01:13:10] Connection to server got closed. Server will restart.
2023-08-19 01:13:10.557 [info] true
2023-08-19 01:13:10.557 [info] [Error - 01:13:10] isort client: couldn't create connection to server.
2023-08-19 01:13:10.557 [info] Message: Pending response rejected since connection got disposed
Code: -32097
2023-08-19 01:13:11.168 [info] Traceback (most recent call last):
File "c:\Users\admin.vscode\extensions\ms-python.isort-2023.10.1\bundled\tool\lsp_server.py", line 39, in
2023-08-19 01:13:11.169 [info] import lsp_jsonrpc as jsonrpc
ModuleNotFoundError: No module named 'lsp_jsonrpc'
2023-08-19 01:13:13.769 [info] [Error - 01:13:13] Server initialization failed.
2023-08-19 01:13:13.770 [info] Message: Pending response rejected since connection got disposed
Code: -32097
2023-08-19 01:13:13.770 [info] [Info - 01:13:13] Connection to server got closed. Server will restart.
2023-08-19 01:13:13.770 [info] true
2023-08-19 01:13:13.770 [info] [Error - 01:13:13] isort client: couldn't create connection to server.
2023-08-19 01:13:13.770 [info] Message: Pending response rejected since connection got disposed
Code: -32097
2023-08-19 01:13:13.770 [error] Server: Start failed: Error: Pending response rejected since connection got disposed
2023-08-19 01:13:14.365 [info] Traceback (most recent call last):
File "c:\Users\admin.vscode\extensions\ms-python.isort-2023.10.1\bundled\tool\lsp_server.py", line 39, in
import lsp_jsonrpc as jsonrpc
ModuleNotFoundError: No module named 'lsp_jsonrpc'
2023-08-19 01:13:14.386 [info] [Error - 01:13:14] Server initialization failed.
2023-08-19 01:13:14.386 [info] Message: Pending response rejected since connection got disposed
Code: -32097
2023-08-19 01:13:14.386 [info] [Info - 01:13:14] Connection to server got closed. Server will restart.
2023-08-19 01:13:14.386 [info] true
2023-08-19 01:13:14.386 [info] [Error - 01:13:14] isort client: couldn't create connection to server.
2023-08-19 01:13:14.386 [info] Message: Pending response rejected since connection got disposed
Code: -32097
2023-08-19 01:13:14.387 [info] [Error - 01:13:14] Restarting server failed
2023-08-19 01:13:14.387 [info] Message: Pending response rejected since connection got disposed
Code: -32097
2023-08-19 01:13:15.303 [info] Traceback (most recent call last):
File "c:\Users\admin.vscode\extensions\ms-python.isort-2023.10.1\bundled\tool\lsp_server.py", line 39, in
import lsp_jsonrpc as jsonrpc
ModuleNotFoundError: No module named 'lsp_jsonrpc'
2023-08-19 01:13:15.331 [info] [Error - 01:13:15] Server initialization failed.
2023-08-19 01:13:15.331 [info] Message: Pending response rejected since connection got disposed
Code: -32097
2023-08-19 01:13:15.332 [info] [Info - 01:13:15] Connection to server got closed. Server will restart.
2023-08-19 01:13:15.332 [info] true
2023-08-19 01:13:15.332 [info] [Error - 01:13:15] isort client: couldn't create connection to server.
2023-08-19 01:13:15.332 [info] Message: Pending response rejected since connection got disposed
Code: -32097
2023-08-19 01:13:15.332 [info] [Error - 01:13:15] Restarting server failed
2023-08-19 01:13:15.332 [info] Message: Pending response rejected since connection got disposed
Code: -32097
2023-08-19 01:13:15.799 [info] Traceback (most recent call last):
File "c:\Users\admin.vscode\extensions\ms-python.isort-2023.10.1\bundled\tool\lsp_server.py", line 39, in
import lsp_jsonrpc as jsonrpc
ModuleNotFoundError: No module named 'lsp_jsonrpc'
2023-08-19 01:13:15.803 [info] [Error - 01:13:15] Server initialization failed.
2023-08-19 01:13:15.803 [info] Message: Pending response rejected since connection got disposed
Code: -32097
2023-08-19 01:13:15.803 [info] [Error - 01:13:15] The isort server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
2023-08-19 01:13:15.803 [info] [Error - 01:13:15] isort client: couldn't create connection to server.
2023-08-19 01:13:15.803 [info] Message: Pending response rejected since connection got disposed
Code: -32097
2023-08-19 01:13:15.803 [info] [Error - 01:13:15] Restarting server failed
2023-08-19 01:13:15.803 [info] Message: Pending response rejected since connection got disposed
Code: -32097
The text was updated successfully, but these errors were encountered: