#590 Tasks - Aren't displayed in files that include "-"

1.3.9
closed-invalid
nobody
5
2007-10-27
2007-10-17
darking
No

I don't know if this is supposed to be a standard in python or if is indeed a problem. Files that have "-" on the name aren't "processed" and the Tasks aren't interpreted.

Steps to reproduce:

1- Create a new pydev project
2- Open the src folder and create a file named test-task.py
3- Add a couple of lines and the TODO field that should be interpreted by pydev.
4- Save the file.
5- At this point the Task should be visible on the Tasklist but it isn't.
6- Rename the file and replace "-" by "_".
7- Save again.
8- Voilá, the TODO is now on the Tasklist.

Discussion

  • Fabio Zadrozny

    Fabio Zadrozny - 2007-10-27
    • status: open --> closed-invalid
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2007-10-27

    Logged In: YES
    user_id=617340
    Originator: NO

    That's actually the way it is... Files that have '-' are not valid python modules:

    You can't do: import test-task (that would be a syntax error because it would think '-' is a minus)

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks