I have received a report that .mk files that have been removed from a project sometimes reappear in the working directory, causing frustration and confusion, because that can make the project's behaviour really hard to diagnose.
The remove-source-file operation should always remove from the working directory, regardless of whether it removes from the project and/or wiki pages as well. Maybe it's working right, but subsequently the file reappears because it's present in a preview or background session that gets merged into the directory?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The ghost Makefile problem. Somebody somehow deletes a .mk file from the
PD, but it remains in the working directory. These have caused major
nightmares on at least 3 occasions. The kind of thing that could make
someone give up on WW, IMO.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't know how long ago it last happened, nor how WW was working at that time. And we do have the feature that it tells people what files it's including.
But I still suggest giving make access to a variable that lists the source files, and constructing a list of included make files from that.
It's very hard to keep track of all the ways a file could show up in a project directory: examples include ephemeral errors in a make file, or unpacking of zip files.
People who are constructing make files can be expected to be aware that they are doing something complicated and to be willing to specify that constructed make files be included.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It should not be possible to repopulate a file from a preview session, by the way, because the preview files don't get merged back in if anything has been done in the persistent directory since the preview directory was created.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What's the desired behaviour if I remove a source file during preview operations? I think it should be to remove it from the project and the main project directory after I save.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Regarding basepars.pl: it's great news if we have a live case that can lead us to the source of this weird behavior.
I don't know what to try to make it appear after being removed. It would be great if you (or whoever is doing the work in this project) could do some tests to gather information on this file:
save or close any existing preview sessions.
remove it from the main project directory.
open a "list directory contents" page for the main directory, and for any preview session you open
after each operation, refresh the directory listing and see if the file has appeared.
if it does appear, tell me what you did, and especially what was the last operation.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The remove-source-file operation should always remove from the working directory, regardless of whether it removes from the project and/or wiki pages as well. Maybe it's working right, but subsequently the file reappears because it's present in a preview or background session that gets merged into the directory?
The original report is at http://sourceforge.net/tracker/?func=detail&aid=3473112&group_id=366300&atid=1527385:
I don't know how long ago it last happened, nor how WW was working at that time. And we do have the feature that it tells people what files it's including.
But I still suggest giving make access to a variable that lists the source files, and constructing a list of included make files from that.
It's very hard to keep track of all the ways a file could show up in a project directory: examples include ephemeral errors in a make file, or unpacking of zip files.
People who are constructing make files can be expected to be aware that they are doing something complicated and to be willing to specify that constructed make files be included.
It should not be possible to repopulate a file from a preview session, by the way, because the preview files don't get merged back in if anything has been done in the persistent directory since the preview directory was created.
https://sourceforge.net/p/workingwiki/bugs/211/ (rewrite .mk inclusion rule to use $(WW_THIS_PROJECT_SOURCE_FILES)) might help with this.
Ghost files still occur. A live one right now is http://lalashan.mcmaster.ca/theobio/circumcision/index.php/Special:GetProjectFile?project=Kenya_women_IPV&make=false&filename=basepars.pl. It has never been a target, and is not currently a source.
Last edit: Lee Worden 2013-04-03
What's the desired behaviour if I remove a source file during preview operations? I think it should be to remove it from the project and the main project directory after I save.
Shifting this question to new ticket [#280]
Related
Bugs: #280
Regarding basepars.pl: it's great news if we have a live case that can lead us to the source of this weird behavior.
I don't know what to try to make it appear after being removed. It would be great if you (or whoever is doing the work in this project) could do some tests to gather information on this file: