Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

THE TOOL IS BROKEN 😭 !! #29

Closed
co-valtira opened this issue May 20, 2021 · 3 comments
Closed

THE TOOL IS BROKEN 😭 !! #29

co-valtira opened this issue May 20, 2021 · 3 comments

Comments

@co-valtira
Copy link

  1. when I clone the code from the repo and run ./build.sh i get this error:
    [Symfony\Component\Console\Exception\CommandNotFoundException]
    Command "build" is not defined. because this block of code doesn't work in bash script : php -d phar.readonly=off "$(command -v phar-composer.phar)" build .

  2. when I simply run progpilot /path/to/code.php after downloading the lates release this error is thrown on my mac:
    Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in phar:///Users/$USER/progpilot_v0.8.0.phar/vendor/nikic/php-parser/lib/PhpParser/Parser/Php5.php on line 2623

  3. I spun up an AWS ec2 instance with 60gig ram and after working through dependency issues and all kinds of errors this is the final error it throws:
    PHP Notice: Undefined offset: 0 in phar:///usr/local/bin/progpilot/vendor/progpilot/package/src/progpilot/Analysis/ResolveDefs.php on line 559
    PHP Notice: Undefined offset: 0 in phar:///usr/local/bin/progpilot/vendor/progpilot/package/src/progpilot/Analysis/ResolveDefs.php on line 559
    PHP Notice: Undefined offset: 0 in phar:///usr/local/bin/progpilot/vendor/progpilot/package/src/progpilot/Analysis/ResolveDefs.php on line 559
    PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in phar:///usr/local/bin/progpilot/vendor/progpilot/package/src/progpilot/Objects/MyFunction.php on line 82

@eric-therond
Copy link
Collaborator

Hi @co-valtira

  1. Can you check there are no previous errors while running ./build.sh and if yes copy paste them here.
  2. Memory problems with progpilot is a known issue, I plan to do something about it but nothing is excepted soon, more at the end of the year. For now, you can try to deal with this limitation by reading this part of the documentation.
  3. Same thing + another problem on ResolveDefs.php added to the backlog.

@eric-therond
Copy link
Collaborator

if you have time to try with the latest progpilot version (v1.0.0)

Eric

@eric-therond
Copy link
Collaborator

progpilot version (v1.0.2) solves this.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants