-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cell content removed on syntax errors with ruffformat
#356
Comments
Not sure if it's the same issue, or related, but
gets deleted |
Just to chime in also seeing this issue
|
It seems like the code checks whether the command line formatter wrote to stderr to determine if it cannot handle the input: jupyterlab_code_formatter/jupyterlab_code_formatter/formatters.py Lines 452 to 458 in 9f5bec9
But in case of |
Same to me. When I used @jbwhit's solution there was the same error, that cells containing non-ascii characters were not formatted. For me adding |
An exception is required in order to pop up the Jupyterlab Code Formatter Error dialog. Black raises
I think a proper solution would be to subclass |
First of all, thanks a ton for fixing support for Ruff since v3.0.0! 🎉
Bug description
It seems that
jupyterlab-code-formatter
withruff
deletes all content in cells that contain syntax errors.Reproduce
Running Jupyter Lab in a
venv
in Python 3.12 with these dependenciesand using these minimal settings
Context
The text was updated successfully, but these errors were encountered: