Search code examples
pythoneclipsesvntagstodo

TODO tags aren't found in Eclipse with PyDev


I'm using Eclipse with PyDev on OpenSUSE 12.1. I've got projects in Javascript and Python. By right click I can add a TODO, but since I'm working with other developers I'd like to have them as code comments so that they get synchronized with the rest of the code by SVN.

I looked at this thread: todo tags not working on eclipse and pydev, but it sadly it didn't help. Here's a short summary of my setup:

  • I'm running Eclipse 64 bit, but that shouldn't be a problem
  • The preferences under PyDev --> Task Tags are configured correctly, they're set to find "TODO:"
  • In Preferences --> General --> Editors --> Structured Text Editors --> Task Tags, searching for task tags is enabled and set to search for TODO
  • In Project --> Properties --> PyDev - PYTHONPATH my source folders are listed under source folders.

The one thing that I think might be leading to it is that in Preferences --> General --> Editors --> Structured Text Editors --> Task Tags, the filters are set to only search for CSS, DTD, HTML, JSP and XML. But there's no option to have Eclipse also search PYs. Could that be causing the problem? Thanks!


Solution

  • Maybe your file is under a source folder but is still not considered a Python module (i.e.: has some strange name with a separator or something... or maybe it's not in a folder with __init__.py files).

    It'd be interesting to know a bit more on the structure you're using... a screenshot with your editor and the path in the pydev package explorer would be nice to help in diagnosing your problem.