Giter Club home page Giter Club logo

Comments (9)

daleffe avatar daleffe commented on June 2, 2024 5

Hello everyone, I made the necessary corrections to work with Phalcon 5.x, you can check this repository.

I hope it helps.

from phalcon-devtools.

furopi avatar furopi commented on June 2, 2024

Hello there,

I ran a command to create a project by using Phalcon Devtoools (4.2.0) but it is always impossible and throw this error : PHP Fatal error: Uncaught Error: Class "Phalcon\Config" not found in C:\Users....\AppData\Roaming\Composer\vendor\phalcon\devtools\src\Builder\Component\AbstractComponent.php:48

Do you know how can fix this ?

Thanks,

Questions should go to https://forum.phalcon.io
Documentation issues should go to https://github.com/phalcon/docs/issues

Expected and Actual Behavior

Describe what you are trying to achieve and what goes wrong.

Provide output if related

// paste output here

Provide minimal script to reproduce the issue

// paste code

Details

  • System info and versions (if possible): (phalcon info)
  • Phalcon Framework version: (php --ri phalcon)
  • PHP Version: (php -v)
  • Operating System:
  • Server: Nginx | Apache | Other
  • Other related info (Database, table schema):

Me too is facing the same issue. My "phalcon info" reads "Phalcon DevTools (4.2.0)", Docs read for info "Phalcon DevTools (5.0.0)". Where can I get DevTools 5.0.0? Thank you! ❤️

from phalcon-devtools.

an-nguyen2101 avatar an-nguyen2101 commented on June 2, 2024

from phalcon-devtools.

furopi avatar furopi commented on June 2, 2024

I heard some rumors about a devtools 5.0 release expected to drop end of October... Is there a rough estimate when we can expect to code in Phalcon 5.0 w/ working devtools? Just asking... Thank you for taking your time!

from phalcon-devtools.

dovantien2911 avatar dovantien2911 commented on June 2, 2024

me tooooo

from phalcon-devtools.

alejosv avatar alejosv commented on June 2, 2024

Same issue:

$ phalcon project --type=micro --name api-test

Phalcon DevTools (4.2.0)

PHP Fatal error:  Uncaught Error: Class "Phalcon\Config" not found in /home/ubuntu/.config/composer/vendor/phalcon/devtools/src/Builder/Component/AbstractComponent.php:48
Stack trace:
#0 /home/ubuntu/.config/composer/vendor/phalcon/devtools/src/Commands/Builtin/Project.php(74): Phalcon\DevTools\Builder\Component\AbstractComponent->__construct()
#1 /home/ubuntu/.config/composer/vendor/phalcon/devtools/src/Script.php(109): Phalcon\DevTools\Commands\Builtin\Project->run()
#2 /home/ubuntu/.config/composer/vendor/phalcon/devtools/src/Script.php(148): Phalcon\DevTools\Script->dispatch()
#3 /home/ubuntu/.config/composer/vendor/phalcon/devtools/phalcon(65): Phalcon\DevTools\Script->run()
#4 {main}
  thrown in /home/ubuntu/.config/composer/vendor/phalcon/devtools/src/Builder/Component/AbstractComponent.php on line 48

from phalcon-devtools.

SFFI avatar SFFI commented on June 2, 2024

Me too!

>phalcon create-project store

Phalcon DevTools (4.2.0)


Fatal error: Uncaught Error: Class 'Phalcon\Config' not found in C:\Users\1\AppData\Roaming\Composer\vendor\phalcon\devtools\src\Builder\Component\AbstractComponent.php on line 48

Error: Class 'Phalcon\Config' not found in C:\Users\1\AppData\Roaming\Composer\vendor\phalcon\devtools\src\Builder\Component\AbstractComponent.php on line 48

Call Stack:
    0.0002     415808   1. {main}() C:\Users\1\AppData\Roaming\Composer\vendor\bin\phalcon:0
    0.0008     429592   2. include('C:\Users\1\AppData\Roaming\Composer\vendor\phalcon\devtools\phalcon') C:\Users\1\AppData\Roaming\Composer\vendor\bin\phalcon:115
    0.0111    1155608   3. Phalcon\DevTools\Script->run() C:\Users\1\AppData\Roaming\Composer\vendor\phalcon\devtools\phalcon:64
    0.0112    1155608   4. Phalcon\DevTools\Script->dispatch($command = class Phalcon\DevTools\Commands\Builtin\Project { protected $script = class Phalcon\DevTools\Script { protected $eventsManager = class Phalcon\Events\Manager { ... }; protected $commands = [...] }; protected $eventsManager = class Phalcon\Events\Manager { protected $collect = FALSE; protected $enablePriorities = FALSE; protected $events = [...]; protected $responses = [...] }; protected $encoding = 'UTF-8'; protected $parameters = [0 => 'create-project', 1 => 'store']; protected $preparedArguments = ['name' => TRUE, 'enable-webtools' => TRUE, 'directory' => TRUE, 'type' => TRUE, 'template-path' => TRUE, 'template-engine' => TRUE, 'use-config-ini' => TRUE, 'trace' => TRUE, 'force' => TRUE, 'help' => TRUE]; protected $path = class Phalcon\DevTools\Builder\Path { protected $rootPath = 'E:\\项
目文件\\phalcon\\' } }) C:\Users\1\AppData\Roaming\Composer\vendor\phalcon\devtools\src\Script.php:148
    0.0114    1156928   5. Phalcon\DevTools\Commands\Builtin\Project->run($parameters = [0 => 'create-project', 1 => 'store']) C:\Users\1\AppData\Roaming\Composer\vendor\phalcon\devtools\src\Script.php:109
    0.0119    1189232   6. Phalcon\DevTools\Builder\Component\AbstractComponent->__construct($options = ['name' => 'store', 'type' => 'simple', 'directory' => '.', 'enableWebTools' => FALSE, 'force' => FALSE, 'templatePath' => 'C:\\Users\\1\\AppData\\Roaming\\Composer\\vendor\\phalcon\\devtools\\templates', 'templateEngine' => 'phtml', 'useConfigIni' => NULL]) C:\Users\1\AppData\Roaming\Composer\vendor\phalcon\devtools\src\Commands\Builtin\Project.php:74
>php --ri phalcon

phalcon


Phalcon is a full stack PHP framework, delivered as a PHP extension, offering lower resource consumption and high performance.
phalcon => enabled
Author => Phalcon Team and contributors
Version => 5.2.0
Build Date => Feb 27 2023 01:33:03
Powered by Zephir => Version 0.17.0-$Id$

Directive => Local Value => Master Value
phalcon.db.escape_identifiers => On => On
phalcon.db.force_casting => Off => Off
phalcon.orm.case_insensitive_column_map => Off => Off
phalcon.orm.cast_last_insert_id_to_int => Off => Off
phalcon.orm.cast_on_hydrate => Off => Off
phalcon.orm.column_renaming => On => On
phalcon.orm.disable_assign_setters => Off => Off
phalcon.orm.enable_implicit_joins => On => On
phalcon.orm.enable_literals => On => On
phalcon.orm.events => On => On
phalcon.orm.exception_on_failed_save => Off => Off
phalcon.orm.exception_on_failed_metadata_save => On => On
phalcon.orm.ignore_unknown_columns => Off => Off
phalcon.orm.late_state_binding => Off => Off
phalcon.orm.not_null_validations => On => On
phalcon.orm.resultset_prefetch_records => 0 => 0
phalcon.orm.update_snapshot_on_save => On => On
phalcon.orm.virtual_foreign_keys => On => On
phalcon.warning.enable => On => On
>phalcon info

Phalcon DevTools (4.2.0)

Environment:
  OS: Windows NT DESKTOP-PUGO6P5 10.0 build 19044 (Windows 10) AMD64
  PHP Version: 7.4.33
  PHP SAPI: cli
  PHP Bin: E:\wamp64\bin\php\php7.4.33\php.exe
  PHP Extension Dir: C:\php\ext
  PHP Bin Dir: C:\php
  Loaded PHP config: E:\wamp64\bin\php\php7.4.33\php.ini
Versions:
  Phalcon DevTools Version: 4.2.0
  Phalcon Version: 5.2.0
  AdminLTE Version: 3.0.1

from phalcon-devtools.

furopi avatar furopi commented on June 2, 2024

Hello everyone, I made the necessary corrections to work with Phalcon 5.x, you can check this repository.

I hope it helps.

Awesome work!!! Can this run on windows? Will it work with PHP 8.2? Ty!!

from phalcon-devtools.

daleffe avatar daleffe commented on June 2, 2024

Hello everyone, I made the necessary corrections to work with Phalcon 5.x, you can check this repository.
I hope it helps.

Awesome work!!! Can this run on windows? Will it work with PHP 8.2? Ty!!

I believe so, only modified PHP files.

from phalcon-devtools.

Related Issues (20)

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.