phalcon / phalcon-devtools

Phalcon Developer Tools
https://docs.phalcon.io/latest/en/devtools
Other
1.33k stars 629 forks source link

[BUG]: Class 'Phalcon\Version' not found in C:\wamp64\www\phal\vendor\phalcon\devtools\bootstrap\autoload.php:134 #1515

Closed imakepossible closed 2 years ago

imakepossible commented 3 years ago

Questions? i have installed Phalcon version 5.0.0alpha3 on window and it is showing in phpinfo and in php --m but when i run 'phalcon' on command line, i am getting error

Describe the bug Fatal error: Uncaught Error: Class 'Phalcon\Version' not found in C:\wamp64\www\phal\vendor\phalcon\devtools\bootstrap\autoload.php:134 Stack trace:

0 C:\wamp64\www\phal\vendor\phalcon\devtools\phalcon(46): require()

phalcon/phalcon#1 {main} thrown in C:\wamp64\www\phal\vendor\phalcon\devtools\bootstrap\autoload.php on line 134

niden commented 3 years ago

Moving to devtools

Ultimater commented 3 years ago

Devtools relies on the Phalcon\Version class to check Phalcon's version. This class had some of its methods deprecated and stated it was going to be removed in V5. But the getVersion() method didn't. Thus the class shouldn't have disappeared in V5. This would be a bug in cphalcon, not devtools.

Ultimater commented 3 years ago

cc: @Jeckerson @niden

niden commented 3 years ago

The class is under the Support namespace in v5. We just have to change its instantiation and signature (no longer static methods).

niden commented 3 years ago

This needs to go back to devtools. Also, the question will be about versioning i.e. devtools for v5

Ultimater commented 3 years ago

@niden Sorry for the confusion, I thought it was missing functionality being alarmed at seeing the class disappear without first deprecating the class with an alias class. But this would be a major version bump so can't be too picky as breaking changes are expected.

I'll work on implementing this in devtools.

Ultimater commented 2 years ago

This has been fixed in 4.2.0

MateusJ commented 1 year ago

i'm having this same issue.