Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Failed to find share dir for dist 'Dancer2'

by 1nickt (Canon)
on Feb 19, 2018 at 13:18 UTC ( [id://1209474]=note: print w/replies, xml ) Need Help??


in reply to Failed to find share dir for dist 'Dancer2'

Hi, it sounds like you are trying to set up Dancer2 as a user, i.e. "to setup a test dancer2 project", not like you are planning to contribute to the source. In that case, why clone the project rather than simply install the module from CPAN (which will get all libraries installed in the right place on your system, etc.)? I think you are making it more difficult for yourself than is necessary.


The way forward always starts with a minimal test.
  • Comment on Re: Failed to find share dir for dist 'Dancer2'

Replies are listed 'Best First'.
Re^2: Failed to find share dir for dist 'Dancer2'
by markong (Pilgrim) on Feb 19, 2018 at 15:13 UTC
    Hi!

    Actually no, the contrary: I've experienced what could be a bug, and I'm trying to reproduce it: I'd like to test some patch on the code-base and also test the "use case project" over different Dancer2 branches. So I'm now trying to build up the "test bug project" using the sources: this of course to stay as much isolated when developing the patches.

    I don't know, but I guess that I could I've spotted yet another bug here, because I don't see how to "trick" File::ShareDir to pickup the current dir (git checkout) share dir.Also I'm already using the -Ilib switch as per documentation :/ ...

      I'm using https://metacpan.org/release/File-Share for this. It takes care of the case when you are in a source directory. (It only works for dist_dir/dist_file, not module_dir/module_file.)
      Maybe Dancer2 could switch to File::Share.

        Whoa!It is working :)! Thank you very much!

        I'm quite surprised nobody has reported this yet: maybe all the devs have already a Dancer2 distro installed in their path :O ?

        The only thing I could still notice is that (even in templates) this function keeps returning '0.000000_000' which is probably un-related to the File::ShareDir issue though !?

      My apologies, then!

      I'd never experienced this flaw, so I made a new perlbrew lib and installed the dependencies after cloning the repo as documented on the page you showed, then ran the script as shown.

      I confirm the error and agree with your theory that the devs must have never seen it because they likely have a D2 installation in their normal Perl lib tree, or did when they last ran that script.


      The way forward always starts with a minimal test.

        No need to apologize, thank you for you comment.

        I confirm the error and agree with your theory that the devs must have never seen it because they likely have a D2 installation in their normal Perl lib tree, or did when they last ran that script.

        Which in either case is somewhat scary (the latter for sure) :P

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1209474]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-25 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found