ty icon indicating copy to clipboard operation
ty copied to clipboard

ty not working with Marimo's VSCode extension

Open hierr opened this issue 2 months ago • 2 comments

Summary

Ty doesn't seem to be working with Marimo's VSCode extension. May be related in some way with this ruff issue

Version

ty 0.0.4

hierr avatar Dec 19 '25 05:12 hierr

Thank you. With not working, I assume you mean ty doesn't provide any LSP features within a notebook?

Yes, I think this is the expected result of their "mitigation" mentioned here https://github.com/astral-sh/ruff-vscode/issues/893#issuecomment-3573658501

But they also mention

and it effectively disables Ruff (and other Python extensions for our notebooks). We already have a custom LSP with ty for type-checking (and autocomplete) with our out-of-order cells, and I'm working on a PR to have a managed version of Ruff similarly running inside our extension for our notebooks (https://github.com/marimo-team/marimo-lsp/pull/262).

which would suggest that ty should work? CC: @manzt

MichaReiser avatar Dec 19 '25 07:12 MichaReiser

Yes, sorry for the vagueness. Out of the box the LSP features were not being provided when editing the Marimo notebook using the extension. Enabling the config marimo.disableManagedLanguageFeatures for suppressing the managed language features makes them show up, but throwing errors, giving the wrong contextual information and "go to definition"turning off the notebook inteface of the extension. Type checking seems to work.

Image Image Image

hierr avatar Dec 19 '25 19:12 hierr