Skip to content

Magic Racket is not recognized as a racket formatter in Jupyter Notebooks #120

@Maelcom

Description

@Maelcom

Environment

  • OS: Ubuntu
  • OS Version 22.04
  • VS Code Version 1.81.0
  • Racket version 8.6
  • Racket Langserver checksum 1325a43ff1962a66ce0e26901fa8c0e47fe708f7
  • Magic Racket version 0.6.6
  • IRacket kernel checksum 9af0e87d61565a9ecb41119c481e7e36c0c5287d

Steps to reproduce

  1. Set "Magic Racket" as default formatter for Racket
  2. Open .ipynb file
  3. Create a code cell with cell language set to "Racket"
  4. Try to format with the "Format Cell" command

Expected

Magic Racket formats the cell.

Actual

VS Code error message:
Extension 'Magic Racket' is configured as formatter but it cannot format 'Racket'-files

Additional context

  1. "Format Document With..." command inside .ipynb files reveals that Magic Racket is NOT present in the list of possible formatters.
    Same command inside .rkt files correctly displays Magic Racket.

  2. Same scenario with racket-fmt works correctly out of the box, so probably not complicated.

  3. Recording:

magic_racket_formatter_not_recognized_in_jupyter_notebooks.mp4

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions