dotnet / interactive

.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
MIT License
2.88k stars 382 forks source link

Unable to format code cell (no formatter for 'polyglot-notebook' files) #3449

Open cthlo opened 7 months ago

cthlo commented 7 months ago

Describe the bug

When trigger "Format document" (alt+shift+f), VS Code prompts

There is no formatter for 'polyglot-notebook' files installed."

image

Same result with both .ipynb and .dib.

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):

Version: 1.0.510102+2c9feb8daff54c194b638d355d18b5428480a786
Library version: 1.0.0-beta.24101.2+2c9feb8daff54c194b638d355d18b5428480a786
Build date: 2024-02-13T16:52:04.4164793Z

Screenshots

If applicable, add screenshots to help explain your problem.

suugbut commented 7 months ago

I exactly have the same problem.

rlmhermans commented 7 months ago

Same problem for me. When working in an F# project, Ionide formats my code. When in Polyglot, I get the same message. For Python in Jupyter notebooks, the Black Formatter works.

GF-Huang commented 5 months ago

up.

InCerryGit commented 4 months ago

i have same problem.

image

Version: 1.0.522904+cdfa48b2ea1a27dfe0f545c42a34fd3ec7119074

Library version: 1.0.0-beta.24229.4+cdfa48b2ea1a27dfe0f545c42a34fd3ec7119074

Build date: 2024-05-07T02:45:57.5641864Z

https://github.com/dotnet/interactive