vscode-marimo icon indicating copy to clipboard operation
vscode-marimo copied to clipboard

Works with VS Code, doesn't work with Cursor

Open astr0gator opened this issue 1 year ago • 6 comments

Any hints how to make it work with Cursor? Yes, it's a fork and every single extension works for me so far. As for the error, looks like server fails to to start. When I add a cell I get this error:

Failed to save 'sandbox.py': Cannot read properties of undefined (reading 'key') The file with app = marimo.App() is successfully created though.

And a short double check. Is my understanding correct that with VS Code we can only operate in edit/command mode? When I run marimo notebook I can only add/edit cells in py file with a standard jupyter approach, but can't use right pane for adding/editing, only for viewing.

Thanks

astr0gator avatar Nov 09 '24 02:11 astr0gator

Any hints how to make it work with Cursor?

Are you seeing errors in cursor? Since they have forked vscode, I am not sure if they have broken any extension APIs or can use the same extensions.

And a short double check. Is my understanding correct that with VS Code we can only operate in edit/command mode?

You can run notebooks in Edit or App mode.

mscolnick avatar Nov 09 '24 02:11 mscolnick

Updated for clarity. Thanks

astr0gator avatar Nov 09 '24 03:11 astr0gator

@astr0gator are you still experiencing issues with marimo in Cursor?

mscolnick avatar Nov 18 '24 18:11 mscolnick

Not sure if it might be the same issue but I was able to make it work by updating the marimo.pythonPath to uv run python.

davidgasquez avatar Dec 25 '24 19:12 davidgasquez

+1, same for me...

petrovs12 avatar Mar 29 '25 20:03 petrovs12

@mscolnick I can't run marimo in VSCode either:

2025-04-15 09:04:08.873 [info] Checking server... 2025-04-15 09:04:08.873 [info] [server-manager]: Starting server... 2025-04-15 09:04:08.894 [info] [server-manager]: Using interpreter ${workspaceFolder}/.venv/bin/python 2025-04-15 09:04:10.898 [info] [server-manager]: Server started at port 2818 2025-04-15 09:04:11.924 [info] Using interpreter: ${workspaceFolder}/.venv/bin/python 2025-04-15 09:04:11.924 [error] Error checking marimo installation: {"status":127,"signal":null,"output":[null,{"type":"Buffer","data":[]},{"type":"Buffer","data":[47,98,105,110,47,115,104,58,32,47,46,118,101,110,118,47,98,105,110,47,112,121,116,104,111,110,58,32,78,111,32,115,117,99,104,32,102,105,108,101,32,111,114,32,100,105,114,101,99,116,111,114,121,10]}],"pid":69068,"stdout":{"type":"Buffer","data":[]},"stderr":{"type":"Buffer","data":[47,98,105,110,47,115,104,58,32,47,46,118,101,110,118,47,98,105,110,47,112,121,116,104,111,110,58,32,78,111,32,115,117,99,104,32,102,105,108,101,32,111,114,32,100,105,114,101,99,116,111,114,121,10]}} 2025-04-15 09:04:41.945 [error] Could not fetch http://localhost:2818/. Is http://localhost:2818/ healthy? 2025-04-15 09:04:41.945 [error] [server-manager] Unexpected error starting server {"error":{}} 2025-04-15 09:04:41.945 [error] [server-manager] Unexpected error starting server {"error":{},"state":"started"}

pip install marimo && marimo tutorial intro from the same VSCode shell and same .venv works great though

astr0gator avatar Apr 15 '25 01:04 astr0gator

Hi, we've launched a new VSCode extension at https://github.com/marimo-team/marimo-lsp (readme). It may mean this issue is resolved or no longer applicable. If the issue still exists, please file the issue on over on the new Issues page.

mscolnick avatar Nov 05 '25 18:11 mscolnick