Micha Reiser

Results 768 comments of Micha Reiser

@tomhamiltonstubber thanks for the update. That's terrifying but glad that it is related to caching. You can try to remove the `.ruff-cache` directory and use `--no-cache` in the file watcher...

@tomhamiltonstubber we've released a new version that includes the fix. Does this resolve the problem for you?

I'm closing this. @tomhamiltonstubber feel free to re-open/comment if you're still experiencing the issue when using the latest ruff release.

Removing the `-no-cache` in the latest version should be okay if the caching was the root cause. But whether caching is enabled or not probably doesn't matter in your use...

@senadev42 nice. I think the original OP doesn't mind if the feature gets implemented by someone else. I assign the issue to you. Let me know if you need any...

@senadev42 is there something I can help you with or would you prefer if someone else takes a look at it?

@senadev42 it's not urgent. I just wanted to make sure you've all you need :)

Closed by https://github.com/astral-sh/ruff/pull/10110

I'm returning this to "needs-decision" after we've discussed this more internally. From my notes: - It’s unclear to me why we should have multiple rules to track unused variables. I...

Using the `Locator` in the `Generator` is clever to avoid tracking additional data in the AST. However, it won't work for AST nodes with no corresponding element in the source...