Menu

#596 Prerequisitie project not working

workingwiki
open
nobody
None
5
2014-09-10
2014-09-02
No

Discussion

  • Anonymous

    Anonymous - 2014-09-02

    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.

     
  • Anonymous

    Anonymous - 2014-09-02

    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?

     
    • Lee Worden

      Lee Worden - 2014-09-02

      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

       
  • Andrei Akhmetzhanov

    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

     
    • Lee Worden

      Lee Worden - 2014-09-02

      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.

       
  • Andrei Akhmetzhanov

    [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
  • Jonathan Dushoff

    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.

     
    • Anonymous

      Anonymous - 2014-09-02

      On 09/02/2014 02:12 PM, Jonathan Dushoff wrote:

      Lee: It's not obvious my interpretation of a wrong GNUmakefile was correct.

      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?

       
      • Andrei Akhmetzhanov

        it should be "PREREQUISITE_PROJECTS = ", if there is no prer. projects declared

        (see the attachment)

         

        Last edit: Andrei Akhmetzhanov 2014-09-02
  • Jonathan Dushoff

    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.

     
    • Lee Worden

      Lee Worden - 2014-09-02

      export = <correct location=""></correct>

      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.

       
  • Anonymous

    Anonymous - 2014-09-02

    No, I did not see what that says, and I claim that I didn't write it.

    I wrote:

    export = <correct location>
    

    By which I meant

    export = ../data_tables/
    

    Not sure about the spacing. Nor yet the final slash.

     
    • Lee Worden

      Lee Worden - 2014-09-03

      On 09/02/2014 04:30 PM, noreply@in.sf.net wrote:

      No, I did not see what that says, and I claim that I didn't write it.

      I wrote:

      export = <correct location="">

      By which I meant

      export = ../data_tables/

      Not sure about the spacing. Nor yet the final slash.

      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.

       
  • Jonathan Dushoff

    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.

     
    • Lee Worden

      Lee Worden - 2014-09-10

      Can you leave it as is for a minute so I can poke at it?

       
  • Jonathan Dushoff

    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?

     
    • Lee Worden

      Lee Worden - 2014-09-10

      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.

       
      • Andrei Akhmetzhanov

        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

         
  • Jonathan Dushoff

    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).

     
  • Jonathan Dushoff

    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.

     
  • Jonathan Dushoff

    OK. Back to trying to work.

     
  • Jonathan Dushoff

    Sorry I missed your responses to this; it's weird that sourceforge always shows the first page instead of the last by default.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.