interactive icon indicating copy to clipboard operation
interactive copied to clipboard

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

Open cthlo opened this issue 1 year ago • 7 comments

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
  • OS
    • [x] Windows 11
    • [ ] Windows 10
    • [ ] macOS
    • [ ] Linux (Please specify distro)
    • [ ] iOS
    • [ ] Android
  • Browser
    • [ ] Chrome
    • [ ] Edge
    • [ ] Firefox
    • [ ] Safari
  • Frontend
    • [ ] Jupyter Notebook
    • [ ] Jupyter Lab
    • [ ] nteract
    • [x] Visual Studio Code
    • [ ] Visual Studio Code Insiders
    • [ ] Visual Studio
    • [ ] Other (please specify)

Screenshots

If applicable, add screenshots to help explain your problem.

cthlo avatar Feb 13 '24 17:02 cthlo

I exactly have the same problem.

suugbut avatar Feb 19 '24 21:02 suugbut

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.

rlmhermans avatar Mar 07 '24 09:03 rlmhermans

up.

GF-Huang avatar Apr 29 '24 10:04 GF-Huang

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

InCerryGit avatar May 13 '24 06:05 InCerryGit