koxudaxi / ruff-pycharm-plugin

PyCharm plugin for ruff. This plugin provides reformat code using ruff.
MIT License
184 stars 7 forks source link

The caret moves after ruff format when save on file #330

Closed grundew closed 6 months ago

grundew commented 7 months ago

Describe the bug When ruff format is enabled and ruff is set to run on save, the whole file seems to be reloaded by pycharm and the caret ends up in a different place than before (further down in the document).

To Reproduce Steps to reproduce the behavior:

  1. Enable ruff format
  2. Enable run ruff when the python file is saved
  3. Make a change in a python file and save
  4. See the cursors jumps lower than in the document (the file should fill more than screen height)

Expected behavior The cursor should be at the same place before and after ruff has been run

Environments (please complete the following information):

koxudaxi commented 7 months ago

@grundew I'm sorry for my late reply. I think we meet the same issue We should fix it. Thank you!!

koxudaxi commented 6 months ago

@grundew I have released the fixed version 0.0.29 . Thank you very much!!

KotlinIsland commented 5 months ago

I am using 0.0.30 and still observing this defective behaviour, I'll raise a new issue