Giter VIP home page Giter VIP logo

guide's People

Contributors

blaircooper avatar jawira avatar kenguest avatar maximiliankresse avatar mrook avatar siad007 avatar tomegantcs avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

guide's Issues

Documentation refactoring

Hi, currently I find very hard to update documentation, more specifically Optional Tasks file source/appendixes/optionaltasks.xml is very large.

So what do you think about splitting this file in many files (one per task)?

I can take care of this if you agree. Thanks :)

Document that ParallelTask could be unstable when running from .phar

Describe the bug

Random errors when calling 3+ parallel tasks

Steps To Reproduce

create test.xml

<?xml version="1.0" ?>
<project name="parallel_test" basedir="." default="parallel_test">
    <target name="parallel_test">
        <parallel threadCount="3">
            <exec executable="php" passthru="true"><arg line="-v"/></exec>
            <exec executable="php" passthru="true"><arg line="-v"/></exec>
            <exec executable="php" passthru="true"><arg line="-v"/></exec>
        </parallel>
    </target>
</project>

run:

phing -f test.xml

Expected behavior
it should output php version info 3 times

Screenshots / terminal output

parallel_test > parallel_test:

[PHP Error] include(phar:///usr/local/bin/phing/vendor/composer/../../src/Phing/Task/System/Condition/OsCondition.php): Failed to open stream: phar error: internal corruption of phar "/usr/local/bin/phing" (crc32 mismatch on file "src/Phing/Task/System/Condition/OsCondition.php") [line 476 of phar:///usr/local/bin/phing/vendor/composer/ClassLoader.php]
[PHP Error] include(phar:///usr/local/bin/phing/vendor/composer/../../src/Phing/Type/CommandlineArgument.php): Failed to open stream: phar error: internal corruption of phar "/usr/local/bin/phing" (crc32 mismatch on file "src/Phing/Type/CommandlineArgument.php") [line 476 of phar:///usr/local/bin/phing/vendor/composer/ClassLoader.php]
[PHP Error] include(phar:///usr/local/bin/phing/vendor/composer/../../src/Phing/Type/Commandline.php): Failed to open stream: phar error: internal corruption of phar "/usr/local/bin/phing" (crc32 mismatch on file "src/Phing/Type/Commandline.php") [line 476 of phar:///usr/local/bin/phing/vendor/composer/ClassLoader.php]
[PHP Error] include(): Failed opening 'phar:///usr/local/bin/phing/vendor/composer/../../src/Phing/Task/System/Condition/OsCondition.php' for inclusion (include_path=':phar:///usr/local/bin/phing/vendor/pear/net_growl:phar:///usr/local/bin/phing/vendor/pear/versioncontrol_git:phar:///usr/local/bin/phing/vendor/pear/pear_exception:phar:///usr/local/bin/phing/vendor/pear/console_getopt:phar:///usr/local/bin/phing/vendor/pear/pear-core-minimal/src:phar:///usr/local/bin/phing/vendor/pear/mail:phar:///usr/local/bin/phing/vendor/pear/mail_mime:phar:///usr/local/bin/phing/vendor/pear/archive_tar:phar:///usr/local/bin/phing/vendor/pear/versioncontrol_svn:.:/usr/share/php') [line 476 of phar:///usr/local/bin/phing/vendor/composer/ClassLoader.php]
[PHP Error] include(): Failed opening 'phar:///usr/local/bin/phing/vendor/composer/../../src/Phing/Type/CommandlineArgument.php' for inclusion (include_path=':phar:///usr/local/bin/phing/vendor/pear/net_growl:phar:///usr/local/bin/phing/vendor/pear/versioncontrol_git:phar:///usr/local/bin/phing/vendor/pear/pear_exception:phar:///usr/local/bin/phing/vendor/pear/console_getopt:phar:///usr/local/bin/phing/vendor/pear/pear-core-minimal/src:phar:///usr/local/bin/phing/vendor/pear/mail:phar:///usr/local/bin/phing/vendor/pear/mail_mime:phar:///usr/local/bin/phing/vendor/pear/archive_tar:phar:///usr/local/bin/phing/vendor/pear/versioncontrol_svn:.:/usr/share/php') [line 476 of phar:///usr/local/bin/phing/vendor/composer/ClassLoader.php]
[PHP Error] include(): Failed opening 'phar:///usr/local/bin/phing/vendor/composer/../../src/Phing/Type/Commandline.php' for inclusion (include_path=':phar:///usr/local/bin/phing/vendor/pear/net_growl:phar:///usr/local/bin/phing/vendor/pear/versioncontrol_git:phar:///usr/local/bin/phing/vendor/pear/pear_exception:phar:///usr/local/bin/phing/vendor/pear/console_getopt:phar:///usr/local/bin/phing/vendor/pear/pear-core-minimal/src:phar:///usr/local/bin/phing/vendor/pear/mail:phar:///usr/local/bin/phing/vendor/pear/mail_mime:phar:///usr/local/bin/phing/vendor/pear/archive_tar:phar:///usr/local/bin/phing/vendor/pear/versioncontrol_svn:.:/usr/share/php') [line 476 of phar:///usr/local/bin/phing/vendor/composer/ClassLoader.php]

BUILD FAILED
Class "Phing\Task\System\Condition\OsCondition" not found

Total time: 0.0702 seconds

Class "Phing\Task\System\Condition\OsCondition" not found

BUILD FAILED
Class "Phing\Type\CommandlineArgument" not found

Total time: 0.0703 seconds


BUILD FAILED
Class "Phing\Type\Commandline" not found

Total time: 0.0703 seconds

Class "Phing\Type\CommandlineArgument" not found
Class "Phing\Type\Commandline" not found
[PHP Error] fopen(/tmp/dpm_OJ1dS9): Failed to open stream: No such file or directory [line 115 of phar:///usr/local/bin/phing/vendor/mehr-als-nix/parallel/src/WorkerPipe.php]
[PHP Error] filesize(): stat failed for /tmp/dpm_OJ1dS9 [line 116 of phar:///usr/local/bin/phing/vendor/mehr-als-nix/parallel/src/WorkerPipe.php]

BUILD FAILED
fread(): Argument phingofficial/phing#1 ($stream) must be of type resource, bool given

Total time: 0.0760 seconds

fread(): Argument phingofficial/phing#1 ($stream) must be of type resource, bool given

Additional context
Error each time can be little bit different but most of the time it is in the end:

[PHP Error] fopen(/tmp/dpm_ncYpUs): Failed to open stream: No such file or directory [line 115 of phar:///usr/local/bin/phing/vendor/mehr-als-nix/parallel/src/WorkerPipe.php]

PHP version: 8.0.14 (but the same problem also in PHP8.1)
Phing 3.0.0-RC3

Document that users of 32-bit systems might encounter precision issues when running Phing

Describe the bug
I am running into a couple of issues running the phpunit tests for the latest/main of phing. I am running them on a 32-bit linux system.

Steps To Reproduce
Checkout/clone phing and run the unit tests on a 32-bit system.

     $ composer install
     $ cd tests
     $ ../bin/phing

Expected behavior
All tests should pass on a clean checkout/clone of the repo.

Additional context
I didn't see anything that said the phing tool, or the unit tests, were dependent on a 64-bit system. But there are a couple of places that make this assumption by using int types. Since the php int type is system dependent, these should be set up in a way that works on any 64 or 32-bit system. Or it should be documented that a 64-bit system is required to use phing.

Fix examples in DirSet documentation

The examples in the DirSet online docs (section D5) don't show dirsets, just filesets. Is that intentional?

I would join the maillist from phing.tigris.org as per the documentation suggestion, but it doesn't seem to be accessible.

Documentation MonologListener

We want to use Monolog in our Projects. In these Projects we also use Phing.

Could you add an Example which describes how to use/configure the MonologListener?

Split coretasks.xml

Hi, in #34 I split optionaltasks.xml in smaller files. I'm thinking about doing the same but with coretasks.xml.

Please let me know if you are interested, otherwise please feel free to close this issue :)

Documentation ExecTask

The command attribute of the ExecTask is marked as deprecated, but all Examples use this attribute.

Could you add some examples for the the alternative syntax with executable attribute?

Could you also add some more complex rewrite examples, eg when using pipes in the command?

We use commands like the following in our project.

<exec command="ls -1 ${dir}/*.sql | grep -Ev '/[0-9]+\.sql$'" outputProperty="files"/>
<exec command="mysql --execute='SELECT COUNT(`TABLE_NAME`) FROM `information_schema`.`TABLES` WHERE `TABLE_SCHEMA`=&quot;${db.server.main.name}&quot; AND `TABLE_NAME` LIKE &quot;_DbVersion&quot;' --host='${db.server.main.host}' --port='${db.server.main.port}' --user='${db.server.main.username}' --password='${db.server.main.password}' --database='${db.server.main.name}' -s -N | sed -e '$!d'" outputProperty="dbVersionExists" />

Documentation MonologListener

We want to use Monolog in our Projects. In these Projects we also use Phing.

Could you add an Example which describes how to use the MonologListener?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.