Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fatal Error - Creating cli project with Windows #1440

Closed
jenovateurs opened this issue Apr 1, 2020 · 0 comments · Fixed by #1441
Closed

Fatal Error - Creating cli project with Windows #1440

jenovateurs opened this issue Apr 1, 2020 · 0 comments · Fixed by #1441
Assignees
Labels

Comments

@jenovateurs
Copy link
Contributor

jenovateurs commented Apr 1, 2020

Expected and Actual Behavior

With Windows, I did a
.\phalcon project test cli

The console answer:

Warning: file_get_contents(E:\wamp64\www\tesss\vendor\phalcon\devtools\templates/project/cli/launcher.bat): failed to open stream: No such file or directory in E:\wamp64\www\tesss\vendor\phalcon\devtools\src\Builder\Project\ProjectBuilder.php on line 115

Call Stack:
    0.0008     414912   1. {main}() E:\wamp64\www\tesss\vendor\phalcon\devtools\phalcon:0
    0.0411    1112656   2. Phalcon\DevTools\Script->run() E:\wamp64\www\tesss\vendor\phalcon\devtools\phalcon:64
    0.0416    1112656   3. Phalcon\DevTools\Script->dispatch() E:\wamp64\www\tesss\vendor\phalcon\devtools\src\Script.php:148
    0.0439    1113800   4. Phalcon\DevTools\Commands\Builtin\Project->run() E:\wamp64\www\tesss\vendor\phalcon\devtools\src\Script.php:109
    0.0467    1154264   5. Phalcon\DevTools\Builder\Component\Project->build() E:\wamp64\www\tesss\vendor\phalcon\devtools\src\Commands\Builtin\Project.php:74
    0.0537    1190256   6. Phalcon\DevTools\Builder\Project\Cli->build() E:\wamp64\www\tesss\vendor\phalcon\devtools\src\Builder\Component\Project.php:109
    0.0896    1190256   7. Phalcon\DevTools\Builder\Project\Cli->createLauncher() E:\wamp64\www\tesss\vendor\phalcon\devtools\src\Builder\Project\Cli.php:48
    0.0921    1190408   8. Phalcon\DevTools\Builder\Project\Cli->generateFile() E:\wamp64\www\tesss\vendor\phalcon\devtools\src\Builder\Project\Cli.php:71
    0.0936    1190784   9. file_get_contents() E:\wamp64\www\tesss\vendor\phalcon\devtools\src\Builder\Project\ProjectBuilder.php:115


Fatal error: Uncaught TypeError: fwrite() expects parameter 2 to be string, boolean given in E:\wamp64\www\tesss\vendor\phalcon\devtools\src\Builder\Project\ProjectBuilder.php on line 133

TypeError: fwrite() expects parameter 2 to be string, boolean given in E:\wamp64\www\tesss\vendor\phalcon\devtools\src\Builder\Project\ProjectBuilder.php on line 133

Call Stack:
    0.0008     414912   1. {main}() E:\wamp64\www\tesss\vendor\phalcon\devtools\phalcon:0
    0.0411    1112656   2. Phalcon\DevTools\Script->run() E:\wamp64\www\tesss\vendor\phalcon\devtools\phalcon:64
    0.0416    1112656   3. Phalcon\DevTools\Script->dispatch() E:\wamp64\www\tesss\vendor\phalcon\devtools\src\Script.php:148
    0.0439    1113800   4. Phalcon\DevTools\Commands\Builtin\Project->run() E:\wamp64\www\tesss\vendor\phalcon\devtools\src\Script.php:109
    0.0467    1154264   5. Phalcon\DevTools\Builder\Component\Project->build() E:\wamp64\www\tesss\vendor\phalcon\devtools\src\Commands\Builtin\Project.php:74
    0.0537    1190256   6. Phalcon\DevTools\Builder\Project\Cli->build() E:\wamp64\www\tesss\vendor\phalcon\devtools\src\Builder\Component\Project.php:109
    0.0896    1190256   7. Phalcon\DevTools\Builder\Project\Cli->createLauncher() E:\wamp64\www\tesss\vendor\phalcon\devtools\src\Builder\Project\Cli.php:48
    0.0921    1190408   8. Phalcon\DevTools\Builder\Project\Cli->generateFile() E:\wamp64\www\tesss\vendor\phalcon\devtools\src\Builder\Project\Cli.php:71
    0.0983    1191400   9. fwrite() E:\wamp64\www\tesss\vendor\phalcon\devtools\src\Builder\Project\ProjectBuilder.php:133

Details

  • System info and versions (if possible): (phalcon info)
Phalcon DevTools (4.0.1)
Environment:
  OS: Windows NT 10.0 build 18362 (Windows 10) AMD64
  PHP Version: 7.2.18
  PHP SAPI: cli
  PHP Bin: E:\wamp64\bin\php\php7.2.18\php.exe
  PHP Extension Dir: C:\php\ext
  PHP Bin Dir: C:\php
  Loaded PHP config: E:\wamp64\bin\php\php7.2.18\php.ini
Versions:
  Phalcon DevTools Version: 4.0.1
  Phalcon Version: 4.0.5
  AdminLTE Version: 2.3.6
  • Phalcon Framework version: 4.0.5
  • PHP Version: PHP 7.2.18
  • Operating System: Windows 10
  • Server: Apache
  • Other related info (Database, table schema):
@jenovateurs jenovateurs self-assigned this Apr 1, 2020
@jenovateurs jenovateurs added the CLI label Apr 1, 2020
jenovateurs added a commit to les-enovateurs/phalcon-devtools that referenced this issue Apr 1, 2020
jenovateurs added a commit that referenced this issue Apr 2, 2020
fix: added cli/launcher.bat and add changelog #1440
@jenovateurs jenovateurs linked a pull request Apr 2, 2020 that will close this issue
3 tasks
@Jeckerson Jeckerson mentioned this issue Apr 10, 2020
@niden niden moved this to Released in Phalcon v5 Aug 25, 2022
@niden niden added this to Phalcon v5 Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant