Hi,
it seems many users have had this problem, that the Pylance server doesn’t work in Cursor.
What do I do to fix this?
Best,
Marius
2024-08-28 18:18:19.182 [info] [Info - 18:18:19] (56459) Pylance language server 2024.8.1 (pyright version 1.1.373, commit ee424479) starting
2024-08-28 18:18:19.182 [info] [Info - 18:18:19] (56459) Server root directory: file:///Users/mc/.cursor/extensions/ms-python.vscode-pylance-2024.8.1/dist
2024-08-28 18:18:19.189 [info] [Error - 18:18:19] Server initialization failed.
2024-08-28 18:18:19.189 [info] Message: Request initialize failed with message: You may install and use any number of copies of the software only with Microsoft Visual Studio, Visual Studio for Mac, Visual Studio Code, Azure DevOps, Team Foundation Server, and successor Microsoft products and services (collectively, the “Visual Studio Products and Services”) to develop and test your applications. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. You may not: work around any technical limitations in the software that only allow you to use it in certain ways; reverse engineer, decompile or disassemble the software, or otherwise attempt to derive the source code for the software, except and to the extent required by third party licensing terms governing use of certain open source components that may be included in the software; remove, minimize, block, or modify any notices of Microsoft or its suppliers in the software; use the software in any way that is against the law or to create or propagate malware; or share, publish, distribute, or lease the software (except for any distributable code, subject to the terms above), provide the software as a stand-alone offering for others to use, or transfer the software or this agreement to any third party.Code: -32603
2024-08-28 18:18:19.189 [info] [Error - 18:18:19] Pylance client: couldn’t create connection to server.
2024-08-28 18:18:19.189 [info] Message: Request initialize failed with message: You may install and use any number of copies of the software only with Microsoft Visual Studio, Visual Studio for Mac, Visual Studio Code, Azure DevOps, Team Foundation Server, and successor Microsoft products and services (collectively, the “Visual Studio Products and Services”) to develop and test your applications. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. You may not: work around any technical limitations in the software that only allow you to use it in certain ways; reverse engineer, decompile or disassemble the software, or otherwise attempt to derive the source code for the software, except and to the extent required by third party licensing terms governing use of certain open source components that may be included in the software; remove, minimize, block, or modify any notices of Microsoft or its suppliers in the software; use the software in any way that is against the law or to create or propagate malware; or share, publish, distribute, or lease the software (except for any distributable code, subject to the terms above), provide the software as a stand-alone offering for others to use, or transfer the software or this agreement to any third party.Code: -32603