Pycharm Professional Edition 2022.2 View TODO filtering stopped working
It used to work in previous versions. With the upgrade all the patterns from the filter definitions were lost and needed to be added again by selecting the pattern. None of the filters work - selecting any of the filters provides an empty list of todos.
There are quite a few TODOs in my current project code.
I inv audited the caches - does not seem to help after half an hour.
https://www.jetbrains.com/help/pycharm/using-todo.html
Running this on Mac 14" Powerbook M1
请先登录再写评论。
Hi, I tried creating a new pattern and a new filter in 2022.2, works correctly for me.
Could you please check if the issue is reproduced in a new empty project with a new pattern/filter definition?
Trying with new project does not help much as I have the issue with existing bigger project upgrade… I believe it works with new ones
Ok, if the issue is project-specific, please try removing/renaming the `.idea` directory from the project root while PyCharm is closed and reopen the project. This will generate a new project config. Does the issue still reproduce?
This fixed the issue. I had to reconfigure all the patterns for todo labels.
I would consider this an upgrade bug. One should not need to reconfigure project after upgrading - first time I recall this has happened to me on PyCharm or other Jetbrains products since the early 2000's that I have been using the product set.
Hmm. This bug occurred again - now after running 2022.2.1rc for awhile. Did not install new versions...
I have tried the following steps to reproduce the issue:
1. Installed PyCharm 2022.1.4 on a clean Ubuntu system
2. Created a filter for the todo comments and made sure it's working
3. Updated PyCharm to the latest 2022.2.1, restarted.
Todo filters still work. So, unfortunately, couldn't reproduce.
Ways to troubleshoot:
The filters are stored in the options/editor.xml file that is located in the configuration directory.
In the following XML component:
When the issue is reproduced, you can check what's actually in the config there. Is this component missing?
I have encountered the same problem. I solved it by changing " to " in .idea/workspace.xml