microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.33k stars 1.19k forks source link

Mypy linter crashes in Conda environment #20890

Closed mjbvz closed 1 year ago

mjbvz commented 1 year ago

Testing #20883

  1. Open python file with mypy linter
  2. Switch to conda environment

Bug The server repeatedly crashes and tells me it won't be restarted. Here are the

ERR [Extension Host] unhandledRejection {"code":"ERR_STREAM_WRITE_AFTER_END"}
console.ts:137 [Extension Host] unhandledRejection {"code":"ERR_STREAM_WRITE_AFTER_END"} (at console.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:98:155800))
T @ console.ts:137
console.ts:137 [Extension Host] rejected promise not handled within 1 second: Error [ERR_STREAM_WRITE_AFTER_END]: write after end (at console.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:98:155800))
T @ console.ts:137
console.ts:137 [Extension Host] stack trace: Error: write after end
    at new NodeError (node:internal/errors:371:5)
    at _write (node:internal/streams/writable:319:11)
    at Socket.Writable.write (node:internal/streams/writable:334:10)
    at /Users/matb/.vscode-insiders/extensions/ms-python.isort-2023.9.10591013/dist/extension.js:1:130988
    at new Promise (<anonymous>)
    at u.write (/Users/matb/.vscode-insiders/extensions/ms-python.isort-2023.9.10591013/dist/extension.js:1:130906)
    at m.doWrite (/Users/matb/.vscode-insiders/extensions/ms-python.isort-2023.9.10591013/dist/extension.js:1:120513)
    at /Users/matb/.vscode-insiders/extensions/ms-python.isort-2023.9.10591013/dist/extension.js:1:120408
    at runNextTicks (node:internal/process/task_queues:61:5)
    at processImmediate (node:internal/timers:437:9) (at console.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:98:155800))
T @ console.ts:137
mainThreadExtensionService.ts:80 [[object Object]]write after end
$onExtensionRuntimeError @ mainThreadExtensionService.ts:80
mainThreadExtensionService.ts:81 Error: write after end
    at new NodeError (node:internal/errors:371:5)
    at _write (node:internal/streams/writable:319:11)
    at Socket.Writable.write (node:internal/streams/writable:334:10)
    at /Users/matb/.vscode-insiders/extensions/ms-python.isort-2023.9.10591013/dist/extension.js:1:130988
    at new Promise (<anonymous>)
    at u.write (/Users/matb/.vscode-insiders/extensions/ms-python.isort-2023.9.10591013/dist/extension.js:1:130906)
    at m.doWrite (/Users/matb/.vscode-insiders/extensions/ms-python.isort-2023.9.10591013/dist/extension.js:1:120513)
    at /Users/matb/.vscode-insiders/extensions/ms-python.isort-2023.9.10591013/dist/extension.js:1:120408
    at runNextTicks (node:internal/process/task_queues:61:5)
    at processImmediate (node:internal/timers:437:9)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:81
notificationsAlerts.ts:42 Pending response rejected since connection got disposed
c @ notificationsAlerts.ts:42
notificationsAlerts.ts:42 Mypy client: couldn't create connection to server.
c @ notificationsAlerts.ts:42
log.ts:441   ERR [Extension Host] unhandledRejection {"code":-32097}
console.ts:137 [Extension Host] unhandledRejection {"code":-32097} (at console.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:98:155800))
T @ console.ts:137
notificationsAlerts.ts:42 Pending response rejected since connection got disposed
c @ notificationsAlerts.ts:42
notificationsAlerts.ts:42 Mypy client: couldn't create connection to server.
c @ notificationsAlerts.ts:42
notificationsAlerts.ts:42 Pending response rejected since connection got disposed
c @ notificationsAlerts.ts:42
notificationsAlerts.ts:42 Mypy client: couldn't create connection to server.
c @ notificationsAlerts.ts:42
notificationsAlerts.ts:42 Restarting server failed
c @ notificationsAlerts.ts:42
notificationsAlerts.ts:42 Pending response rejected since connection got disposed
c @ notificationsAlerts.ts:42
notificationsAlerts.ts:42 Mypy client: couldn't create connection to server.
c @ notificationsAlerts.ts:42
notificationsAlerts.ts:42 Restarting server failed
c @ notificationsAlerts.ts:42
notificationsAlerts.ts:42 Pending response rejected since connection got disposed
c @ notificationsAlerts.ts:42
notificationsAlerts.ts:42 The Mypy server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
c @ notificationsAlerts.ts:42
notificationsAlerts.ts:42 Mypy client: couldn't create connection to server.
c @ notificationsAlerts.ts:42
notificationsAlerts.ts:42 Restarting server failed
c @ notificationsAlerts.ts:42
console.ts:137 [Extension Host] rejected promise not handled within 1 second: Error: Pending response rejected since connection got disposed (at console.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:98:155800))
T @ console.ts:137
console.ts:137 [Extension Host] stack trace: Error: Pending response rejected since connection got disposed
    at Object.handleConnectionError [as dispose] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-jsonrpc/lib/common/connection.js:1167:103)
    at Object.$state [as dispose] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:1089:18)
    at D.fillInitializeParams (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:1112:18)
    at D.handleConnectionClosed (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/node/main.js:183:15)
    at /Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:1092:71
    at r._callbacks [as invoke] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-jsonrpc/lib/common/events.js:62:9)
    at o.timer [as fire] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
    at te (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-jsonrpc/lib/common/connection.js:332:38)
    at r._callbacks [as invoke] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-jsonrpc/lib/common/events.js:62:9)
    at o.fire (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
    at v.async [as fireClose] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:49:30)
    at Socket.<anonymous> (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:77:41)
    at Socket.emit (node:events:526:28)
    at Pipe.<anonymous> (node:net:687:12) (at console.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:98:155800))
T @ console.ts:137
mainThreadExtensionService.ts:80 [[object Object]]Pending response rejected since connection got disposed
$onExtensionRuntimeError @ mainThreadExtensionService.ts:80
mainThreadExtensionService.ts:81 Error: Pending response rejected since connection got disposed
    at Object.handleConnectionError [as dispose] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-jsonrpc/lib/common/connection.js:1167:103)
    at Object.$state [as dispose] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:1089:18)
    at D.fillInitializeParams (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:1112:18)
    at D.handleConnectionClosed (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/node/main.js:183:15)
    at /Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:1092:71
    at r._callbacks [as invoke] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-jsonrpc/lib/common/events.js:62:9)
    at o.timer [as fire] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
    at te (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-jsonrpc/lib/common/connection.js:332:38)
    at r._callbacks [as invoke] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-jsonrpc/lib/common/events.js:62:9)
    at o.fire (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-jsonrpc/lib/common/events.js:122:18)
    at v.async [as fireClose] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:49:30)
    at Socket.<anonymous> (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-jsonrpc/lib/common/messageWriter.js:77:41)
    at Socket.emit (node:events:526:28)
    at Pipe.<anonymous> (node:net:687:12)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:81
console.ts:137 [Extension Host] rejected promise not handled within 1 second: Error: Client is not running and can't be stopped. It's current state is: starting (at console.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:98:155800))
T @ console.ts:137
console.ts:137 [Extension Host] stack trace: Error: Client is not running and can't be stopped. It's current state is: starting
    at D.shutdown (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:914:29)
    at D._serverProcess (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:889:30)
    at D.workspaceFolders [as stop] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/node/main.js:152:38)
    at D.StartFailed [as doInitialize] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:873:42)
    at D.start (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:726:39)
    at onDidChangePythonInterpreter (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/src/common/server.ts:128:20)
    at serverId (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/src/extension.ts:40:9)
    at /Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/src/extension.ts:46:28 (at console.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:98:155800))
T @ console.ts:137
mainThreadExtensionService.ts:80 [[object Object]]Client is not running and can't be stopped. It's current state is: starting
$onExtensionRuntimeError @ mainThreadExtensionService.ts:80
mainThreadExtensionService.ts:81 Error: Client is not running and can't be stopped. It's current state is: starting
    at D.shutdown (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:914:29)
    at D._serverProcess (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:889:30)
    at D.workspaceFolders [as stop] (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/node/main.js:152:38)
    at D.StartFailed [as doInitialize] (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:873:42)
    at D.start (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:726:39)
    at onDidChangePythonInterpreter (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/src/common/server.ts:128:20)
    at serverId (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/src/extension.ts:40:9)
    at vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/src/extension.ts:46:28
$onExtensionRuntimeError @ mainThreadExtensionService.ts:81
console.ts:137 [Extension Host] rejected promise not handled within 1 second: Error: Client is not running and can't be stopped. It's current state is: startFailed (at console.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:98:155800))
T @ console.ts:137
console.ts:137 [Extension Host] stack trace: Error: Client is not running and can't be stopped. It's current state is: startFailed
    at D.shutdown (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:914:29)
    at D._serverProcess (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:889:30)
    at D.workspaceFolders [as stop] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/node/main.js:152:38)
    at D.StartFailed [as doInitialize] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:873:42)
    at D.start (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:726:39) (at console.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:98:155800))
T @ console.ts:137
mainThreadExtensionService.ts:80 [[object Object]]Client is not running and can't be stopped. It's current state is: startFailed
$onExtensionRuntimeError @ mainThreadExtensionService.ts:80
mainThreadExtensionService.ts:81 Error: Client is not running and can't be stopped. It's current state is: startFailed
    at D.shutdown (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:914:29)
    at D._serverProcess (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:889:30)
    at D.workspaceFolders [as stop] (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/node/main.js:152:38)
    at D.StartFailed [as doInitialize] (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:873:42)
    at D.start (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:726:39)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:81
console.ts:137 [Extension Host] rejected promise not handled within 1 second: Error: Client is not running and can't be stopped. It's current state is: startFailed (at console.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:98:155800))
T @ console.ts:137
console.ts:137 [Extension Host] stack trace: Error: Client is not running and can't be stopped. It's current state is: startFailed
    at D.shutdown (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:914:29)
    at D._serverProcess (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:889:30)
    at D.workspaceFolders [as stop] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/node/main.js:152:38)
    at D.StartFailed [as doInitialize] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:873:42)
    at D.start (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:726:39) (at console.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:98:155800))
T @ console.ts:137
mainThreadExtensionService.ts:80 [[object Object]]Client is not running and can't be stopped. It's current state is: startFailed
$onExtensionRuntimeError @ mainThreadExtensionService.ts:80
mainThreadExtensionService.ts:81 Error: Client is not running and can't be stopped. It's current state is: startFailed
    at D.shutdown (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:914:29)
    at D._serverProcess (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:889:30)
    at D.workspaceFolders [as stop] (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/node/main.js:152:38)
    at D.StartFailed [as doInitialize] (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:873:42)
    at D.start (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:726:39)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:81
console.ts:137 [Extension Host] rejected promise not handled within 1 second: Error: Client is not running and can't be stopped. It's current state is: startFailed (at console.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:98:155800))
T @ console.ts:137
console.ts:137 [Extension Host] stack trace: Error: Client is not running and can't be stopped. It's current state is: startFailed
    at D.shutdown (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:914:29)
    at D._serverProcess (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:889:30)
    at D.workspaceFolders [as stop] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/node/main.js:152:38)
    at D.StartFailed [as doInitialize] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:873:42)
    at D.start (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:726:39) (at console.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:98:155800))
T @ console.ts:137
mainThreadExtensionService.ts:80 [[object Object]]Client is not running and can't be stopped. It's current state is: startFailed
$onExtensionRuntimeError @ mainThreadExtensionService.ts:80
mainThreadExtensionService.ts:81 Error: Client is not running and can't be stopped. It's current state is: startFailed
    at D.shutdown (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:914:29)
    at D._serverProcess (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:889:30)
    at D.workspaceFolders [as stop] (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/node/main.js:152:38)
    at D.StartFailed [as doInitialize] (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:873:42)
    at D.start (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:726:39)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:81
console.ts:137 [Extension Host] rejected promise not handled within 1 second: Error: Client is not running and can't be stopped. It's current state is: startFailed (at console.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:98:155800))
T @ console.ts:137
console.ts:137 [Extension Host] stack trace: Error: Client is not running and can't be stopped. It's current state is: startFailed
    at D.shutdown (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:914:29)
    at D._serverProcess (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:889:30)
    at D.workspaceFolders [as stop] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/node/main.js:152:38)
    at D.StartFailed [as doInitialize] (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:873:42)
    at D.start (/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:726:39) (at console.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:98:155800))
T @ console.ts:137
mainThreadExtensionService.ts:80 [[object Object]]Client is not running and can't be stopped. It's current state is: startFailed
$onExtensionRuntimeError @ mainThreadExtensionService.ts:80
mainThreadExtensionService.ts:81 Error: Client is not running and can't be stopped. It's current state is: startFailed
    at D.shutdown (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:914:29)
    at D._serverProcess (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:889:30)
    at D.workspaceFolders [as stop] (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/node/main.js:152:38)
    at D.StartFailed [as doInitialize] (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:873:42)
    at D.start (vscode-file://vscode-app/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/dist/webpack:/mypy/node_modules/vscode-languageclient/lib/common/client.js:726:39)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:81
mjbvz commented 1 year ago

Actually seems to be crashing under non-conda environments now too. Not sure how to get it back into a working state

Example mypy log:

``` 2023-03-21 12:43:18.343 [info] Server run command: /usr/local/bin/python3.9 /Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py 2023-03-21 12:43:18.343 [info] Server: Start requested. 2023-03-21 12:43:21.335 [info] CWD Server: /Users/matb/projects/san 2023-03-21 12:43:21.336 [info] Settings used to run Server: [ { "cwd": "/Users/matb/projects/san", "workspace": "file:///Users/matb/projects/san", "args": [ "--follow-imports=silent", "--ignore-missing-imports", "--no-pretty" ], "severity": { "error": "Error", "note": "Information" }, "path": [], "interpreter": [ "/usr/local/bin/python3.9" ], "importStrategy": "fromEnvironment", "showNotifications": "off", "extraPaths": [] } ] 2023-03-21 12:43:21.336 [info] Global settings: { "cwd": "/", "workspace": "/", "args": [ "--follow-imports=silent", "--ignore-missing-imports", "--no-pretty" ], "severity": { "error": "Error", "note": "Information" }, "path": [], "interpreter": [], "importStrategy": "fromEnvironment", "showNotifications": "off", "extraPaths": [] } 2023-03-21 12:43:21.336 [info] sys.path used to run Server: /Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool /usr/local/Cellar/python@3.9/3.9.14/Frameworks/Python.framework/Versions/3.9/lib/python39.zip /usr/local/Cellar/python@3.9/3.9.14/Frameworks/Python.framework/Versions/3.9/lib/python3.9 /usr/local/Cellar/python@3.9/3.9.14/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload /Users/matb/Library/Python/3.9/lib/python/site-packages /usr/local/lib/python3.9/site-packages /Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs /Users/matb/projects/san 2023-03-21 12:43:21.369 [info] /usr/local/bin/python3.9 -m mypy --version 2023-03-21 12:43:21.369 [info] CWD Linter: /Users/matb/projects/san 2023-03-21 12:43:23.750 [info] mypy 1.1.1 (compiled: no) 2023-03-21 12:43:23.750 [info] Version info for linter running for /Users/matb/projects/san: mypy 1.1.1 (compiled: no) 2023-03-21 12:43:23.751 [info] SUPPORTED mypy>=1.0.0 FOUND mypy==1.1.1 2023-03-21 12:43:23.761 [info] [Trace - 12:43:23 PM] Received notification 'textDocument/publishDiagnostics'. 2023-03-21 12:43:23.762 [info] [Trace - 12:43:23 PM] Received notification 'window/logMessage'. 2023-03-21 12:43:23.762 [info] /usr/local/bin/python3.9 -m mypy --no-color-output --no-error-summary --show-column-numbers --show-error-code --follow-imports=silent --ignore-missing-imports --no-pretty --show-error-end /Users/matb/projects/san/x.py 2023-03-21 12:43:23.762 [info] [Trace - 12:43:23 PM] Received notification 'window/logMessage'. 2023-03-21 12:43:23.762 [info] CWD Linter: /Users/matb/projects/san 2023-03-21 12:43:24.255 [info] [Trace - 12:43:24 PM] Sending notification 'textDocument/didChange'. 2023-03-21 12:43:25.008 [info] [Trace - 12:43:25 PM] Sending notification 'textDocument/didChange'. 2023-03-21 12:43:25.267 [info] [Trace - 12:43:25 PM] Sending notification 'textDocument/didSave'. 2023-03-21 12:43:28.362 [info] [Trace - 12:43:28 PM] Received notification 'window/logMessage'. 2023-03-21 12:43:28.363 [info] file:///Users/matb/projects/san/x.py : x.py:6:20:6:29: error: Incompatible types in assignment (expression has type "str", target has type "Tuple[object, ...]") [assignment] x.py:7:21:7:31: error: Incompatible types in assignment (expression has type "str", target has type "Tuple[object, ...]") [assignment] x.py:8:18:8:36: error: Incompatible types in assignment (expression has type "bool", target has type "Tuple[object, ...]") [assignment] x.py:12:11:12:11: error: Name "x" is not defined [name-defined] 2023-03-21 12:43:28.363 [info] [Trace - 12:43:28 PM] Received notification 'window/logMessage'. 2023-03-21 12:43:28.363 [info] file:///Users/matb/projects/san/x.py : x.py:6:20:6:29: error: Incompatible types in assignment (expression has type "str", target has type "Tuple[object, ...]") [assignment] x.py:7:21:7:31: error: Incompatible types in assignment (expression has type "str", target has type "Tuple[object, ...]") [assignment] x.py:8:18:8:36: error: Incompatible types in assignment (expression has type "bool", target has type "Tuple[object, ...]") [assignment] x.py:12:11:12:11: error: Name "x" is not defined [name-defined] 2023-03-21 12:43:28.363 [info] [Trace - 12:43:28 PM] Received notification 'textDocument/publishDiagnostics'. 2023-03-21 12:43:28.367 [info] [Trace - 12:43:28 PM] Received notification 'window/logMessage'. 2023-03-21 12:43:28.367 [info] /usr/local/bin/python3.9 -m mypy --no-color-output --no-error-summary --show-column-numbers --show-error-code --follow-imports=silent --ignore-missing-imports --no-pretty --show-error-end /Users/matb/projects/san/x.py 2023-03-21 12:43:28.367 [info] [Trace - 12:43:28 PM] Received notification 'window/logMessage'. 2023-03-21 12:43:28.367 [info] CWD Linter: /Users/matb/projects/san 2023-03-21 12:43:28.963 [info] [Trace - 12:43:28 PM] Received notification 'window/logMessage'. 2023-03-21 12:43:28.963 [info] file:///Users/matb/projects/san/x.py : x.py:6:20:6:29: error: Incompatible types in assignment (expression has type "str", target has type "Tuple[object, ...]") [assignment] x.py:7:21:7:31: error: Incompatible types in assignment (expression has type "str", target has type "Tuple[object, ...]") [assignment] x.py:8:18:8:36: error: Incompatible types in assignment (expression has type "bool", target has type "Tuple[object, ...]") [assignment] x.py:12:11:12:11: error: Name "x" is not defined [name-defined] 2023-03-21 12:43:28.963 [info] [Trace - 12:43:28 PM] Received notification 'window/logMessage'. 2023-03-21 12:43:28.963 [info] file:///Users/matb/projects/san/x.py : x.py:6:20:6:29: error: Incompatible types in assignment (expression has type "str", target has type "Tuple[object, ...]") [assignment] x.py:7:21:7:31: error: Incompatible types in assignment (expression has type "str", target has type "Tuple[object, ...]") [assignment] x.py:8:18:8:36: error: Incompatible types in assignment (expression has type "bool", target has type "Tuple[object, ...]") [assignment] x.py:12:11:12:11: error: Name "x" is not defined [name-defined] 2023-03-21 12:43:28.963 [info] [Trace - 12:43:28 PM] Received notification 'textDocument/publishDiagnostics'. 2023-03-21 12:55:57.544 [info] Server: Stop requested 2023-03-21 12:55:57.545 [info] [Trace - 12:55:57 PM] Sending request 'shutdown - (1)'. 2023-03-21 12:55:57.602 [info] [Trace - 12:55:57 PM] Received response 'shutdown - (1)' in 58ms. 2023-03-21 12:55:57.603 [info] [Trace - 12:55:57 PM] Sending notification 'exit'. 2023-03-21 12:55:57.617 [info] Server run command: /Users/matb/opt/anaconda3/bin/python /Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py 2023-03-21 12:55:57.617 [info] Server: Start requested. 2023-03-21 12:55:58.754 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 39, in 2023-03-21 12:55:58.754 [info] import lsprotocol.types as lsp File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/lsprotocol/types.py", line 14, in 2023-03-21 12:55:58.789 [info] import attrs File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/attrs/__init__.py", line 3, in 2023-03-21 12:55:58.789 [info] from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/matb/opt/anaconda3/lib/python3.9/site-packages/attr/__init__.py) 2023-03-21 12:55:58.801 [info] [Error - 12:55:58 PM] Server initialization failed. 2023-03-21 12:55:58.801 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 12:55:58.801 [info] [Info - 12:55:58 PM] Connection to server got closed. Server will restart. 2023-03-21 12:55:58.801 [info] true 2023-03-21 12:55:58.801 [info] [Error - 12:55:58 PM] Mypy client: couldn't create connection to server. 2023-03-21 12:55:58.801 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 12:55:58.925 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 39, in 2023-03-21 12:55:58.925 [info] import lsprotocol.types as lsp File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/lsprotocol/types.py", line 14, in import attrs File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/attrs/__init__.py", line 3, in 2023-03-21 12:55:58.925 [info] from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/matb/opt/anaconda3/lib/python3.9/site-packages/attr/__init__.py) 2023-03-21 12:55:58.936 [info] [Error - 12:55:58 PM] Server initialization failed. 2023-03-21 12:55:58.936 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 12:55:58.936 [info] [Info - 12:55:58 PM] Connection to server got closed. Server will restart. 2023-03-21 12:55:58.937 [info] true 2023-03-21 12:55:58.937 [info] [Error - 12:55:58 PM] Mypy client: couldn't create connection to server. 2023-03-21 12:55:58.937 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 12:55:58.937 [error] Server: Start failed: Error: Pending response rejected since connection got disposed 2023-03-21 12:55:59.045 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 39, in 2023-03-21 12:55:59.045 [info] import lsprotocol.types as lsp File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/lsprotocol/types.py", line 14, in import attrs File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/attrs/__init__.py", line 3, in from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/matb/opt/anaconda3/lib/python3.9/site-packages/attr/__init__.py) 2023-03-21 12:55:59.055 [info] [Error - 12:55:59 PM] Server initialization failed. 2023-03-21 12:55:59.055 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 12:55:59.055 [info] [Info - 12:55:59 PM] Connection to server got closed. Server will restart. 2023-03-21 12:55:59.055 [info] true 2023-03-21 12:55:59.055 [info] [Error - 12:55:59 PM] Mypy client: couldn't create connection to server. 2023-03-21 12:55:59.055 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 12:55:59.056 [info] [Error - 12:55:59 PM] Restarting server failed 2023-03-21 12:55:59.056 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 12:55:59.163 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 39, in 2023-03-21 12:55:59.163 [info] import lsprotocol.types as lsp File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/lsprotocol/types.py", line 14, in import attrs File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/attrs/__init__.py", line 3, in from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/matb/opt/anaconda3/lib/python3.9/site-packages/attr/__init__.py) 2023-03-21 12:55:59.175 [info] [Error - 12:55:59 PM] Server initialization failed. 2023-03-21 12:55:59.175 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 12:55:59.175 [info] [Info - 12:55:59 PM] Connection to server got closed. Server will restart. 2023-03-21 12:55:59.175 [info] true 2023-03-21 12:55:59.176 [info] [Error - 12:55:59 PM] Mypy client: couldn't create connection to server. 2023-03-21 12:55:59.176 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 12:55:59.176 [info] [Error - 12:55:59 PM] Restarting server failed 2023-03-21 12:55:59.176 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 12:55:59.332 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 39, in 2023-03-21 12:55:59.332 [info] import lsprotocol.types as lsp File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/lsprotocol/types.py", line 14, in import attrs File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/attrs/__init__.py", line 3, in from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/matb/opt/anaconda3/lib/python3.9/site-packages/attr/__init__.py) 2023-03-21 12:55:59.344 [info] [Error - 12:55:59 PM] Server initialization failed. 2023-03-21 12:55:59.344 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 12:55:59.344 [info] [Error - 12:55:59 PM] The Mypy server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information. 2023-03-21 12:55:59.344 [info] [Error - 12:55:59 PM] Mypy client: couldn't create connection to server. 2023-03-21 12:55:59.344 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 12:55:59.344 [info] [Error - 12:55:59 PM] Restarting server failed 2023-03-21 12:55:59.344 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:02:03.785 [info] Server run command: /Users/matb/opt/anaconda3/bin/python /Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py 2023-03-21 13:02:03.785 [info] Server: Start requested. 2023-03-21 13:02:03.979 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 39, in import lsprotocol.types as lsp File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/lsprotocol/types.py", line 14, in import attrs File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/attrs/__init__.py", line 3, in from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/matb/opt/anaconda3/lib/python3.9/site-packages/attr/__init__.py) 2023-03-21 13:02:04.077 [info] [Error - 1:02:04 PM] Server initialization failed. 2023-03-21 13:02:04.077 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:02:04.077 [info] [Info - 1:02:04 PM] Connection to server got closed. Server will restart. 2023-03-21 13:02:04.077 [info] true 2023-03-21 13:02:04.078 [info] [Error - 1:02:04 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:02:04.078 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:02:06.455 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 39, in import lsprotocol.types as lsp File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/lsprotocol/types.py", line 14, in import attrs File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/attrs/__init__.py", line 3, in from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/matb/opt/anaconda3/lib/python3.9/site-packages/attr/__init__.py) 2023-03-21 13:02:06.543 [info] [Error - 1:02:06 PM] Server initialization failed. 2023-03-21 13:02:06.543 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:02:06.543 [info] [Info - 1:02:06 PM] Connection to server got closed. Server will restart. 2023-03-21 13:02:06.543 [info] true 2023-03-21 13:02:06.543 [info] [Error - 1:02:06 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:02:06.544 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:02:06.544 [error] Server: Start failed: Error: Pending response rejected since connection got disposed 2023-03-21 13:02:06.881 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 39, in import lsprotocol.types as lsp File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/lsprotocol/types.py", line 14, in import attrs File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/attrs/__init__.py", line 3, in from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/matb/opt/anaconda3/lib/python3.9/site-packages/attr/__init__.py) 2023-03-21 13:02:06.892 [info] [Error - 1:02:06 PM] Server initialization failed. 2023-03-21 13:02:06.893 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:02:06.893 [info] [Info - 1:02:06 PM] Connection to server got closed. Server will restart. 2023-03-21 13:02:06.893 [info] true 2023-03-21 13:02:06.893 [info] [Error - 1:02:06 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:02:06.893 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:02:06.894 [info] [Error - 1:02:06 PM] Restarting server failed 2023-03-21 13:02:06.894 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:02:07.287 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 39, in import lsprotocol.types as lsp File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/lsprotocol/types.py", line 14, in import attrs File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/attrs/__init__.py", line 3, in from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/matb/opt/anaconda3/lib/python3.9/site-packages/attr/__init__.py) 2023-03-21 13:02:07.294 [info] [Error - 1:02:07 PM] Server initialization failed. 2023-03-21 13:02:07.294 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:02:07.294 [info] [Info - 1:02:07 PM] Connection to server got closed. Server will restart. 2023-03-21 13:02:07.294 [info] true 2023-03-21 13:02:07.295 [info] [Error - 1:02:07 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:02:07.295 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:02:07.295 [info] [Error - 1:02:07 PM] Restarting server failed 2023-03-21 13:02:07.295 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:02:07.957 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 39, in import lsprotocol.types as lsp File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/lsprotocol/types.py", line 14, in import attrs File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/attrs/__init__.py", line 3, in from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/matb/opt/anaconda3/lib/python3.9/site-packages/attr/__init__.py) 2023-03-21 13:02:07.992 [info] [Error - 1:02:07 PM] Server initialization failed. 2023-03-21 13:02:07.993 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:02:07.993 [info] [Error - 1:02:07 PM] The Mypy server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information. 2023-03-21 13:02:07.993 [info] [Error - 1:02:07 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:02:07.993 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:02:07.993 [info] [Error - 1:02:07 PM] Restarting server failed 2023-03-21 13:02:07.993 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:27.123 [info] Server run command: /usr/local/bin/python /Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py 2023-03-21 13:03:27.124 [info] Server: Start requested. 2023-03-21 13:03:28.833 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 40, in 2023-03-21 13:03:28.833 [info] from pygls import server, uris, workspace File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/pygls/server.py", line 27, in from pygls.lsp import ConfigCallbackType, ShowDocumentCallbackType File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/pygls/lsp/__init__.py", line 19, in from lsprotocol.types import ( ImportError: cannot import name 'TEXT_DOCUMENT_SEMANTIC_TOKENS_FULL' from 'lsprotocol.types' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/lsprotocol/types.py) 2023-03-21 13:03:28.907 [info] [Error - 1:03:28 PM] Server initialization failed. 2023-03-21 13:03:28.908 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:28.908 [info] [Info - 1:03:28 PM] Connection to server got closed. Server will restart. 2023-03-21 13:03:28.908 [info] true 2023-03-21 13:03:28.908 [info] [Error - 1:03:28 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:03:28.908 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:29.420 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 40, in 2023-03-21 13:03:29.421 [info] from pygls import server, uris, workspace File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/pygls/server.py", line 27, in from pygls.lsp import ConfigCallbackType, ShowDocumentCallbackType File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/pygls/lsp/__init__.py", line 19, in 2023-03-21 13:03:29.421 [info] from lsprotocol.types import ( ImportError: cannot import name 'TEXT_DOCUMENT_SEMANTIC_TOKENS_FULL' from 'lsprotocol.types' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/lsprotocol/types.py) 2023-03-21 13:03:29.479 [info] [Error - 1:03:29 PM] Server initialization failed. 2023-03-21 13:03:29.479 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:29.479 [info] [Info - 1:03:29 PM] Connection to server got closed. Server will restart. 2023-03-21 13:03:29.479 [info] true 2023-03-21 13:03:29.480 [info] [Error - 1:03:29 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:03:29.480 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:29.480 [error] Server: Start failed: Error: Pending response rejected since connection got disposed 2023-03-21 13:03:29.994 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 40, in 2023-03-21 13:03:29.995 [info] from pygls import server, uris, workspace File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/pygls/server.py", line 27, in 2023-03-21 13:03:29.995 [info] from pygls.lsp import ConfigCallbackType, ShowDocumentCallbackType File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/pygls/lsp/__init__.py", line 19, in from lsprotocol.types import ( 2023-03-21 13:03:29.995 [info] ImportError: cannot import name 'TEXT_DOCUMENT_SEMANTIC_TOKENS_FULL' from 'lsprotocol.types' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/lsprotocol/types.py) 2023-03-21 13:03:30.083 [info] [Error - 1:03:30 PM] Server initialization failed. 2023-03-21 13:03:30.083 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:30.083 [info] [Info - 1:03:30 PM] Connection to server got closed. Server will restart. 2023-03-21 13:03:30.083 [info] true 2023-03-21 13:03:30.084 [info] [Error - 1:03:30 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:03:30.084 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:30.084 [info] [Error - 1:03:30 PM] Restarting server failed 2023-03-21 13:03:30.084 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:30.677 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 40, in 2023-03-21 13:03:30.677 [info] from pygls import server, uris, workspace File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/pygls/server.py", line 27, in 2023-03-21 13:03:30.677 [info] from pygls.lsp import ConfigCallbackType, ShowDocumentCallbackType File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/pygls/lsp/__init__.py", line 19, in from lsprotocol.types import ( ImportError: cannot import name 'TEXT_DOCUMENT_SEMANTIC_TOKENS_FULL' from 'lsprotocol.types' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/lsprotocol/types.py) 2023-03-21 13:03:30.732 [info] [Error - 1:03:30 PM] Server initialization failed. 2023-03-21 13:03:30.732 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:30.732 [info] [Info - 1:03:30 PM] Connection to server got closed. Server will restart. 2023-03-21 13:03:30.732 [info] true 2023-03-21 13:03:30.732 [info] [Error - 1:03:30 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:03:30.733 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:30.733 [info] [Error - 1:03:30 PM] Restarting server failed 2023-03-21 13:03:30.733 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:31.230 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 40, in 2023-03-21 13:03:31.230 [info] from pygls import server, uris, workspace File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/pygls/server.py", line 27, in from pygls.lsp import ConfigCallbackType, ShowDocumentCallbackType File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/pygls/lsp/__init__.py", line 19, in 2023-03-21 13:03:31.231 [info] from lsprotocol.types import ( ImportError: cannot import name 'TEXT_DOCUMENT_SEMANTIC_TOKENS_FULL' from 'lsprotocol.types' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/lsprotocol/types.py) 2023-03-21 13:03:31.310 [info] [Error - 1:03:31 PM] Server initialization failed. 2023-03-21 13:03:31.310 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:31.310 [info] [Error - 1:03:31 PM] The Mypy server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information. 2023-03-21 13:03:31.310 [info] [Error - 1:03:31 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:03:31.310 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:31.310 [info] [Error - 1:03:31 PM] Restarting server failed 2023-03-21 13:03:31.310 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:52.659 [info] Server run command: /usr/local/bin/python /Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py 2023-03-21 13:03:52.659 [info] Server: Start requested. 2023-03-21 13:03:54.029 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 40, in from pygls import server, uris, workspace File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/pygls/server.py", line 27, in from pygls.lsp import ConfigCallbackType, ShowDocumentCallbackType File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/pygls/lsp/__init__.py", line 19, in from lsprotocol.types import ( ImportError: cannot import name 'TEXT_DOCUMENT_SEMANTIC_TOKENS_FULL' from 'lsprotocol.types' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/lsprotocol/types.py) 2023-03-21 13:03:54.041 [info] [Error - 1:03:54 PM] Server initialization failed. 2023-03-21 13:03:54.041 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:54.041 [info] [Info - 1:03:54 PM] Connection to server got closed. Server will restart. 2023-03-21 13:03:54.041 [info] true 2023-03-21 13:03:54.042 [info] [Error - 1:03:54 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:03:54.042 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:55.428 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 40, in from pygls import server, uris, workspace File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/pygls/server.py", line 27, in from pygls.lsp import ConfigCallbackType, ShowDocumentCallbackType File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/pygls/lsp/__init__.py", line 19, in from lsprotocol.types import ( ImportError: cannot import name 'TEXT_DOCUMENT_SEMANTIC_TOKENS_FULL' from 'lsprotocol.types' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/lsprotocol/types.py) 2023-03-21 13:03:55.581 [info] [Error - 1:03:55 PM] Server initialization failed. 2023-03-21 13:03:55.582 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:55.582 [info] [Info - 1:03:55 PM] Connection to server got closed. Server will restart. 2023-03-21 13:03:55.582 [info] true 2023-03-21 13:03:55.582 [info] [Error - 1:03:55 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:03:55.583 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:55.583 [error] Server: Start failed: Error: Pending response rejected since connection got disposed 2023-03-21 13:03:57.260 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 40, in 2023-03-21 13:03:57.264 [info] from pygls import server, uris, workspace File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/pygls/server.py", line 27, in from pygls.lsp import ConfigCallbackType, ShowDocumentCallbackType File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/pygls/lsp/__init__.py", line 19, in from lsprotocol.types import ( ImportError: cannot import name 'TEXT_DOCUMENT_SEMANTIC_TOKENS_FULL' from 'lsprotocol.types' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/lsprotocol/types.py) 2023-03-21 13:03:57.378 [info] [Error - 1:03:57 PM] Server initialization failed. 2023-03-21 13:03:57.378 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:57.379 [info] [Info - 1:03:57 PM] Connection to server got closed. Server will restart. 2023-03-21 13:03:57.379 [info] true 2023-03-21 13:03:57.379 [info] [Error - 1:03:57 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:03:57.379 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:57.380 [info] [Error - 1:03:57 PM] Restarting server failed 2023-03-21 13:03:57.380 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:58.764 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 40, in 2023-03-21 13:03:58.765 [info] from pygls import server, uris, workspace File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/pygls/server.py", line 27, in from pygls.lsp import ConfigCallbackType, ShowDocumentCallbackType 2023-03-21 13:03:58.765 [info] File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/pygls/lsp/__init__.py", line 19, in from lsprotocol.types import ( ImportError: cannot import name 'TEXT_DOCUMENT_SEMANTIC_TOKENS_FULL' from 'lsprotocol.types' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/lsprotocol/types.py) 2023-03-21 13:03:58.880 [info] [Error - 1:03:58 PM] Server initialization failed. 2023-03-21 13:03:58.880 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:58.880 [info] [Info - 1:03:58 PM] Connection to server got closed. Server will restart. 2023-03-21 13:03:58.881 [info] true 2023-03-21 13:03:58.881 [info] [Error - 1:03:58 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:03:58.881 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:03:58.882 [info] [Error - 1:03:58 PM] Restarting server failed 2023-03-21 13:03:58.882 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:04:00.091 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 40, in 2023-03-21 13:04:00.092 [info] from pygls import server, uris, workspace File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/pygls/server.py", line 27, in from pygls.lsp import ConfigCallbackType, ShowDocumentCallbackType File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/pygls/lsp/__init__.py", line 19, in 2023-03-21 13:04:00.092 [info] from lsprotocol.types import ( ImportError: cannot import name 'TEXT_DOCUMENT_SEMANTIC_TOKENS_FULL' from 'lsprotocol.types' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/lsprotocol/types.py) 2023-03-21 13:04:00.200 [info] [Error - 1:04:00 PM] Server initialization failed. 2023-03-21 13:04:00.200 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:04:00.200 [info] [Error - 1:04:00 PM] The Mypy server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information. 2023-03-21 13:04:00.200 [info] [Error - 1:04:00 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:04:00.201 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:04:00.201 [info] [Error - 1:04:00 PM] Restarting server failed 2023-03-21 13:04:00.201 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:04:54.734 [info] Server run command: /Users/matb/opt/anaconda3/bin/python /Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py 2023-03-21 13:04:54.734 [info] Server: Start requested. 2023-03-21 13:04:54.919 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 39, in 2023-03-21 13:04:54.919 [info] import lsprotocol.types as lsp File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/lsprotocol/types.py", line 14, in 2023-03-21 13:04:54.920 [info] import attrs File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/attrs/__init__.py", line 3, in 2023-03-21 13:04:54.921 [info] from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/matb/opt/anaconda3/lib/python3.9/site-packages/attr/__init__.py) 2023-03-21 13:04:54.935 [info] [Error - 1:04:54 PM] Server initialization failed. 2023-03-21 13:04:54.935 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:04:54.935 [info] [Info - 1:04:54 PM] Connection to server got closed. Server will restart. 2023-03-21 13:04:54.935 [info] true 2023-03-21 13:04:54.935 [info] [Error - 1:04:54 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:04:54.935 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:04:55.254 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 39, in import lsprotocol.types as lsp File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/lsprotocol/types.py", line 14, in import attrs File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/attrs/__init__.py", line 3, in from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/matb/opt/anaconda3/lib/python3.9/site-packages/attr/__init__.py) 2023-03-21 13:04:55.255 [info] [Error - 1:04:55 PM] Server initialization failed. 2023-03-21 13:04:55.255 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:04:55.255 [info] [Info - 1:04:55 PM] Connection to server got closed. Server will restart. 2023-03-21 13:04:55.255 [info] true 2023-03-21 13:04:55.255 [info] [Error - 1:04:55 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:04:55.255 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:04:55.255 [error] Server: Start failed: Error: Pending response rejected since connection got disposed 2023-03-21 13:04:55.396 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 39, in 2023-03-21 13:04:55.396 [info] import lsprotocol.types as lsp File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/lsprotocol/types.py", line 14, in import attrs File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/attrs/__init__.py", line 3, in 2023-03-21 13:04:55.397 [info] from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/matb/opt/anaconda3/lib/python3.9/site-packages/attr/__init__.py) 2023-03-21 13:04:55.413 [info] [Error - 1:04:55 PM] Server initialization failed. 2023-03-21 13:04:55.413 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:04:55.413 [info] [Info - 1:04:55 PM] Connection to server got closed. Server will restart. 2023-03-21 13:04:55.413 [info] true 2023-03-21 13:04:55.413 [info] [Error - 1:04:55 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:04:55.413 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:04:55.414 [info] [Error - 1:04:55 PM] Restarting server failed 2023-03-21 13:04:55.414 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:04:55.591 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 39, in import lsprotocol.types as lsp File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/lsprotocol/types.py", line 14, in 2023-03-21 13:04:55.591 [info] import attrs File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/attrs/__init__.py", line 3, in 2023-03-21 13:04:55.592 [info] from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/matb/opt/anaconda3/lib/python3.9/site-packages/attr/__init__.py) 2023-03-21 13:04:55.613 [info] [Error - 1:04:55 PM] Server initialization failed. 2023-03-21 13:04:55.613 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:04:55.613 [info] [Info - 1:04:55 PM] Connection to server got closed. Server will restart. 2023-03-21 13:04:55.614 [info] true 2023-03-21 13:04:55.614 [info] [Error - 1:04:55 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:04:55.614 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:04:55.614 [info] [Error - 1:04:55 PM] Restarting server failed 2023-03-21 13:04:55.614 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:04:55.786 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 39, in 2023-03-21 13:04:55.786 [info] import lsprotocol.types as lsp File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/lsprotocol/types.py", line 14, in import attrs File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/attrs/__init__.py", line 3, in 2023-03-21 13:04:55.787 [info] from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/matb/opt/anaconda3/lib/python3.9/site-packages/attr/__init__.py) 2023-03-21 13:04:55.804 [info] [Error - 1:04:55 PM] Server initialization failed. 2023-03-21 13:04:55.804 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:04:55.804 [info] [Error - 1:04:55 PM] The Mypy server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information. 2023-03-21 13:04:55.804 [info] [Error - 1:04:55 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:04:55.804 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:04:55.805 [info] [Error - 1:04:55 PM] Restarting server failed 2023-03-21 13:04:55.805 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:05:05.125 [info] Server run command: /Users/matb/opt/anaconda3/bin/python /Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py 2023-03-21 13:05:05.125 [info] Server: Start requested. 2023-03-21 13:05:05.345 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 39, in import lsprotocol.types as lsp File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/lsprotocol/types.py", line 14, in import attrs File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/attrs/__init__.py", line 3, in from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/matb/opt/anaconda3/lib/python3.9/site-packages/attr/__init__.py) 2023-03-21 13:05:05.368 [info] [Error - 1:05:05 PM] Server initialization failed. 2023-03-21 13:05:05.368 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:05:05.368 [info] [Info - 1:05:05 PM] Connection to server got closed. Server will restart. 2023-03-21 13:05:05.369 [info] true 2023-03-21 13:05:05.369 [info] [Error - 1:05:05 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:05:05.369 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:05:07.097 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 39, in import lsprotocol.types as lsp File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/lsprotocol/types.py", line 14, in import attrs File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/attrs/__init__.py", line 3, in from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/matb/opt/anaconda3/lib/python3.9/site-packages/attr/__init__.py) 2023-03-21 13:05:07.102 [info] [Error - 1:05:07 PM] Server initialization failed. 2023-03-21 13:05:07.102 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:05:07.102 [info] [Info - 1:05:07 PM] Connection to server got closed. Server will restart. 2023-03-21 13:05:07.102 [info] true 2023-03-21 13:05:07.103 [info] [Error - 1:05:07 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:05:07.103 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:05:07.103 [error] Server: Start failed: Error: Pending response rejected since connection got disposed 2023-03-21 13:05:07.475 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 39, in import lsprotocol.types as lsp File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/lsprotocol/types.py", line 14, in import attrs File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/attrs/__init__.py", line 3, in from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/matb/opt/anaconda3/lib/python3.9/site-packages/attr/__init__.py) 2023-03-21 13:05:07.501 [info] [Error - 1:05:07 PM] Server initialization failed. 2023-03-21 13:05:07.501 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:05:07.501 [info] [Info - 1:05:07 PM] Connection to server got closed. Server will restart. 2023-03-21 13:05:07.501 [info] true 2023-03-21 13:05:07.502 [info] [Error - 1:05:07 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:05:07.502 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:05:07.502 [info] [Error - 1:05:07 PM] Restarting server failed 2023-03-21 13:05:07.502 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:05:07.779 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 39, in import lsprotocol.types as lsp File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/lsprotocol/types.py", line 14, in import attrs File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/attrs/__init__.py", line 3, in from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/matb/opt/anaconda3/lib/python3.9/site-packages/attr/__init__.py) 2023-03-21 13:05:07.790 [info] [Error - 1:05:07 PM] Server initialization failed. 2023-03-21 13:05:07.790 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:05:07.790 [info] [Info - 1:05:07 PM] Connection to server got closed. Server will restart. 2023-03-21 13:05:07.790 [info] true 2023-03-21 13:05:07.790 [info] [Error - 1:05:07 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:05:07.790 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:05:07.790 [info] [Error - 1:05:07 PM] Restarting server failed 2023-03-21 13:05:07.790 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:05:08.157 [info] Traceback (most recent call last): File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/tool/lsp_server.py", line 39, in import lsprotocol.types as lsp File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/lsprotocol/types.py", line 14, in import attrs File "/Users/matb/.vscode-insiders/extensions/ms-python.mypy-2023.1.4473713448-dev/bundled/libs/attrs/__init__.py", line 3, in from attr import ( ImportError: cannot import name 'AttrsInstance' from 'attr' (/Users/matb/opt/anaconda3/lib/python3.9/site-packages/attr/__init__.py) 2023-03-21 13:05:08.259 [info] [Error - 1:05:08 PM] Server initialization failed. 2023-03-21 13:05:08.259 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:05:08.259 [info] [Error - 1:05:08 PM] The Mypy server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information. 2023-03-21 13:05:08.259 [info] [Error - 1:05:08 PM] Mypy client: couldn't create connection to server. 2023-03-21 13:05:08.260 [info] Message: Pending response rejected since connection got disposed Code: -32097 2023-03-21 13:05:08.260 [info] [Error - 1:05:08 PM] Restarting server failed 2023-03-21 13:05:08.260 [info] Message: Pending response rejected since connection got disposed Code: -32097 ```
karthiknadig commented 1 year ago

This seems to be because the import strategy is by default fromEnvironment. It should have been useBundled. The version of attrs in conda was outdated and broke the server.

karthiknadig commented 1 year ago

Verification steps:

  1. Ensure you have conda python environment, and have a python file open.
  2. Install mypy-type-checker extension pre-release: https://marketplace.visualstudio.com/items?itemName=ms-python.mypy-type-checker
  3. Look at the logs Output > Mypy Type ckecker , and see if errors like above reported.