Prerequisitie project not working
Status: Beta
Brought to you by:
worden
Please see http://lalashan.mcmaster.ca/theobio/circumcision/index.php/Special:ManageProject?project=DHS_example, which has a prereq, and http://lalashan.mcmaster.ca/theobio/circumcision/index.php?title=Special:GetProjectFile&project=DHS_example&make=false&filename=GNUmakefile, which has a blank list of prereqs and a blank variable name associated with the location of the prereq directory.
Anonymous
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I'm obviously confused about this. I was getting an empty prereq name from test rules before, but now I'm not! I'm going to keep working on it and see what I can figure out.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
One mystery less: the same exact code that was not working, now is. Maybe Lee fixed something behind my back? Maybe saving the page once eliminated some kink?
I'm seeing your posts, but haven't touched anything yet. -lw
I don't know whether it was a reason why everything's started to work. Just a guess..
There was no source or project files on DHS_tools WW-page, except the only GNUMakefile. So, the working dir was not actually created at the very beginning. What I did is that I listed the working dir of DHS_tools, so that the all necessary links were finally generated
I wish I'd seen it before it fixed itself. Yes, the working directory
may not be created until a target is made. But that shouldn't affect
the contents of GNUmakefile - it's made from the project description,
not from the working directory contents.
Also, it offered a (wrong) value for a prerequisite's variable, but
didn't list the prerequisite in $(PREREQUISITE_PROJECTS)? That
shouldn't happen regardless of the value of the variable.
[off] Jonathan, can you very briefly explain the meaning of "SUPPRESS_EMPTY_ROUT_RULE=1"?
Thank you in advance
Last edit: Andrei Akhmetzhanov 2014-09-02
Lee: It's not obvious my interpretation of a wrong GNUmakefile was correct.
Andrei: suppress means that the wiki never tries to make an .Rout file from the most generic version of the rule. This leads to more robust chaining, and better error messages. You can figure out more by looking at the site makefile. But I always add it the first time I have any confusion with a complicated R project.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
On 09/02/2014 02:12 PM, Jonathan Dushoff wrote:
Cna you clarify? It looks like you saw the contents of GNUmakefile, and
it had
PREREQUISITE_PROJECTS =
and
export PROJECT_DIR_DHS_table_data =
is this true?
it should be "PREREQUISITE_PROJECTS = ", if there is no prer. projects declared
(see the attachment)
Last edit: Andrei Akhmetzhanov 2014-09-02
Lee:
I saw
PREREQUISITE_PROJECTS =
and
export = <correct location="">
The latter was inside an if statement.
Don't know why I chickened out on my conclusion that that had to be wrong.
You saw that verbatim, including angle brackets?
If there's an empty string between "export" and "=", that's a
potentially useful clue to the bug.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
No, I did not see what that says, and I claim that I didn't write it.
I wrote:
By which I meant
Not sure about the spacing. Nor yet the final slash.
On 09/02/2014 04:30 PM, noreply@in.sf.net wrote:
OK, it looks like the interesting part is the blank between "export" and
"=", which suggests that WW thinks the variable name is "", and is in
fact probably including it in the value assigned to
PREREQUISITE_PROJECTS, which is the empty string either way. Very
helpful, thanks.
Any progress on this? Just sunk a long time into something that now looks like the same thing.
Just created a simple project at http://lalashan.mcmaster.ca/theobio/oncolytic/index.php/Simons_joint_grant/References. Added Refs as a prerequisite, but it's not reflected in the GNUmakefile.
Can you leave it as is for a minute so I can poke at it?
Well, that just seems to be how things are, I guess. I tried some examples at http://lalashan.mcmaster.ca/theobio/projects/index.php/Prerequisites,
Also couldn't help noticing as I tried, that there are:
No automatic variable names generated when you enter the URI anymore
No make link when file is not found anymore
Would this be likely to be better if we switched everything to the "new" system?
I'm sure it's a bug I introduced when I changed the prerequisites
interface on ManageProject. It looks like the variable name isn't being
saved into the project description. But it does save it when I click
and unclick "Do not copy" and then hit "update". So that may be a
workaround until I squish the bug.
Just to confirm (altho my observations couldn't be very recent): I usually do "Do not copy" and then "update" and it works fine for me
No, the same problems occur on the new wikis, apparently: http://lalashan.mcmaster.ca/theobio/math/index.php/Prerequisites.
So basically I can't work; wonder if anybody can work on linked projects (or why nobody has noticed).
Manually changing the name of the directory variable, and then making something, seems to work (tried with one of the directories in the math example). I'm going to go try to fix the oncolytic example now, leaving math half-broken and projects broken for examination purposes.
OK. Back to trying to work.
Sorry I missed your responses to this; it's weird that sourceforge always shows the first page instead of the last by default.