We are going to edit cursors settings to point to the microsoft extensions marketplace.
- Remove all extensions and exit Cursor.
- Locate your Cursor
project.json
file depending on your platform and open it.- On MacOS:
/Applications/Cursor.app/Contents/Resources/app/product.json
- On Windows:
C:\Users\<user_name>\AppData\Local\Programs\cursor\resources\app\product.json
- On Linux:
/usr/lib/code/product.json
- On MacOS:
- Locate the object value for key
extensionsGallery
in the json document.
{
"galleryId": "cursor",
"serviceUrl": "https://marketplace.cursorapi.com/_apis/public/gallery",
"itemUrl": "https://marketplace.cursorapi.com/items",
"resourceUrlTemplate": "https://marketplace.cursorapi.com/{publisher}/{name}/{version}/{path}",
"controlUrl": "",
"recommendationsUrl": "",
"nlsBaseUrl": "",
"publisherUrl": ""
}
- Edit it to look like this:
{
"galleryId": "cursor",
"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
"itemUrl": "https://marketplace.visualstudio.com/items",
"resourceUrlTemplate": "https://{publisher}.vscode-unpkg.net/{publisher}/{name}/{version}/{path}",
"controlUrl": "",
"recommendationsUrl": "",
"nlsBaseUrl": "",
"publisherUrl": ""
}
- Reopen Cursor.app and install the following extensions:
ms-python.python
ms-python.vscode-pylance
ms-python.debugpy
- Make sure in your settings that
python.languageServer
is set to "Pylance"
Enjoy!
PS: you may need to goto your settings.json to remove any theme settings, because having a broken theme looks exactly like this same problem. In my case cursor had copied over my settings from vscode and they pointed to a theme that wasn't yet installed in cursor, removing and then setting the theme manually worked when I though for sure I had broken it again.
I’ve seen quite a few macOS-related questions about Gatekeeper and System Integrity Protection (SIP) in this thread (“Cursor.app is damaged and can’t be opened. You should move it to the Trash.”).
Below are some helpful commands:
Check the code signatures on Cursor.app
codesign -v -v --deep --strict /Applications/Cursor.app
Re-sign Cursor.app
codesign --force --deep --sign - /Applications/Cursor.app
Check for the quarantine extended attribute
xattr -p com.apple.quarantine /Applications/Cursor.app/Contents
Any output other than
No such xattr: com.apple.quarantine
indicates that the application is quarantined.Remove the quarantine extended attribute
xattr -r -d com.apple.quarantine /Applications/Cursor.app
Also, note that right-clicking (or control-clicking) on an application in Finder and selecting “Open” is not the same as double-clicking it.
Using “Open” from the context menu lets you bypass Gatekeeper’s initial refusal, typically offering a button to force the application to open.
Often, apps that were prevented from opening will also appear in
System Settings
→Privacy & Security
→Security
section with a button “Open Anyway”.